Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar

Yosh yoshuawuyts

View GitHub Profile
View gist:5072402
C:\Users\Yoshua\Dropbox\Projects\edu>jitsu login
info: Welcome to Nodejitsu yoshuawuyts
info: jitsu v0.12.1, node v0.8.20
info: It worked if it ends with Nodejitsu ok
info: Executing command login
prompt: username: (yoshuawuyts) yoshuawuyts
prompt: password:
info: Authenticated as yoshuawuyts
error: Error running command login
error: EPERM, open 'C:\Users\Yoshua\.jitsuconf'
@yoshuawuyts
yoshuawuyts / html5boilerplate.jade
Last active December 15, 2015 10:19 — forked from xtian/html5boilerplate.jade
Updated to include //<![endif]-->
View html5boilerplate.jade
!!! 5
//if lt IE 7
<html class="no-js lt-ie9 lt-ie8 lt-ie7">
//if IE 7
<html class="no-js lt-ie9 lt-ie8">
//if IE 8
<html class="no-js lt-ie9">
//[if gt IE 8]><!
html(class='no-js')
//<![endif]-->
View jitsu error
info: Creating snapshot 0.0.1-1
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: No matching versions found
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
help: email: <support@nodejitsu.com>
help:
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#clock {
position: relative;
background: #222;
width: 960px;
height: 800px;
}
@yoshuawuyts
yoshuawuyts / Stylus REM mixin
Last active June 2, 2021 17:34
Stylus REM mixin (font-size, line-height).
View Stylus REM mixin
//define default values (best to put this in the default.styl file)
base-font-size = 16
base-line-height = 24
//This is the useful part: it compares the given value to the base values and calculates the correct output
font-size($fontValue = base-font-size, $baseFontValue = base-font-size, $baseLineValue = base-line-height)
font-size $fontValue px
font-size ($fontValue / $baseFontValue) rem
line-height ($fontValue / $baseFontValue) * $baseLineValue
line-height ($baseLineValue/$baseFontValue) * ($fontValue / $baseFontValue) rem
@yoshuawuyts
yoshuawuyts / Stylus heading style
Created June 2, 2013 20:14
Stylus mixin to style headings, not yet supported.
View Stylus heading style
//
// Style any number of headings in one fell swoop:
// This is not yet supported by Stylus, see https://github.com/LearnBoost/stylus/issues/608 for more information.
headings(1..6)
for heading in headings()
h{{heading}}
@content
View README.md

A sunburst is similar to the treemap, except it uses a radial layout. The root node of the tree is at the center, with leaves on the circumference. The area (or angle, depending on implementation) of each arc corresponds to its value. Sunburst design by John Stasko. Data courtesy Jeff Heer.

View Triangle-background
/start code
int mX, mY; //global variable initialization
void setup() { //note sure about making the screen scalable, but if you can
size(640, 480); //the code for drawing the triangles is parametric, so it would work
background(200);
noStroke(); //outlines are bad
}
void draw() {
@yoshuawuyts
yoshuawuyts / path.txt
Created June 17, 2013 14:47
Personal path variable to use between windows machines, to be used after installing: - Drivers - Git - Node
View path.txt
C:\Ruby200-x64\bin;
C:\Chocolatey\bin;
C:\phantomjs;
C:\casperjs\batchbin;
@yoshuawuyts
yoshuawuyts / h5bp.jade
Created July 26, 2013 21:18
slightly adjusted h5bp in jade, made to support angular with fallback to local (made to be sails compatible out of the box)
View h5bp.jade
!!! 5
//if lt IE 7
<html class="no-js lt-ie9 lt-ie8 lt-ie7">
//if IE 7
<html class="no-js lt-ie9 lt-ie8">
//if IE 8
<html class="no-js lt-ie9">
//[if gt IE 8]><!
html(class='no-js')
//<![endif]