This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* @flow */ | |
| import React, { Component } from 'react'; | |
| // $FlowFixMe | |
| import $ from 'jquery'; | |
| // Disables body element scrolling on touch past the element passed in. | |
| // This is the only way to stop the body element from scrolling on Mobile Safari | |
| function preventOverscroll(el: HTMLElement) { | |
| // If the element is not scrollable, the body may scroll instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/packages/react-scripts/template/src/App.test.js b/packages/react-scripts/template/src/App.test.js | |
| index b84af98..8cefbcf 100644 | |
| --- a/packages/react-scripts/template/src/App.test.js | |
| +++ b/packages/react-scripts/template/src/App.test.js | |
| @@ -3,6 +3,12 @@ import ReactDOM from 'react-dom'; | |
| import App from './App'; | |
| it('renders without crashing', () => { | |
| + const fn = ({ a, ...otherProps }) => otherProps; | |
| + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Datepicker for Venuu CSV exports | |
| // @include https://staging.venuu.fi/staff/csv_exports* | |
| // @include https://venuu.fi/staff/csv_exports* | |
| // @require https://code.jquery.com/ui/1.12.1/jquery-ui.min.js | |
| // @grant none | |
| // ==/UserScript== | |
| //--- Date picker needs additional CSS | |
| document.addEventListener('DOMContentLoaded', function () { | |
| // Add jQuery UI CSS to page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm install -g [email protected] | |
| - | |
| > [email protected] install /Users/vesa/.nvm/versions/node/v4.4.0/lib/node_modules/flow-typed/node_modules/nodegit | |
| > node lifecycleScripts/install | |
| [nodegit] Fetching binary from S3. | |
| [nodegit] Failed to install prebuilt binary: | |
| { [Error: Command failed: /bin/sh -c "/Users/vesa/.nvm/versions/node/v4.4.0/lib/node_modules/flow-typed/node_modules/nodegit/node_modules/.bin/node-pre-gyp" install --fallback-to-build=false | |
| module.js:327 | |
| throw err; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ConstDependency = require('webpack/lib/dependencies/ConstDependency'); | |
| var NullFactory = require('webpack/lib/NullFactory'); | |
| var _ = require('lodash'); | |
| function I18nRuntimePlugin(options) { | |
| options = options || {}; | |
| this.functionNames = options.functionNames || ['I18n.t', 'I18n.translate']; | |
| this.translationsPlaceholder = options.translationsPlaceholder || 'I18N_RUNTIME_TRANSLATIONS'; | |
| this.fullTranslations = options.fullTranslations || {}; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { connect } from 'redux/react'; | |
| import { ActionTypes } from 'constants/myConstants'; | |
| const { CHANGE_STATUS } = ActionTypes; | |
| @connect(reduxState => ({ | |
| // Query for specific action | |
| statusIsLoading: reduxState.loading.isLoading(ActionTypes.CHANGE_STATUS), | |
| // Query for any action | |
| isLoading: reduxState.loading.isLoading() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # mysql2sqlite.sh | |
| # vqv | |
| # | |
| # A kludge for converting the MYSQL dump provided by http://www.baseball-databank.org/ | |
| # into a SQLITE3 compatible dump | |
| # | |
| # EXAMPLE USAGE: ./mysql2sqlite.sh BDB-sql-2008-03-28.sql | sqlite3 baseball.db | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "event": { | |
| "id": 1, | |
| "name": "Sukulaissitsit", | |
| "description": "Tervetuloa sukulaissitseille! ...", | |
| "image": "http://www.example.com/lolwut.jpg", // Optional | |
| "event_date": { | |
| "date": "2014-02-28", | |
| "time": "17:00+0300" // Optional | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "skenet": { | |
| "verstas": { | |
| // "kuva"-listan kuvat haetaan automaattisesti kansiosta media/skenet/verstas, | |
| // eli "ulkokuva.png" on oikeasti media/skenet/verstas/ulkokuva.png | |
| "kuva": ["ulkokuva.png", "verstas.png"], | |
| "info": "Tämä on autotalli" | |
| }, | |
| "takapiha": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ChDir "C:\Program Files (x86)\CoolBasic" | |
| // CBRAYCASTER | |
| // ----------- | |
| // Esimerkin näppäimet: | |
| // - Enter: Vaihtaa debug-tilaa | |
| // - Välilyönti: Generoi kartan uudelleen | |
| // - Hiiren rulla: Muuttaa kartan satunnaisuuden astetta | |
| // - WASD: Liikuttaa objektia | |
| // - Nuolet vasen-oikea: Kääntää objektia |