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 loadScript(url, callback) | |
{ | |
// Adding the script tag to the head as suggested before | |
var head = document.head; | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = url; | |
// Then bind the event to the callback function. | |
// There are several events for cross browser compatibility. |
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> | |
<head> | |
<title>Hartslag</title> | |
<style> | |
div { | |
font-size: 90px; | |
} | |
</style> | |
<script src="https://js.pusher.com/4.3/pusher.min.js"></script> |
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
interface Point { | |
x: number | |
y: number | |
} | |
interface Size { | |
width:number | |
height:number | |
} |
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
interface Point { | |
x: number | |
y: number | |
} | |
interface Size { | |
width:number | |
height:number | |
} |
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
# Open op osx de terminal | |
# http://hints.macworld.com/article.php?story=20090105132257900 | |
cd ~/Library/Calendars | |
sqlite3 Calendar\ Cache | |
delete from ZMESSAGE; | |
.quit |
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
HAI 1.2 | |
CAN HAS STDIO? | |
VISIBLE "DANK JE ERIC" | |
KTHXBYE |
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
<?php | |
// the message | |
$naam = "Raymond"; | |
$msg = "Beste Eric,\n\nIk wil je enorm bedanken voor je attente notificatie!\nGroeten ".$naam; | |
// use wordwrap() if lines are longer than 70 characters | |
$msg = wordwrap($msg,70); | |
// send email | |
for ($aantal = 0; $aantal <= 1000; $aantal++) { |
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
class SoundEngine { | |
var hulpje : WordTimer? | |
var audioPlayer : AVAudioPlayer? = nil | |
func playWithWordBreak (cues: CuePoints?, name: String, nextWord: ()->Void ) -> NSTimeInterval { | |
let soundURL = NSBundle.mainBundle().URLForResource (name, withExtension:"m4a", subdirectory:"samples") | |
do { | |
try audioPlayer = AVAudioPlayer(contentsOfURL: soundURL!) | |
audioPlayer!.prepareToPlay() |
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
klanten.reduce(klanten.first!, {(k1 : Klant, k2 : Klant) -> Klant in | |
if(k1.krediet < k2.krediet){ | |
return k1 | |
} | |
return k2 | |
}) | |
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
# rakefile | |
app.info_plist['CFBundleURLTypes'] = [{'CFBundleURLName' => 'nl.ray.lookback', 'CFBundleURLSchemes' => ['ray'] }] | |
# app delegate | |
def application(application, openURL:url, sourceApplication:sourceApplication, annotation:annotation) | |
p sourceApplication | |
p annotation |
NewerOlder