GameObject player = Instantiate(playerPrefab, spawnPoint.position, spawnPoint.rotation);MessageBroker.Default.Publish(new PlayerControlEvent| # | |
| # This script reads dumped MongoDB tables (as json) | |
| # and posts them to new server via API. | |
| # | |
| require 'rubygems' | |
| require 'json' | |
| require 'rocketchat' | |
| USERS_JSON_FILE = 'users.json' |
Compare files recursively:
$ cd phpcode
$ diff -rq comments_new comments_old
Only in comments_new: config.php
Only in comments_old: config_old.php
Only in comments_old: functions.inc
Lodash function composition:
import fp from 'lodash/fp';
const data = [ /* data here **/ ];
const formatPhone = c => ({
...c,
phone: `(${c.phone.slice(0, 2)})${c.phone.slice(3, 5)-${c.phone.slice(6)}}`
});
const formatData = fp.compose(
| #!/usr/bin/env ruby-2.0.0-p353@global | |
| # the script | |
| # - expects the translation text to come in STDIN | |
| # - expects the translation text to be single or multiline | |
| # - prints the translation handlebars invokation to STDOUT | |
| # - add entry to all locales/*/MODULE.json files | |
| # | |
| # example VIM visual mode mapping for specific module and namespace | |
| # fully automatic: |
| # | |
| # Wonsz (aka Snek) - a simple remake of oldschool snake game. | |
| # | |
| # This is a result of evening coding with non-programmers. | |
| # The code is procedural, it uses only basic Ruby features. | |
| # | |
| # Config |