This file contains 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 dgram = require('dgram'), | |
http = require('http'), | |
Buffer = require('buffer').Buffer, | |
util = require('util'); | |
function Player () { | |
this.id = ""; | |
this.active = false; | |
this.loggedIn = false; | |
this.name = ""; |
This file contains 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
'This is your first CoolBasic program! | |
Include "Resource.cb" | |
mapName$ = "Mictlan" | |
Global gMapCRC | |
map = LoadResourceMap(mapName) | |
If Not IsDirectory("converted") Then MakeDir "converted" |
This file contains 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 |
This file contains 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 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 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 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 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 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 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 |
OlderNewer