I hereby claim:
- I am seiyria on github.
- I am seiyria (https://keybase.io/seiyria) on keybase.
- I have a public key whose fingerprint is 459D 591A 221A 68D0 D7DA A237 99FF 38D0 52A4 9311
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var origForeachUpdate = ko.bindingHandlers.sortable.update; | |
ko.bindingHandlers.sortable.update = function(element, valueAccessor, allBindingsAccessor, data, context) { | |
var options = valueAccessor(); | |
if (options.defaultText) { | |
var hasDefaultText = $(element).find('span.injected').length > 0; | |
var array = ko.unwrap(options.data); |
/* | |
Option Parameters: | |
url - the URL that will be sending back the tooltip data (required) | |
loadingText - the placeholder text during the loading process | |
getDelay - the delay between when the loading text is shown and when the GET request is sent | |
emptyText - the text that is shown if there was an empty or invalid (404) response from the server | |
cache - if this is true, the response will be cached and will not be re-requested | |
options - these are passed to the bootstrap base tooltip call | |
*/ |
0x233aa7c86bc2e6c7950218ff4b409f78052aaaea |
// ==UserScript== | |
// @name get rid of that instant mix and shuffle shit | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author seiyria | |
// @match https://play.google.com/* | |
// @grant none | |
// ==/UserScript== |
update: this post has been moved to my blog
Welcome! Today I'd like to talk about another subject which can't be emphasized enough: Code Quality. This entails a lot of tools and patterns that ultimately come together to make your game more solid and programmer friendly. Even if you're working alone on a project, these tools can save you some precious debugging time by pointing out simple errors, if not more complex ones. I'll be using my current project, c as an example where possible.
A few notes before we get started:
Some of the easiest tools you can set up for your project are JSHint and JSCS. These tools provide basic st
#nav-bar ul { | |
list-style-type: none; | |
} | |
#nav-bar { | |
padding-left: 0; | |
} | |
#nav-bar > ul { | |
padding-left: 20px; |
const octokit = require('@octokit/rest')(); | |
const snake = require('lodash.snakecase'); | |
const fs = require('fs'); | |
octokit.search.issues({ | |
q: 'repo:landoftherair/landoftherair is:open' | |
}) | |
.then(res => { | |
res.data.items.forEach(item => { |
var fs = require('fs-extra'); | |
var wiki = require('nodemw'); | |
var q = require('q'); | |
var glob = require('glob'); | |
var execSync = require('child_process').execSync; | |
var logger = require('winston'); | |
var argv = require('minimist')(process.argv.slice(2)); | |
var client = new wiki({ | |
server: 'wiki.server.com', |
const Random = require('random-js').Random; | |
const TOTAL_SIMULATIONS = 1; | |
const MAX_PLAYERS = 100000; | |
const TOTAL_FRIENDS_PER_PLAYER = 0; | |
const calculateChoices = () => { | |
const random = new Random(); | |
const ALL_PLAYERS = Array(MAX_PLAYERS).fill(0).map((x, i) => i); |