repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/NotFound/Wrapper.js
src/app/components/NotFound/Wrapper.js
import styled from 'styled-components'; const Wrapper = styled.div` display: flex; justify-content: center; font-size: 30px; `; export default Wrapper;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/App/index.js
src/app/components/App/index.js
import React, { PropTypes, PureComponent } from 'react'; import 'app/styles/global'; import Wrapper from './Wrapper'; export default class App extends PureComponent { static propTypes = { children: PropTypes.element.isRequired }; render() { const { children } = this.props; return ( <Wrapp...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/App/Wrapper.js
src/app/components/App/Wrapper.js
import styled from 'styled-components'; const Wrapper = styled.div` height: 100%; `; export default Wrapper;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/Header/index.js
src/app/components/Header/index.js
import React, { PureComponent } from 'react'; import Container from 'app/components/Container'; import Wrapper from './Wrapper'; export default class Header extends PureComponent { render() { return ( <Wrapper> <Container> <span>Header</span> </Container> </Wrapper> );...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/Header/Wrapper.js
src/app/components/Header/Wrapper.js
import styled from 'styled-components'; import { grey100 } from 'app/styles/colors'; const Wrapper = styled.div` height: 50px; line-height: 50px; background: ${grey100}; `; export default Wrapper;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/utils/index.js
src/app/utils/index.js
import createSelectLocationState from './createSelectLocationState'; export default { createSelectLocationState };
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/utils/createSelectLocationState.js
src/app/utils/createSelectLocationState.js
export default function createSelectLocationState(reducerName) { let prevRoutingState; let prevRoutingStateJS; return (state) => { const routingState = state.get(reducerName); if (!routingState.equals(prevRoutingState)) { prevRoutingState = routingState; prevRoutingStateJS = routingState.toJ...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/modules/landing/components/Home/index.js
src/app/modules/landing/components/Home/index.js
import React, { PureComponent } from 'react'; import Container from 'app/components/Container'; import Wrapper from './Wrapper'; export default class Home extends PureComponent { render() { return ( <Wrapper> <Container> <h1>Home</h1> </Container> </Wrapper> ); } }
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/modules/landing/components/Home/Wrapper.js
src/app/modules/landing/components/Home/Wrapper.js
import styled from 'styled-components'; const Wrapper = styled.div` height: 100%; `; export default Wrapper;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/modules/landing/components/Landing/index.js
src/app/modules/landing/components/Landing/index.js
import React, { PropTypes, PureComponent } from 'react'; import Header from 'app/components/Header'; import Footer from 'app/components/Footer'; import Wrapper from './Wrapper'; export default class Landing extends PureComponent { static propTypes = { children: PropTypes.element.isRequired }; render() {...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/modules/landing/components/Landing/Wrapper.js
src/app/modules/landing/components/Landing/Wrapper.js
import styled from 'styled-components'; const Wrapper = styled.div` display: flex; flex-direction: column; justify-content: space-between; height: 100%; `; export default Wrapper;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/modules/landing/containers/LandingContainer/index.js
src/app/modules/landing/containers/LandingContainer/index.js
import React, { PropTypes, Component } from 'react'; import Landing from 'app/modules/landing/components/Landing'; export default class LandingContainer extends Component { static propTypes = { children: PropTypes.element.isRequired }; render() { return <Landing {...this.props} />; } }
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/containers/AppContainer/index.js
src/app/containers/AppContainer/index.js
import React, { PropTypes, Component } from 'react'; import App from 'app/components/App'; export default class AppContainer extends Component { static propTypes = { children: PropTypes.element.isRequired, }; render() { return <App {...this.props} />; } }
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/config/index.js
src/app/config/index.js
import config from './default'; import env from './environment'; export default { ...config, ...env };
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/config/environment.js
src/app/config/environment.js
export default { development: { isProd: false }, production: { isProd: true } }[process.env.NODE_ENV || 'development'];
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/config/default.js
src/app/config/default.js
export default { server: { host: 'http://localhost', port: 3005 }, webpack: { server: { host: 'http://localhost', port: 3001 } } };
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/server/start.js
src/server/start.js
import { server } from 'universal-webpack'; import settings from '../../webpack/universal-webpack-settings.json'; import config from '../../webpack/webpack.config'; server(config, settings);
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/server/start.babel.js
src/server/start.babel.js
require('babel-register')({ ignore: /\/(build|node_modules)\// }); require('babel-polyfill'); require('./start.js');
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/server/server.js
src/server/server.js
import path from 'path'; import compression from 'compression'; import express from 'express'; import favicon from 'serve-favicon'; import createSSR from './SSR/createSSR'; import appConfig from '../app/config'; const { host, port } = appConfig.server; const app = express(); export default function (parameters) { ...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/server/SSR/createSSR.js
src/server/SSR/createSSR.js
import React from 'react'; import styleSheet from 'styled-components/lib/models/StyleSheet'; import { loadOnServer } from 'redux-connect'; import { renderToString } from 'react-dom/server'; import { syncHistoryWithStore } from 'react-router-redux'; import { createMemoryHistory, match } from 'react-router'; import Html...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/server/SSR/html.js
src/server/SSR/html.js
import React, { Component, PropTypes } from 'react'; import { Provider } from 'react-redux'; import { renderToString } from 'react-dom/server'; import { ReduxAsyncConnect } from 'redux-connect'; import appConfig from '../../app/config'; export default class Html extends Component { static propTypes = { store...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/client/index.js
src/client/index.js
import React from 'react'; import { fromJS } from 'immutable'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { match, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import Root from './root'; import getRoutes from '../app/r...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/client/root.js
src/client/root.js
import React, { Component, PropTypes } from 'react'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import { ReduxAsyncConnect } from 'redux-connect'; export default class Root extends Component { static propTypes = { store: PropTypes.object.isRequired, history: PropTypes....
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/webpack/webpack.config.server.development.babel.js
webpack/webpack.config.server.development.babel.js
import { cloneDeep } from 'lodash'; import baseConfig from './webpack.config.server'; import appConfig from '../src/app/config'; const { host, port } = appConfig.webpack.server; const config = cloneDeep(baseConfig); config.output.publicPath = `${host}:${port}${config.output.publicPath}`; export default config;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/webpack/webpack.config.client.production.babel.js
webpack/webpack.config.client.production.babel.js
import path from 'path'; import webpack from 'webpack'; import merge from 'webpack-merge'; import getBaseConfig from './webpack.config.client'; import CleanPlugin from 'clean-webpack-plugin'; const baseConfig = getBaseConfig({ development: false }); const vendor = [ 'react', 'react-dom', 'redux', 'react...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/webpack/webpack.config.server.production.babel.js
webpack/webpack.config.server.production.babel.js
import baseConfiguration from './webpack.config.server'; export default baseConfiguration;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/webpack/webpack.config.server.js
webpack/webpack.config.server.js
import { serverConfiguration } from 'universal-webpack'; import settings from './universal-webpack-settings.json'; import config from './webpack.config'; export default serverConfiguration(config, settings);
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/webpack/webpack-dev-server.js
webpack/webpack-dev-server.js
import Express from 'express'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import config from './webpack.config.client.development'; import appConfig from '../src/app/config'; const app = new Express(); const compi...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/webpack/webpack.config.client.development.js
webpack/webpack.config.client.development.js
import webpack from 'webpack'; import merge from 'webpack-merge'; import getBaseConfig from './webpack.config.client'; import appConfig from '../src/app/config'; const { host, port } = appConfig.webpack.server; const baseConfig = getBaseConfig({ development: true, css_bundle: true }); const babelOptions = { plu...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/webpack/webpack.config.js
webpack/webpack.config.js
import path from 'path'; import webpack from 'webpack'; import reporter from 'postcss-reporter'; import cssNext from 'postcss-cssnext'; const rootFolder = path.resolve(__dirname, '..'); const config = { context: rootFolder, entry: { main: './src/client' }, output: { path: path.resolve(rootFolder, 'st...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/webpack/webpack.config.client.js
webpack/webpack.config.client.js
import { clientConfiguration } from 'universal-webpack'; import settings from './universal-webpack-settings.json'; import config from './webpack.config'; export default function (options) { return clientConfiguration(config, settings, options); }
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/.storybook/addons.js
.storybook/addons.js
import '@storybook/addon-actions/register'; import '@storybook/addon-links/register';
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/.storybook/config.js
.storybook/config.js
import { configure } from '@storybook/react'; function loadStories() { require('../stories'); } configure(loadStories, module);
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/stories/index.js
stories/index.js
import React from 'react'; import {storiesOf} from '@storybook/react'; import Locky, {LockyTransparent} from '../src'; const clone = a => Array(10).fill(1).map(x => a); const Lock = () => ( <div> {clone(<div>SOME TEXT <button onClick={() => alert('!')}>a button</button> or <input/></div>)} <LockyTransparen...
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/src/isInside.js
src/isInside.js
const LOCKY_GROUP = 'data-locky-group'; const LOCKY_TRANSPARENT = 'data-locky-transparent'; const toArray = (a) => { const ret = Array(a.length); for (let i = 0; i < a.length; ++i) { ret[i] = a[i]; } return ret; }; const getAllInGroup = (node) => { const group = node.getAttribute(LOCKY_GROUP); if (gro...
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/src/defaultEvents.js
src/defaultEvents.js
export const EVENTS = { click: 'report', mousemove: true, mousedown: 'report', touchmove: true, touchstart: 'report', keydown: true, change: false, scroll: true, wheel: true, };
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/src/index.js
src/index.js
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { addEvent, getHandler, removeEvent } from './utils'; import { getTouchY, handleScroll } from './handleScroll'; import { EVENTS } from './defaultEvents'; import { isInside, isInsideCurrent, isLastInGro...
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/src/handleScroll.js
src/handleScroll.js
import { preventAll, preventDefault } from './utils'; export const getTouchY = event => event.changedTouches[0].clientY; const elementCouldBeScrolled = node => ( window.getComputedStyle(node).overflowY !== 'hidden' ); export const handleScroll = (endTarget, event, sourceDelta, preventOnly = false) => { const del...
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/src/utils.js
src/utils.js
export const preventAll = (event) => { event.preventDefault(); event.stopPropagation(); event.stopImmediatePropagation(); }; export const preventDefault = (event) => { event.preventDefault(); }; const report = callback => (event) => { preventAll(event); if (callback) { callback(event); } }; const r...
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
theKashey/react-locky
https://github.com/theKashey/react-locky/blob/8e10085b54c9960b6b65edfc886c0e9d2695ff27/__tests__/locky.spec.js
__tests__/locky.spec.js
import React from 'react'; import Locky from '../src'; import Enzyme, {mount} from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({adapter: new Adapter()}); describe('Locky', () => { it('smoke', () => { const wrapper = mount( <Locky> <div>123</div> </Locky> ); ...
javascript
MIT
8e10085b54c9960b6b65edfc886c0e9d2695ff27
2026-01-05T03:41:31.821993Z
false
fluxxu/elm-hot-loader
https://github.com/fluxxu/elm-hot-loader/blob/79c94c0af84d79821395e1dd019257375cf8f7db/index.js
index.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Flux Xu @fluxxu */ var readFileSync = require('fs').readFileSync; var path = require('path'); var hmrScript = readFileSync(__dirname + '/hmr.js'); var injectBeforeCode = 'if (typeof define === "function" && define[\'amd\'])'; var loaderUtil...
javascript
MIT
79c94c0af84d79821395e1dd019257375cf8f7db
2026-01-05T03:41:33.460293Z
false
fluxxu/elm-hot-loader
https://github.com/fluxxu/elm-hot-loader/blob/79c94c0af84d79821395e1dd019257375cf8f7db/hmr.js
hmr.js
//////////////////// HMR BEGIN //////////////////// var _elm_hot_loader_init = function () {} if (module.hot) { (function(Elm) { "use strict"; var version = detectElmVersion() console.log('[elm-hot] Elm version:', version) if (version === '0.17') { throw new Error('[elm-hot] Please use elm-hot...
javascript
MIT
79c94c0af84d79821395e1dd019257375cf8f7db
2026-01-05T03:41:33.460293Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/index.js
index.js
require('./dist/v-modal'); module.exports = 'vModal';
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/gulpfile.js
gulpfile.js
var pkg = require('./package.json'); var banner = '/**\n' + ' * <%= pkg.description %>\n' + ' * @version v<%= pkg.version %>\n' + ' * @link <%= pkg.homepage %>\n' + ' * @author <%= pkg.author %>\n' + ' * @license MIT License, http://www.opensource.org/licenses/MIT\n' + ' */\n\n'; v...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/karma.conf.js
karma.conf.js
// Karma configuration // Generated on Thu Aug 21 2014 10:24:39 GMT+0200 (CEST) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/src/vModal/vModal.js
src/vModal/vModal.js
// Config angular.module('vModal.config', []) .constant('modalConfig', { containerSelector: 'body', closeOnEsc: true }); // Modules angular.module('vModal.directives', []); angular.module('vModal.services', []); angular.module('vModal', [ 'vModal.config', 'vModal.directives', 'vModal.servi...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/src/vModal/services/vModal.js
src/vModal/services/vModal.js
/* * @license * angular-modal v0.5.0 * (c) 2013 Brian Ford http://briantford.com * License: MIT */ // vModal service angular.module('vModal.services') .factory('vModal', vModalFactory); function vModalFactory ($animate, $compile, $rootScope, $controller, $q, $http, $templateCache, $document, modalConfig) { return ...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/src/vModal/directives/vDialog.js
src/vModal/directives/vDialog.js
// vDialog directive angular.module('vModal.directives') .directive('vDialog', vDialogDirective); function vDialogDirective () { return { restrict: 'AE', require: '^vModal', transclude: true, scope: { heading: '@', role: '@' }, link: function (scope, iElement, iAttrs, modalCt...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/src/vModal/directives/vModal.js
src/vModal/directives/vModal.js
// vModal directive angular.module('vModal.directives') .directive('vModal', vModalDirective); function vModalDirective ($document, modalConfig) { return { restrict: 'AE', transclude: true, scope: { close: '&?onclose' }, controller: angular.noop, link: function (scope, iElement, iA...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/src/vModal/directives/vClose.js
src/vModal/directives/vClose.js
// vClose directive angular.module('vModal.directives') .directive('vClose', vCloseDirective); function vCloseDirective () { return { restrict: 'E', scope: { label: '@' }, link: function (scope, iElement, iAttrs) { if (scope.label) { iAttrs.$set('aria-label', scope.label); ...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/test/unit/vModal/vModal.spec.js
test/unit/vModal/vModal.spec.js
'use strict'; describe('', function() { var dependencies = []; var hasModule = function(module) { return dependencies.indexOf(module) >= 0; }; beforeEach(function () { dependencies = angular.module('vModal').requires; }); it('should load config module', function () { expect(hasModul...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/test/unit/vModal/services/vModal.spec.js
test/unit/vModal/services/vModal.spec.js
describe('vModal service', function() { var container; var vModal; var $rootScope; beforeEach(module('vModal')); beforeEach(inject(function(_vModal_, _$rootScope_, $templateCache) { vModal = _vModal_; $rootScope = _$rootScope_; $rootScope.greeting = 'こんばんは'; $templateCache.put('test.htm...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/test/unit/vModal/directives/vModal.spec.js
test/unit/vModal/directives/vModal.spec.js
describe('vModal directive', function () { var $compile; var scope; var generateTemplate = function (options) { var dafaults = { attributes: '', content: '' }; if (options) { angular.extend(dafaults, options); } var template = '<v-modal ' + dafaults.attributes + '>\n'; ...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/test/unit/vModal/directives/vDialog.spec.js
test/unit/vModal/directives/vDialog.spec.js
describe('vDialog directive', function () { var $compile; var scope; var generateTemplate = function (options) { var dafaults = { attributes: '', content: '' }; if (options) { angular.extend(dafaults, options); } var template = '<v-modal>\n'; template += '<v-dialo...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/test/unit/vModal/directives/vClose.spec.js
test/unit/vModal/directives/vClose.spec.js
describe('vClose directive', function () { var $compile; var scope; beforeEach(module('vModal')); beforeEach(inject(function ($rootScope, _$compile_) { scope = $rootScope.$new(); $compile = _$compile_; })); afterEach(function () { scope.$destroy(); }); it('should add `arial-label`, ...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/dist/v-modal.js
dist/v-modal.js
/** * vModal - Simple, flexible and beautiful modal dialogs in AngularJS * @version v1.3.7 * @link http://lukaszwatroba.github.io/v-modal * @author Łukasz Wątroba <l@lukaszwatroba.com> * @license MIT License, http://www.opensource.org/licenses/MIT */ (function (angular) { 'use strict'; // Config angular.modul...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/dist/v-modal.min.js
dist/v-modal.min.js
/** * vModal - Simple, flexible and beautiful modal dialogs in AngularJS * @version v1.3.7 * @link http://lukaszwatroba.github.io/v-modal * @author Łukasz Wątroba <l@lukaszwatroba.com> * @license MIT License, http://www.opensource.org/licenses/MIT */ !function(e){"use strict";function t(){return{restrict:"E",sco...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
LukaszWatroba/v-modal
https://github.com/LukaszWatroba/v-modal/blob/e7a8aaaa946126bad825e8f2bd77eae121941035/demo/app.js
demo/app.js
(function (angular) { 'use strict'; angular.module('myApp', [ 'ngAnimate', 'vModal' ]) .factory('loginModal', function (vModal) { return vModal({ controller: 'LoginController', controllerAs: 'loginModal', templateUrl: 'login-modal-template.html' }); ...
javascript
MIT
e7a8aaaa946126bad825e8f2bd77eae121941035
2026-01-05T03:41:33.952146Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/contributors.js
scripts/contributors.js
'use strict'; (function loadContributors() { window.api('https://api.github.com/repos/thepracticaldev/1pr/contributors', function(err, contributors){ // Log and display any errors if(err !== null){ if(window.console){ window.console.error(err); } document.getElementById('contributors').className = 'error'...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/pr.js
scripts/pr.js
'use strict'; (function loadLastPr() { // Helper function to calculate difference between date and return the date in appropiate format. let getTime = function(merge_date) { let diff = new Date() - new Date(merge_date); let seconds = Math.round(diff/1000); if (seconds < 60) { return seconds + ' seconds a...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/main.js
scripts/main.js
'use strict'; ((window.gitter = {}).chat = {}).options = { room: 'thepracticaldev/1pr', useStyles: false }; (function() { let sidebar = { isOpen: false, toggle: function() { if(sidebar.isOpen){ sidebar.close(); }else{ sidebar.open(); } }, open: function() { sidebar.isOpen = true; ...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/vote.js
scripts/vote.js
"use strict"; // Wrap everything inside a scoped function (function loadVoting() { // Helper function; shorthand for document.getElementById (because that gets pretty annoying if you have to write it a bunch) let el = function(id) { return document.getElementById(id); }; window.api('https://api.github.com/repos/t...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/game-engine-example.js
scripts/game-engine-example.js
/* Example engine interface. if (typeof OnePRGame === 'undefined') { var OnePRGame = {}; } // An example game engine. Defines what needs to be supported. // Could make, say, a text-based game or an isometric perspective, // in addition to the 2D and 3D currently available. OnePRGame.EngineExample = function (co...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/api.js
scripts/api.js
'use strict'; /* Shared API "get" function window.api(requestUrl, callback) requestUrl: The URL that you want to request callback: A function that takes two parameters: (err, responseData) `err` will be a JS error, or a number in case of a non-200 response code If err is null, `responseData` wil...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/asset-loader.js
scripts/asset-loader.js
'use strict'; (function() { // CONFIG - How long the loading animation should run for let animationDelay = 320; // This function will load the assets for the page // Scripts are defined in window.loadScripts let loadAssets = function(loadComplete) { // Create a circular progress bar let loading = new wind...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/pr-counter.js
scripts/pr-counter.js
'use strict'; (function() { let done = window.registerAsyncScript('pr-counter'); window.api('https://api.github.com/search/issues?q=type:pr%20state:open%20repo:thepracticaldev/1pr', function(err, openPRs){ document.getElementById('pr-count').textContent = openPRs.total_count; done(); }); })();
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/game-engine-2d.js
scripts/game-engine-2d.js
'use strict'; if (typeof OnePRGame === 'undefined') { var OnePRGame = {}; } OnePRGame.Engine2D = function (context, gameBoardClassName) { this.GameBoardClassName = gameBoardClassName; this.Context = context; this.ScreenWidth = 0; this.ScreenHeight = 0; this.HalfWidth = 0; this.HalfHeight...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/game-engine-3d.js
scripts/game-engine-3d.js
'use strict'; if (typeof OnePRGame === 'undefined') { var OnePRGame = {}; } OnePRGame.Engine3D = function (context, gameBoardClassName) { this.GameBoardClassName = gameBoardClassName; this.Context = context; this.ScreenWidth = 0; this.ScreenHeight = 0; this.HalfWidth = 0; this.HalfHeight...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/utils.js
scripts/utils.js
/* exported utils */ "use strict"; //Useful side-wide utilities var utils = { showElement: function (element){ //Removes first instance of hidden in className // so element can be hidden multiple times and still // stay hidden when shown fewer times. var hiddenClassName = /\b(hidden)\b/; element.className =...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/game.js
scripts/game.js
'use strict'; if (typeof OnePRGame === 'undefined') { var OnePRGame = {}; } OnePRGame.Engines = []; OnePRGame.CurrentEngine = 0; OnePRGame.Player = { // [Z, X] Position: [0, 0], // +X = 0, +Z = Math.PI / 2, -X = Math.PI, -Z = Math.PI * 3 / 2 Direction: 0 }; // Map is a set of rows, // each row has a...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/stats.js
scripts/stats.js
'use strict'; (function loadRepoIssues() { let done = window.registerAsyncScript('stats/issues'); window.api('https://api.github.com/search/issues?q=type:issue%20state:open%20repo:thepracticaldev/1pr', function(err, issues) { done(); document.getElementById('issues').getElementsByClassName('data')[0].textConte...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/database/migrations.js
scripts/database/migrations.js
/* globals firebase, console */ "use strict"; (function prepareMigrations(){ var migrationButton = document.getElementById("button-migrate"); var appliedMigrationsList = document.getElementById("ul-migrations-applied"); var availableMigrationsList = document.getElementById("ul-migrations-available"); var self = ...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/database/auth.js
scripts/database/auth.js
/* globals firebase, utils */ "use strict"; // Wrap everything inside a scoped function (function firebaseAuth() { var signInButton = document.getElementById("button-sign-in"); var signOutButton = document.getElementById("button-sign-out"); var userSpan = document.getElementById("firebase-user"); var signedInCon...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/scripts/database/config.js
scripts/database/config.js
/* globals firebase */ "use strict"; //Please overide this with the config for your test firebase project var config = { apiKey: "", authDomain: "", databaseURL: "", storageBucket: "", messagingSenderId: "" }; firebase.initializeApp(config);
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/vendor/progressbar.min.js
vendor/progressbar.min.js
// ProgressBar.js 1.0.1 // https://kimmobrunfeldt.github.io/progressbar.js // License: MIT !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
false
thepracticaldev/1pr
https://github.com/thepracticaldev/1pr/blob/b7009e80bc906a0e2eba0d10e754067a6e92818f/vendor/sidecar.v1.js
vendor/sidecar.v1.js
/*! * Gitter Sidecar v1.2.4 * https://sidecar.gitter.im/ */ var sidecar=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){ret...
javascript
BSD-2-Clause
b7009e80bc906a0e2eba0d10e754067a6e92818f
2026-01-05T03:41:30.780772Z
true
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/index.js
index.js
const blessed = require('blessed') const contrib = require('blessed-contrib') const mind = require('wits') const channels = require('./lib/channels') require('./lib/override-blessed-contrib') const screen = blessed.screen() const grid = new contrib.grid({ rows: 12, cols: 12, screen: screen, hideBorde...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/bin/brain-monitor.js
bin/brain-monitor.js
#!/usr/bin/env node require('..');
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/widgets/channels.js
widgets/channels.js
const contrib = require('blessed-contrib') const channels = require('../lib/channels') module.exports = function (grid) { const _channels = grid.set(0, 9, 5, 1, contrib.table, { keys: true, fg: 'white', interactive: false, columnSpacing: 1, columnWidth: [8, 10] }) f...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/widgets/gyroxy.js
widgets/gyroxy.js
const contrib = require('blessed-contrib') const xymap = require('../lib/xymap') module.exports = function (grid) { const gyroxx = grid.set(0, 11, 3, 1, xymap, { title: 'Gyro' }) function update(val) { val = val.map(v => Math.min(Math.max(-7, v), 7) * 1.5); gyroxx.setData(val) } retur...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/widgets/gyro.js
widgets/gyro.js
const contrib = require('blessed-contrib') function calcGyro(val, stroke) { if (val > 5) val = 5 if (val < -5) val = -5 return [ { percent: val >= 0 ? 50 : 50 + val * 7, stroke: 'black' }, { percent: Math.abs(val) * 7, stroke }, { percent: val <= 0 ? 50 : 50 - val * 7, stroke: 'bla...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/widgets/battery.js
widgets/battery.js
const contrib = require('blessed-contrib') module.exports = function (grid) { const battery = grid.set(0, 10, 3, 1, contrib.donut, { radius: 14, arcWidth: 4, yPadding: 8, remainColor: 'black', data: [ { percent: 0, label: 'Battery', color: 'red' } ] }...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/widgets/log.js
widgets/log.js
const contrib = require('blessed-contrib') const channels = require('../lib/channels') module.exports = function(grid) { const log = grid.set(5, 9, 7, 3, contrib.log, { fg: 'green', selectedFg: 'green' }) function update (val) { log.log(val) } return { widget: log,...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/widgets/monitor.js
widgets/monitor.js
const contrib = require('blessed-contrib') const Fili = require('fili') const channels = require('../lib/channels') const rainbow = [ [ 255, 0, 0 ], [ 255, 102, 0 ], [ 255, 204, 0 ], [ 204, 255, 0 ], [ 102, 255, 0 ], [ 0, 255, 0 ], [ 0, 255, 102 ], [ 0, 255, 204 ], [ 0, 204, 255 ],...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/lib/channels.js
lib/channels.js
module.exports = ['AF3', 'F7', 'F3', 'FC5', 'T7', 'P7', 'O1', 'O2', 'P8', 'T8', 'FC6', 'F4', 'F8', 'AF4']
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/lib/xymap.js
lib/xymap.js
var blessed = require('blessed') var Node = blessed.Node var Canvas = require('blessed-contrib/lib/widget/canvas') function XYMap(options) { if (!(this instanceof Node)) return new XYMap(options) Canvas.call(this, options) this.options = options this.on('attach', () => this.draw()) } XYMap.prototyp...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
dashersw/brain-monitor
https://github.com/dashersw/brain-monitor/blob/711b10a35a6354f4594d170192bfe000a80f47fb/lib/override-blessed-contrib.js
lib/override-blessed-contrib.js
const contrib = require('blessed-contrib') const blessed = require('blessed') const utils = require('blessed-contrib/lib/utils') contrib.gaugeList.prototype.setSingleGauge = function (gauge, offset) { var colors = ['green', 'magenta', 'cyan', 'red', 'blue'] var stack = gauge.stack var c = this.ctx var...
javascript
MIT
711b10a35a6354f4594d170192bfe000a80f47fb
2026-01-05T03:41:36.456208Z
false
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/test/index.js
test/index.js
var test = require("tape"); var parser = require(".."); test("ValueParser", function(tp) { tp.test("i/o", function(t) { var tests = [ " rgba( 34 , 45 , 54, .5 ) ", "w1 w2 w6 \n f(4) ( ) () \t \"s't\" 'st\\\"2'" ]; t.plan(tests.length); tests.forEach(function(item) { t.equal( ...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
false
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/test/parse.js
test/parse.js
var test = require("tape"); var parse = require("../lib/parse"); var tests = [ { message: "should correctly process empty input", fixture: "", expected: [] }, { message: "should process escaped parentheses (open)", fixture: "\\(", expected: [ { type: "word", sourceIndex: 0, sourceEn...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
true
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/test/stringify.js
test/stringify.js
var test = require("tape"); var parse = require("../lib/parse"); var stringify = require("../lib/stringify"); var tests = [ { message: "Should correctly add quotes", fixture: "bold italic 12px/3 'Open Sans', Arial, \"Helvetica Neue\", sans-serif" }, { message: "Should not close unclosed strings...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
false
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/test/unit.js
test/unit.js
var test = require("tape"); var unit = require("../lib/unit"); var tests = [ { fixture: ".23rem", expected: { number: ".23", unit: "rem" } }, { fixture: ".2.3rem", expected: { number: ".2", unit: ".3rem" } }, { fixture: "2.", expected: { number: "2", unit: "." } }, { fixture: ...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
false
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/lib/index.js
lib/index.js
var parse = require("./parse"); var walk = require("./walk"); var stringify = require("./stringify"); function ValueParser(value) { if (this instanceof ValueParser) { this.nodes = parse(value); return this; } return new ValueParser(value); } ValueParser.prototype.toString = function() { return Array.i...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
false
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/lib/walk.js
lib/walk.js
module.exports = function walk(nodes, cb, bubble) { var i, max, node, result; for (i = 0, max = nodes.length; i < max; i += 1) { node = nodes[i]; if (!bubble) { result = cb(node, i, nodes); } if ( result !== false && node.type === "function" && Array.isArray(node.nodes) ...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
false
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/lib/parse.js
lib/parse.js
var openParentheses = "(".charCodeAt(0); var closeParentheses = ")".charCodeAt(0); var singleQuote = "'".charCodeAt(0); var doubleQuote = '"'.charCodeAt(0); var backslash = "\\".charCodeAt(0); var slash = "/".charCodeAt(0); var comma = ",".charCodeAt(0); var colon = ":".charCodeAt(0); var star = "*".charCodeAt(0); var ...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
false
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/lib/stringify.js
lib/stringify.js
function stringifyNode(node, custom) { var type = node.type; var value = node.value; var buf; var customResult; if (custom && (customResult = custom(node)) !== undefined) { return customResult; } else if (type === "word" || type === "space") { return value; } else if (type === "string") { buf...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
false
TrySound/postcss-value-parser
https://github.com/TrySound/postcss-value-parser/blob/11a4436e74930f4eaf9cbdb2063656bcce8ebf6a/lib/unit.js
lib/unit.js
var minus = "-".charCodeAt(0); var plus = "+".charCodeAt(0); var dot = ".".charCodeAt(0); var exp = "e".charCodeAt(0); var EXP = "E".charCodeAt(0); // Check if three code points would start a number // https://www.w3.org/TR/css-syntax-3/#starts-with-a-number function likeNumber(value) { var code = value.charCodeAt(0...
javascript
MIT
11a4436e74930f4eaf9cbdb2063656bcce8ebf6a
2026-01-05T03:41:36.547746Z
false
patricklodder/jquery-zclip
https://github.com/patricklodder/jquery-zclip/blob/39e8f553a29006aa91fe1b7c5d0d7f559276e180/jquery.zclip.js
jquery.zclip.js
/* * zClip :: jQuery ZeroClipboard v1.1.5 * Originally forked from: http://steamdev.com/zclip * * Copyright 2011, SteamDev * * Released under the MIT license. * https://github.com/patricklodder/jquery-zclip/blob/master/LICENSE */ (function (jQuery) { jQuery.fn.zclip = function (params) { if (type...
javascript
MIT
39e8f553a29006aa91fe1b7c5d0d7f559276e180
2026-01-05T03:41:37.167249Z
false
ZhangHangwei/WXBaiSi
https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/app.js
app.js
//app.js App({ onLaunch: function () { //调用API从本地缓存中获取数据 var logs = wx.getStorageSync('logs') || [] logs.unshift(Date.now()) wx.setStorageSync('logs', logs) }, getUserInfo:function(cb){ var that = this if(this.globalData.userInfo){ typeof cb == "function" && cb(this.globalData.userIn...
javascript
MIT
8ed6e2f6d497416faf22457800afee1593c0b9c1
2026-01-05T03:41:36.503503Z
false
ZhangHangwei/WXBaiSi
https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/pages/attention/attention.js
pages/attention/attention.js
Page({ data:{ }, onLoad:function(options){ // 页面初始化 options为页面跳转所带来的参数 }, onReady:function(){ // 页面渲染完成 }, //点击登录 taplogin:function(e){ console.log("登录"); wx.navigateTo({ url: '../login/login', success: function(res){ // success }, fail: fun...
javascript
MIT
8ed6e2f6d497416faf22457800afee1593c0b9c1
2026-01-05T03:41:36.503503Z
false
ZhangHangwei/WXBaiSi
https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/pages/logs/logs.js
pages/logs/logs.js
//logs.js var util = require('../../utils/util.js') Page({ data: { logs: [] }, onLoad: function () { this.setData({ logs: (wx.getStorageSync('logs') || []).map(function (log) { return util.formatTime(new Date(log)) }) }) } })
javascript
MIT
8ed6e2f6d497416faf22457800afee1593c0b9c1
2026-01-05T03:41:36.503503Z
false