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
//change google address into something we can use | |
function parseAddress(addr){ | |
var newAddr = {}; | |
for (var i=0; i<addr.length; i++){ | |
switch (addr[i].types[0]){ | |
case "street_number": | |
newAddr.street_number = addr[i].long_name; | |
break; | |
case "route": | |
newAddr.street_name = addr[i].long_name; |
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 loaded($){ | |
//constants | |
window.constants = { | |
RTAPIKey: 'YOUR API KEY HERE', | |
} | |
//load movies from the page | |
var movies = $('.bucketLists').children('ul').children('li'); |
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(){ | |
var files = | |
[ | |
/****** Instructions | |
1) insert the following into your HTML file: | |
<script type="text/javascript" src="import.js"></script> | |
2) then populate the following object with the info of your javascript files: | |
{ |
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 lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Emscripten-Generated Code</title> | |
<style> | |
.emscripten { padding-right: 0; margin-left: auto; margin-right: auto; display: block; } | |
textarea.emscripten { font-family: monospace; width: 80%; } | |
div.emscripten { text-align: center; } |
This file has been truncated, but you can view the full file.
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
// Note: Some Emscripten settings will significantly limit the speed of the generated code. | |
// Note: Some Emscripten settings may limit the speed of the generated code. | |
try { | |
this['Module'] = Module; | |
} catch(e) { | |
this['Module'] = Module = {}; | |
} | |
// The environment setup code below is customized to use Module. | |
// *** Environment setup code *** | |
var ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function'; |
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
// Note: For maximum-speed code, see "Optimizing Code" on the Emscripten wiki, https://github.com/kripken/emscripten/wiki/Optimizing-Code | |
// Note: Some Emscripten settings may limit the speed of the generated code. | |
try { | |
this['Module'] = Module; | |
} catch(e) { | |
this['Module'] = Module = {}; | |
} | |
// The environment setup code below is customized to use Module. | |
// *** Environment setup code *** | |
var ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function'; |
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
#include <iostream> | |
#include <stdio.h> /* printf, scanf, puts, NULL */ | |
#include <stdlib.h> /* srand, rand */ | |
#include <time.h> /* time */ | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
srand (time(NULL)); | |
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
first_name = "Charlton" | |
full_name = "#{firs_name} Roberts" | |
alert(full_name) |
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 colorInBetween(color1, color2){ | |
function toNumber(hexStr){ return parseInt('0x'+hexStr); } | |
function toColorObject(color){ | |
var obj = {}; | |
obj.red = toNumber(color.slice(1,3)); | |
obj.green = toNumber(color.slice(3,5)); | |
obj.blue = toNumber(color.slice(5,7)); | |
return obj; | |
} | |
function getAverage(val1, val2){ |
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
####################################### | |
############## HOMEBREW ############### | |
####################################### | |
printf "\n\n---> Updating Homebrew\n" | |
# update homebrew | |
brew update | |
# update all homebrew packages |
OlderNewer