Skip to content

Instantly share code, notes, and snippets.

Jason Williams jasonwilliams

Block or report user

Report or block jasonwilliams

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:e38e6a950a988ac6fbfc2e40f15c1902
MC-S104347:servo willij87$ ./mach build --dev
Compiling rustc-demangle v0.1.1
Compiling open v1.1.1
Compiling webrender v0.11.0 (https://github.com/servo/webrender#c4a0c01f)
Compiling string_cache_shared v0.3.0
Compiling fnv v1.0.5
Compiling gcc v0.3.35
Compiling bitflags v0.4.0
Compiling sig v0.1.1
Compiling webrender_traits v0.11.0 (https://github.com/servo/webrender#c4a0c01f)
View gist:43fbd42de836160b27b9a47047c09f99
"mod_php70u",
"php70u-cli",
"php70u-common",
"php70u-devel",
"php70u-fpm-httpd",
"php70u-fpm-nginx",
"php70u-fpm",
"php70u-gd",
"php70u-intl",
"php70u-json",
@jasonwilliams
jasonwilliams / quicksort.js
Created Dec 5, 2016
Easier, faster quicksort in javascript
View quicksort.js
// var arr = [1,3,5,2,80,3,71,12];
function sort(arr) {
// base case
if (arr.length <= 1) return arr;
var swapPos = Math.floor((arr.length - 1) / 2),
swapVal = arr[swapPos], less = [], more = [];
arr = arr.slice(0, swapPos).concat(arr.slice(swapPos + 1));
@jasonwilliams
jasonwilliams / test_output
Created Nov 19, 2016
syntax_test_rust.rs failures
View test_output
Packages/sublime-rust/syntax_test_rust.rs:842:31: [source.rust meta.function.rust meta.function.parameters.rust comment.block.rust] does not match scope [source.rust meta.function.rust meta.function.parameters.rust]
Packages/sublime-rust/syntax_test_rust.rs:842:32: [source.rust meta.function.rust meta.function.parameters.rust comment.block.rust] does not match scope [source.rust meta.function.rust meta.function.parameters.rust]
Packages/sublime-rust/syntax_test_rust.rs:842:33: [source.rust meta.function.rust meta.function.parameters.rust comment.block.rust] does not match scope [source.rust meta.function.rust meta.function.parameters.rust]
Packages/sublime-rust/syntax_test_rust.rs:842:34: [source.rust meta.function.rust meta.function.parameters.rust comment.block.rust] does not match scope [source.rust meta.function.rust meta.function.parameters.rust]
Packages/sublime-rust/syntax_test_rust.rs:842:35: [source.rust meta.function.rust meta.function.parameters.rust comment.block.rust] does not match scope [source
View gist:6ff1aa5b2b48fb97f65f4e85f8d94d66
G:\workspace2\sandbox-6-vagrant>vagrant up --debug
INFO global: Vagrant version: 1.8.7
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.8.7\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="debug"
@jasonwilliams
jasonwilliams / Node.sublime-build
Created Oct 31, 2016
add this file to /Users/***/Library/Application Support/Sublime Text 3/Packages/User
View Node.sublime-build
{
"cmd": ["/usr/local/bin/node", "$file"],
"selector": "source.js"
}
View gist:d3bd4bfcf65b08b604b5
$ ./mach run -r -- -b -w --pref dom.mozbrowser.enabled http://localhost:6060
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\quad.vs.glsl"
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\quad.fs.glsl"
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\blit.vs.glsl"
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\blit.fs.glsl"
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\border.vs.glsl"
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\border.fs.glsl"
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\blend.vs.glsl"
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\blend.fs.glsl"
compile "\\\\?\\C:\\msys64\\home\\Jason\\servo\\resources\\shaders\\filter.vs.glsl"
@jasonwilliams
jasonwilliams / gist:e051491cc788e17c420a
Created Mar 27, 2016
npm install --no-optional on browserhtml
View gist:e051491cc788e17c420a
λ npm install --no-optional
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
amdefine@1.0.0 node_modules\babel-core\node_modules\source-map\node_modules\amdefine -> node_modules\amdefine
ansi-regex@2.0.0 node_modules\babel-core\node_modules\chalk\node_modules\has-ansi\node_modules\ansi-regex -> node_modules\ansi-regex
archy@1.0.0 node_modules\gulp\node_modules\archy -> node_modules\archy
arr-flatten@1.0.1 node_modules\watchify\node_modules\anymatch\node_modules\micromatch\node_modules\arr-diff\node_modules\arr-flatten -> node_modules\arr-flatten
arr-diff@2.0.0 node_modules\watchify\node_modules\anymatch\node_modules\micromatch\node_modules\
View gist:64a5d4781d15635b0e82
IEUser@IE11WIN10 MINGW64 ~/servo
$ ./mach build -d
Updating git repository `https://github.com/servo/rust-fontconfig`
Compiling angle v0.1.0 (file:///C:/msys64/home/IEUser/angle)
Compiling script v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling script_traits v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling gfx v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling layout_traits v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling compositing v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
C:\msys64\home\IEUser\servo\components\compositing\constellation.rs:28:30: 28:46 warning: unused import, #[warn(unused_imports)] on by default
View gist:b6c6c889f4b79ec6edee
Compiling net v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling devtools v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling canvas v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling script_traits v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling gfx v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling servo v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling layout_traits v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling compositing v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling webdriver_server v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
Compiling glutin_app v0.0.1 (file:///C:/msys64/home/IEUser/servo/components/servo)
You can’t perform that action at this time.