Skip to content

Instantly share code, notes, and snippets.

View dscape's full-sized avatar

Nuno Job dscape

View GitHub Profile
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 August 29, 2015 14:05
gist created by github.com/dscape/ghcopy
{
"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 August 15, 2014 08:51
gist created by github.com/dscape/ghcopy
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZe2jje7DAL11/Py4/7mFU8jZY4lkdJg0Ikbaq95nizHOqd23P1ONTlJ4OaLuunJSyoa9C4yWcznRCjgj0ZSZyhC+ySTN2aqudPENUksmzu15CxM8yEcs26OVQKqITG3qeBcKeDmyCAkuAWoehwzHfirVvCbBbIvDvbtjLiifCILxUjRxVz0kSJ6BARqWgdVBSI8c3GTm4q0vXp4M2P3Cyk08ZGj31oEsoYdFfPHG3lDgbmYtSVnwsrMK/ZByL6oufzO84Hk1B5KMMCOnjfsUknFZc5tn085T/A1ngkGOtxdoG/8OMchUcmjJfsVBTpy3shyuFUrOzNxipCin5oR5X dscape@air-2.local
```
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 August 29, 2015 14:04
Books for the YLD Office
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
@dscape
dscape / designer.html
Created July 25, 2014 16:39
designer
<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 10:52
gist created by github.com/dscape/ghcopy
fffoo
fffd
sddssdsd
dssdsd
sdsdsd
@dscape
dscape / README.md
Last active December 21, 2015 03:59 — forked from mbostock/.block
Throughput by varying write block size

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

<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 December 20, 2015 17:29
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
#!/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