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
const AudioContext = window.AudioContext || window.webkitAudioContext; | |
let context = new AudioContext(); | |
let mute = false; | |
export default class SoundEffect { | |
constructor(data) { | |
this.ended = true; | |
context.decodeAudioData(jsfxr(data), (buffer) => { | |
this.buffer = buffer; | |
}); |
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> | |
<title>Pizza vs. Memory Leaks</title> | |
<body> | |
<style> | |
body { | |
background-color: #ffffcc; | |
color: #000; | |
font-size: 30px; | |
text-align: center; |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
controllerArray: [{ value: 'a'} , {value: 'b'}, {value: 'c'}], | |
actions: { | |
updateArray(updatedString, index) { | |
console.log('updateArray'); | |
console.log(this.get('controllerArray')); |
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> | |
<title>Roy'z Thoughtz</title> | |
<body style="background-color: #000; color: #fff; background-image: url('orion.jpg'); background-size: 100%;"> | |
<img src="roy.png" style="height: 100px; float: left; padding-right: 10px;"> | |
<div style="font-style: italic; font-size: 30px; height: 100px;" class="roy-quote"> | |
I've seen things... | |
</div> |
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
export AWS_SECRET_KEY=`cat .aws_secret_key` | |
ENVIRONMENT=production | |
ember deploy --environment=$ENVIRONMENT | |
if [ $? -eq 0 ] | |
then | |
LATEST_REVISION="$(ember deploy:list --environment=$ENVIRONMENT | grep "1)" | awk '{print $2}')" | |
ember deploy:activate --revision=$LATEST_REVISION --environment=$ENVIRONMENT | |
echo "$(tput setaf 2)Deployed the heck out of the latest revision." |
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
#!/bin/bash | |
lipo -output $1 -create ./Release-iphoneos/$1 ./Release-iphonesimulator/$1 |
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
namespace :deploy do | |
desc 'Compile assets' | |
task :compile_assets => [:set_rails_env] do | |
# invoke 'deploy:assets:precompile' | |
invoke 'deploy:assets:precompile_local' | |
invoke 'deploy:assets:backup_manifest' | |
end | |
namespace :assets do |