Skip to content

Instantly share code, notes, and snippets.

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.
<!DOCTYPE html>
<head>
<title>Hartslag</title>
<style>
div {
font-size: 90px;
}
</style>
<script src="https://js.pusher.com/4.3/pusher.min.js"></script>
interface Point {
x: number
y: number
}
interface Size {
width:number
height:number
}
interface Point {
x: number
y: number
}
interface Size {
width:number
height:number
}
@dongelen
dongelen / gist:11d31ce8c74eea5646f01014fd37897f
Created July 6, 2016 10:12
Verwijder notificaties in Osx calendar
# Open op osx de terminal
# http://hints.macworld.com/article.php?story=20090105132257900
cd ~/Library/Calendars
sqlite3 Calendar\ Cache
delete from ZMESSAGE;
.quit
HAI 1.2
CAN HAS STDIO?
VISIBLE "DANK JE ERIC"
KTHXBYE
<?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++) {
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()
klanten.reduce(klanten.first!, {(k1 : Klant, k2 : Klant) -> Klant in
if(k1.krediet < k2.krediet){
return k1
}
return k2
})
# 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