Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| var EventEmitter = require('events').EventEmitter, | |
| _ = require('lodash'); | |
| /** | |
| * Creates an action functor object | |
| */ | |
| exports.createAction = function() { | |
| var action = new EventEmitter(), | |
| eventLabel = "action", |
| #include "hemicube.h" | |
| #define PACK_HEMICUBES 1 | |
| static void get_hemicube_face_normal(int index, Vector3 *forward, Vector3 *left, Vector3 *up) { | |
| // Unwrapped hemicube with positive-Z in the middle. | |
| switch (index) { | |
| case 0: *forward = Vector3(+1, 0, 0); *left = Vector3( 0, 1, 0); break; |
| docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| /** | |
| * api/models/User.js | |
| * | |
| * The user model contains the instance method for validating the password. | |
| */ | |
| var bcrypt = require('bcrypt'); | |
| function hashPassword(values, next) { | |
| bcrypt.hash(values.password, 10, function(err, hash) { |
| var pushRight = slate.operation("push", { | |
| "direction": "right", | |
| "style": "bar-resize:screenSizeX/2" | |
| }); | |
| var pushLeft = slate.operation("push", { | |
| "direction": "left", | |
| "style": "bar-resize:screenSizeX/2" | |
| }); |
| /log/ | |
| /logs/ | |
| /images/ | |
| /javascripts/ | |
| /stylesheets/ | |
| /tmp/ | |
| /vendor/ | |
| *.sql | |
| *.tags* | |
| *.gemtags* |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |
| function countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |