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
_.find(data.messages, function(message) { | |
if (data.message_id == message.id) { | |
showMessage(message); | |
return; | |
} | |
}); | |
for (var i=0; i< data.messages.length; i++) { | |
if (data.message_id == data.messages[i].id) { | |
showMessage(data.messages[i]); |
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> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 14px sans-serif; | |
} | |
.axis path, .axis line { | |
fill: none; |
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> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 14px sans-serif; | |
} | |
.axis path, .axis line { | |
fill: none; |
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 "screencasts.h" | |
/* | |
* initGlobals() | |
* ------ | |
* Initializes the global variables. | |
*/ | |
void initGlobals(void) | |
{ | |
/* WINDOW */ |
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 "screencasts.h" | |
/* | |
* initGlobals() | |
* ------ | |
* Initializes the global variables. | |
*/ | |
void initGlobals(void) | |
{ | |
/* WINDOW */ |
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 "screencasts.h" | |
/* | |
* initGlobals() | |
* ------ | |
* Initializes the global variables. | |
*/ | |
void initGlobals(void) | |
{ | |
/* WINDOW */ |
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
var data=document.getElementsByClassName('video-time'); | |
var re = /^([2][0-3]|[0-1]?[0-9])([.:][0-5]?[0-9])?$/; | |
var total=0; | |
for(var i=0;i<data.length;i++){ | |
var j=data.item(i).innerText; | |
var match=re.exec(j); | |
if (match != null) { | |
total += parseInt(match[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
#include "screencasts.h" | |
/* | |
* initializeGlobals() | |
* ------ | |
* Initializes the global variables. | |
*/ | |
void initializeGlobals(void) | |
{ | |
/* WINDOW */ |
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
For her I create | |
I make love and choc-o-late | |
She loves me bunches |
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 cProfile | |
import random | |
class Simulation: | |
def run(self): | |
self.names = [{'name':'david','spouse':'tyler'},{'name':'tyler','spouse':'david'}, | |
{'name':'jon','spouse':'bonnie'},{'name':'bonnie','spouse':'jon'}, | |
{'name':'jake','spouse':'caitlin'},{'name':'caitlin','spouse':'jake'}, | |
{'name':'dad', 'spouse':'mom'},{'name':'mom','spouse':'dad'}] | |
okay = False |
NewerOlder