Skip to content

Instantly share code, notes, and snippets.

Avatar

Nuno Job dscape

View GitHub Profile
View gist:b31d0a28446b645e1b49
function foo(obj) {
var keys = [];
keys.push(object.name + '@' + obj.version);
for (var key in obj) {
if (key === 'dependencies' && typeof obj[key] === 'object')
keys.push(foo(obj[key]));
}
}
return keys;
}
@dscape
dscape / turkey.json
Last active Aug 29, 2015
gist created by github.com/dscape/ghcopy
View turkey.json
{
"configuration": {
"resortCode": "turkey-any",
"ocupation": "2",
"departureDate": "20140101,20151212",
"duration": "7",
"boardBasis": "0",
"moreLinkUrl": "/srv-search/search?resortCode=turkey-any&occupation=&departureDate=20140101%2C20151212&duration=7&sort=&boardType=&"
},
"papiSearchResults": [
@dscape
dscape / ghcopy.txt
Created Aug 15, 2014
gist created by github.com/dscape/ghcopy
View ghcopy.txt
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZe2jje7DAL11/Py4/7mFU8jZY4lkdJg0Ikbaq95nizHOqd23P1ONTlJ4OaLuunJSyoa9C4yWcznRCjgj0ZSZyhC+ySTN2aqudPENUksmzu15CxM8yEcs26OVQKqITG3qeBcKeDmyCAkuAWoehwzHfirVvCbBbIvDvbtjLiifCILxUjRxVz0kSJ6BARqWgdVBSI8c3GTm4q0vXp4M2P3Cyk08ZGj31oEsoYdFfPHG3lDgbmYtSVnwsrMK/ZByL6oufzO84Hk1B5KMMCOnjfsUknFZc5tn085T/A1ngkGOtxdoG/8OMchUcmjJfsVBTpy3shyuFUrOzNxipCin5oR5X dscape@air-2.local
View gist:124a9ef2e9d0dfc555fd
```
Section Time Easy Medium Hard
Trial 3m ✔ ✔ ✔
JS 15m ✔ ✔ ✔ ✔ ✗ ✗ ✗ ✗ ✗ ✗ ✗ ✗
Node 15m ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Modules 10m ✗ ✗ ✗ ✗ ✗ ✗
npm 6m ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Command Line 5m ✗ ✗ ✗ ✗ ✗ ✗
Apps 15m ✔ ✔ ✔
```
@dscape
dscape / books.txt
Last active Aug 29, 2015
Books for the YLD Office
View books.txt
Predictably Irrational: The Hidden Forces that Shape Our Decisions
Quiet: The power of introverts in a world that can't stop talking
Business Adventures
Zero to One
Beyond Budgeting
Winning Decisions: Getting It Right the First Time
Creativity Inc
Good to Great
Surviving & Thriving in a Relationship with an Entrepreneur
First, Break All the Rules
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-progress/paper-progress.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
@dscape
dscape / ghcopy.txt
Created May 16, 2014
gist created by github.com/dscape/ghcopy
View ghcopy.txt
fffoo
fffd
sddssdsd
dssdsd
sdsdsd
@dscape
dscape / README.md
Last active Dec 21, 2015 — forked from mbostock/.block
Throughput by varying write block size
View README.md

Plot for the Sequential write to file exercise in UoT CS434

Each line represents a different file size:

  • 1MB (baseline)
  • 10MB
  • 50MB
  • 100MB

To see the rest of the work consult github/dscape

View gist:6174370
<html>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script>
$.getJSON('http://localhost:3000/athlete/1', function(data) {
console.log(data);
});
</script>
</html>
@dscape
dscape / js-beautify-and-jshint-for-textmate2.command.sh
Last active Dec 20, 2015
A command that on save (command + s) runs the beautifier and then runs jshint according to your jshintrc. if there are jshint errors it adds a comment to shame you into submission. Requires this bundle to actually do the saving https://github.com/bomberstudios/Save-On-Focus-Lost.tmbundle
View js-beautify-and-jshint-for-textmate2.command.sh
#!/usr/bin/env bash
#
# Ask the textmate guys?
#
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
#
# Name: reformat.js
# Author: @dscape
You can’t perform that action at this time.