This file contains hidden or 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
//long | |
var DAYS = [ | |
'Sunday', | |
'Monday', | |
'Tuesday', | |
'Wednesday', | |
'Thursday', | |
'Friday', | |
'Saturday']; |
This file contains hidden or 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
@font-face { | |
font-family: 'Glyphicons Halflings'; | |
src: url('../bower_components/head-bootstrap/fonts/glyphicons-halflings-regular.eot'); | |
src: url('../bower_components/head-bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), | |
url('../bower_components/head-bootstrap/fonts/glyphicons-halflings-regular.woff') format('woff'), | |
url('../bower_components/head-bootstrap/fonts/glyphicons-halflings-regular.ttf') format('truetype'), | |
url('../bower_components/head-bootstrap/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); | |
} | |
@font-face { |
This file contains hidden or 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
/** | |
* adapted from code by chiyuk | |
* https://github.com/DaftMonk/generator-angular-fullstack/issues/494#issuecomment-62564718 | |
*/ | |
'use strict'; | |
var app = require('../app'); | |
var User = require('../api/user/user.model'); | |
var request = require('supertest'); | |
var Q = require('q'); |
This file contains hidden or 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
# Starting Out In Tech | |
I was asked recently to give someone advice on how best to learn to code and become better acquainted with the startup and technology scene in London. I replied with a lengthy email and decided to put its contents in a publicly accessible place based on the feedback it received. I don't profess to be an expert on any of this stuff; these are my personal recommendations based on my 3 year's experience of working with technology in London. | |
## Learning to code | |
Everyone has a different opinion about how to get into coding. Putting to one side how to teach code to young kids, the majority recommend Python or Javascript. I recommend javascript because combined with HTML and CSS, which are relatively simple to pick up, it's very quick for beginners to see something tangible on the screen (ie a webpage) which I think motivates people to continue more than seeing a load of error messages which can be frightening for first timers. | |
That said, I've worked a lot with Decoded in the past who preac |
This file contains hidden or 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
// == Flat UI Colors | |
// == Credit: https://github.com/designmodo/Flat-UI | |
$turquoise: #1abc9c; | |
$green-sea: #16a085; | |
$emerald: #2ecc71; | |
$nephritis: #27ae60; | |
$peter-river: #3498db; |
This file contains hidden or 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
/* | |
* Small script to convert json data to csv | |
*/ | |
var fs = require('fs'); | |
var os = require('os'); | |
//name of files | |
var dataFile = 'data.json'; | |
var outputFile = 'output.csv'; |
This file contains hidden or 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
/* | |
* all credit to @matteoagosti | |
* http://www.matteoagosti.com/blog/2013/02/24/writing-javascript-modules-for-both-browser-and-node/ | |
*/ | |
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { | |
//export for node | |
module.exports = /*MODULE_OBJECT*/ ; | |
} | |
else { |
This file contains hidden or 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 removeExt(string) { | |
if(string == string.replace(/\.[^/.]+$/, '')) | |
return string; | |
else | |
return removeExt(string.replace(/\.[^/.]+$/, '')); | |
} |
This file contains hidden or 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 setupDictation() { | |
var recognizer = new webkitSpeechRecognition(); | |
recognizer.continuous = true; | |
recognizer.interimResults = true; | |
recognizer.onresult = function(e) { | |
if (e.results.length) { | |
var lastResultIdx = e.resultIndex; | |
var message = e.results[lastResultIdx][0].transcript; | |
if(e.results[lastResultIdx].isFinal) { | |
console.log(message); |
NewerOlder