- Devote 90 minutes a day to "practice"
- practice = working on something fun with a path
- Build to learn not to use/finish
- Seven Slotted Learning Todo List
- Strict seven slots
- When it's full and you want to add something remove something and place in a "someday" file in your digital notepad of choice
- Manage anxiety by converting to apathy or control
- Flow model can be helpful for this:
https://en.wikipedia.org/wiki/Flow_(psychology)#Conditions_for_flow
- Flow model can be helpful for this:
- Apathy to get things done and avoid dread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var choose = function(list){ | |
return list[Math.floor(list.length * Math.random())]; | |
}; | |
var aHero = function(){ | |
return choose(heroList); | |
}; | |
var aDeed = function(){ | |
return choose(deedList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var treeMaker = function(value){ | |
//tree code goes here! | |
var tree = Object.create(treeMaker.methods); | |
tree.value = value || null; | |
tree.children = []; | |
return tree; | |
}; | |
//methods go here! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nthFibonacci = function(n) { | |
// Your code here | |
return n < 2 ? n : nthFibonacci(n-1) + nthFibonacci(n-2); | |
}; | |
var result = nthFibonacci(4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"HarleyKwyn": [''shortly-hapi','famous2048', 'barista', 'GalaxyQuestWebsite', 'SSAASS'] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[/** @jsx React.DOM */]]></content> | |
<tabTrigger>jsx</tabTrigger> | |
<scope>source.js</scope> | |
<description>jsx declerations</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = module.exports = {}; | |
config.server = { | |
views: { | |
engines: { | |
jade: require('jade') | |
}, | |
basePath: __dirname, | |
path: './templates', | |
partialsPath: './templates/partials', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function trigger (match, offset, func){ | |
var trigger_height = $(match).offset().top + offset; | |
var element_height = $(match).height(); | |
$(window).on('scroll-tick', function() { | |
var scrolltop = $(window).scrollTop(); | |
if(scrolltop > trigger_height && scrolltop < trigger_height + element_height){ | |
func(); | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BloomFilter; | |
(function(){ | |
BloomFilter = function(length){ | |
this._limit = length; | |
this._storage = makeStorage.call(this); | |
} | |
var makeStorage = function(){ | |
var that = this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN{ | |
#define PI for program | |
PI=3.14159; | |
#define radius of spring form, helical body radius | |
r=6; | |
#define pitch | |
p=7; | |
b= p/(2*PI); | |
#define diameter of spring wire and radius, cross-sectional thickness | |
d=4; |