Skip to content

Instantly share code, notes, and snippets.

Jaybill McCarthy jaybill

Block or report user

Report or block jaybill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:a106b8a4418f9c1f82cbdd7e22d6b1ff
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "f12",
"command": "workbench.action.tasks.runTask",
"args": "build"
},
{
"key": "f11",
"command": "workbench.action.tasks.runTask",
View dosbox.conf
# This is the configuration file for DOSBox 0.74-2. (Please use the latest version of DOSBox)
# Lines starting with a # are comment lines and are ignored by DOSBox.
# They are used to (briefly) document the effect of each option.
[sdl]
# fullscreen: Start dosbox directly in fullscreen. (Press ALT-Enter to go back)
# fulldouble: Use double buffering in fullscreen. It can reduce screen flickering, but it can also result in a slow DOSBox.
# fullresolution: What resolution to use for fullscreen: original, desktop or fixed size (e.g. 1024x768).
# Using your monitor's native resolution (desktop) with aspect=true might give the best results.
# If you end up with small window on a large screen, try an output different from surface.
View gist:60df5af7b7d89f631bbd8c359e61c970
pacman -Sy \
mingw32/mingw-w64-i686-SDL2 \
mingw32/mingw-w64-i686-SDL2_gfx \
mingw32/mingw-w64-i686-SDL2_image \
mingw32/mingw-w64-i686-SDL2_mixer \
mingw32/mingw-w64-i686-SDL2_net \
mingw32/mingw-w64-i686-SDL2_ttf \
mingw32/mingw-w64-i686-smpeg2 \
mingw64/mingw-w64-x86_64-SDL2 \
mingw64/mingw-w64-x86_64-SDL2_gfx \
@jaybill
jaybill / runprops.js
Last active Mar 15, 2017
Execute any property of an object that's a function.
View runprops.js
var init = {
foo: function(){ console.log('foo') },
bar: function(){ console.log('bar') },
baz: 3.14
}
for (var key in init) {
if (!init.hasOwnProperty(key)) {
continue;
}
View gist:607aa2170589e987bef2872f9111cfc7
http://www.dynamsoft.com/download/TWAIN/twainds.win32.installer.2.1.3.msi
View aliases
#git
alias _gc="git commit -a -m"
alias _gf="git pull"
alias _gp="git push"
alias _gpt="git push --tags"
alias _gs="git status"
alias _ga="git add"
View gist:80f5c61fdeb1c4d2afc5
Jaybill-McCarthy:harebrane jmccarthy$ ./src/test_all.sh
ok cluster 0.041s coverage: 27.6% of statements
ok cluster/v2 0.029s coverage: 24.0% of statements
ok harebrane/handlers 0.059s coverage: 90.7% of statements
ok harebrane/handlers/v2 0.018s coverage: 94.9% of statements
ok harebrane/handlers/v3 0.014s coverage: 94.4% of statements
Error 1728: Cannot load from mysql.proc. The table is probably corrupted
--- FAIL: TestJobDirectorViewTestSuite (0.12s)
panic: Could not create job_directors view [recovered]
panic: Could not create job_directors view
View gist:088974e84c36a77cb1aa
1.5 c rolled oats
0.5 c sunflower seeds
0.75 c chocolate chips
0.5 c whole wheat flour
0.25 c flax meal
0.25 wheat bran
0.25 c honey
3 T shortening
View Markets.test.js
var rewire = require('rewire');
var rewireModule = require('../../test/helpers/rewire-module.js');
var dump = require('../../test/helpers/util.js').dump;
var React = require('react');
var fakeAppDao = require('../../test/helpers/fakeAppDAO.js')
describe("Market (DAO)", function() {
var Market = rewire("./Market.js");
var rw = {
AppDAO: fakeAppDAO
View test.less
// The mixin
.site-search(@modifier,@rules) {
.site-search@{modifier}{
// Common styles
background-color: white;
// Passed in styles
@rules();
}
}
You can’t perform that action at this time.