Software and Hardware Developer
Seoul, Korea / [email protected]
To explain what I've been done for my own pleasure and, of course, for my living.
function Human (name) { | |
this.name = name | |
this.race = 'human' | |
this.talk = function () { | |
console.log('Say my name!') | |
} | |
} | |
function White () { | |
Human.apply(this, arguments) |
function Person (name) { | |
this.name = name | |
this.talk = function () { | |
console.log('My name is', this.name) | |
} | |
} | |
function Brazilian () { | |
// Without this line jose wouldn't have this.name. Optionally you can do this with some kind of init function | |
Person.apply(this, arguments) |
// QUICK SORT ALGORITHM | |
// @params {Array} arr | |
// @returns {Array} arr | |
const quickSort = (arr) => { | |
if (arr.length < 2) return arr | |
const pivotIndex = Math.floor(Math.random() * arr.length) | |
const pivot = arr[pivotIndex], less = [], greater = [] | |
for (let i = 0, l = arr.length; i < l; i++) { |
#!/bin/sh | |
defaults write com.apple.screencapture disable-shadow -bool true && killall SystemUIServer | |
// Photoshop Script to Create iPhone Icons from iTunesArtwork | |
// | |
// WARNING!!! In the rare case that there are name collisions, this script will | |
// overwrite (delete perminently) files in the same folder in which the selected | |
// iTunesArtwork file is located. Therefore, to be safe, before running the | |
// script, it's best to make sure the selected iTuensArtwork file is the only | |
// file in its containing folder. | |
// | |
// Copyright (c) 2010 Matt Di Pasquale | |
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com |
<style> | |
.container { | |
width: 100%; | |
} | |
.flex-wrapper { | |
display: flex; | |
} | |
.flex-1 { |
var EventEmitter = require('events').EventEmitter, | |
util = require('util'), | |
spawn = require('child_process').spawn, | |
http = require('http'); | |
var Speakable = function Speakable(credentials, options) { | |
EventEmitter.call(this); | |
options = options || {} |
// Don't forget to run export AUDIODEV='hw:1,0' && export AUDIODRIVER="alsa" | |
var BUTTONS = { | |
RECORD: 18, | |
NEXT: 19, | |
PREV: 20, | |
OK: 21 | |
}; | |
var GPIO = require('node-pi-gpio'); |
Template.portfolioHoldings.rendered = -> | |
@find('.js-holdings-list')._uihooks = | |
insertElement: (node, next) -> | |
$node = $(node) | |
if $node.hasClass('js-placeholder-holding-wrapper') or $node.hasClass('js-holding-search-wrapper') | |
console.log 'inserting...' | |
$node.insertBefore(next) | |
$node.css( | |
"z-index": "1000" | |
transform: "translateY(50%) rotateX(90deg)", |
Software and Hardware Developer
Seoul, Korea / [email protected]
To explain what I've been done for my own pleasure and, of course, for my living.