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 request = require('request') | |
, sys = require('sys') | |
, fs = require('fs') | |
, mkdirp = require('mkdirp') | |
, gm = require('gm').subClass({ imageMagick: true }); | |
var n = 100; | |
var l = Math.sqrt(n); | |
var w = Math.sqrt(n); | |
var width = 170; |
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
<!doctype html> | |
<html ng-app="app"> | |
<head> | |
<title>Tracking My Weight</title> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"></script> | |
<script type="text/javascript"> | |
angular.module('app', []). | |
controller('WeightCtrl', function($http) { | |
var key = '0AjNYHy2ejpSKdDVxWDZMMTVpeXF6MGE3MkVsOWhwc2c'; |
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
// Set & Update SystemMediaControls Display | |
var updater = systemMediaControls.displayUpdater; | |
updater.type = Windows.Media.MediaPlaybackType.music; | |
try { | |
if (updater !== undefined) { | |
updater.musicProperties.artist = "Kevin Smith & Scott Mosier"; | |
updater.musicProperties.albumArtist = "SModcast"; | |
updater.musicProperties.title = newEpisode.data.title; | |
updater.thumbnail = Windows.Storage.Streams.RandomAccessStreamReference.createFromUri(new Windows.Foundation.Uri('http://smodcast.com/wp-content/blogs.dir/1/files_mf/smodcast1400.jpg')); | |
updater.update(); |
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
/** | |
* Kevin Coughlin <kevintcoughlin@gmail.com> | |
*/ | |
(function () { | |
'use strict'; | |
WinJS.Namespace.define("Converters", { | |
/** | |
* Convert current time and duration to human | |
* readable string. |
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
Programming basics: | |
- How to Think Like A Computer Scientist - http://www.greenteapress.com/thinkpython/thinkpython.html | |
- Think Complexity - http://greenteapress.com/complexity/thinkcomplexity.pdf | |
- SICP - http://mitpress.mit.edu/sicp/ | |
--- | |
Web/Development basics: | |
- Team Treehouse modules on git, shell commands, DNS, etc -http://teamtreehouse.com | |
- How Does The Internet Work? - http://www.stanford.edu/class/msande91si/www-spr04/readings/... | |
- Udacity Web Dev course - https://www.udacity.com/course/cs253 | |
--- |
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 () { | |
"use strict"; | |
/** | |
* Tumblr OAuth Client | |
*/ | |
WinJS.Namespace.define('TumblrOAuth', { | |
client: WinJS.Class.define(function (consumerKey, consumerSecret) { | |
this._consumerKey = consumerKey; | |
this._consumerSecret = consumerSecret; |
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
Build 3080 | |
Release Date: 24 March 2015 | |
See also the Blog Post | |
Fixed Redo sometimes restoring the selection to the incorrect location | |
Reworked how Build Systems are selected (More Information) | |
Build Systems may now declare "keyfiles" (e.g., 'Makefile' for the Make build system) to better auto detect which build system to use | |
Improved handling of build systems that generate lots of output | |
New windows always use the automatic build system, rather than the build system of the last used window | |
Command Palette now remembers the last entered string | |
Improved change detection for files that disappear and reappear, as happens with disconnected network drives |
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() { | |
'use strict'; | |
var session = null; | |
var episodeUrl = 'http://ec.libsyn.com/p/9/2/2/92263366ea06064d/p635.mp3?d13a76d516d9dec20c3d276ce028ed5089ab1ce3dae902ea1d06ca8e32d1cd58c77c&c_id=8791174'; | |
var currentMedia = null; | |
window['__onGCastApiAvailable'] = function(loaded, errorInfo) { | |
if (loaded) { | |
initializeCastApi(); |
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
public abstract class InfiniteRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
public final static String TAG = InfiniteRecyclerOnScrollListener.class.getSimpleName(); | |
private int previousTotal = 0; | |
private boolean loading = true; | |
private int current_page = 0; | |
private final LinearLayoutManager mLinearLayoutManager; | |
public InfiniteRecyclerOnScrollListener(LinearLayoutManager linearLayoutManager) { | |
this.mLinearLayoutManager = linearLayoutManager; |
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 tumblr = require('tumblr.js'); | |
var client = tumblr.createClient({ consumer_key: /* your consumer key */ }); | |
client.posts('annetje-stichting', { id: 119348740950 }, function (err, data) { | |
console.log(data); | |
/** | |
* Example output: | |
* ... | |
* note_count: 0, | |
* caption: '<h2>helping kids in tough times</h2><p>lorem ipsumlorem ipsumlorem ips |
OlderNewer