Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
Complete code in
math.directive.ts
After reading this you will be able to create a structural directive with inputs and context variables and use it like this:
<div *math="10; exponent: 3; let input;
let exponent = exponent; let r = root;
let p = power; let ctrl = controller">
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
0x1d889fCCB79F8902700Eb313C2255D937F21DC77 |
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 __extends = function (child, parent) { | |
for (var p in parent) { | |
if (Object.prototype.hasOwnProperty.call(parent, p)) { | |
child[p] = parent[p]; | |
} | |
} | |
function __() { | |
this.constructor = child; | |
} |
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 key_value = [ | |
"paam_1=value_1", | |
"paam_2=value_2", | |
"paam_3=value_3", | |
"paam_4=value_4", | |
] | |
url.indexOf("?") == -1 ? "?" : "&") + key_value.join("&"); |
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 parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
BLUE="\[\033[0;36m\]" | |
DARK_BLUE="\[\033[1;34m\]" | |
RED="\[\033[0;31m\]" | |
DARK_RED="\[\033[1;31m\]" | |
YELLOW="\[\033[0;33m\]" |
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 uuid = require("uuid") | |
var rnd_str = require('random-string') | |
var m = require('mercury'); | |
var h = m.h; | |
var diff = m.diff; | |
var patch = m.patch; | |
var createElement = m.create; | |
var array = m.array; |
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 | |
now=`date +"%F_%I-%M-%S"` | |
project=`pwd | awk '{n=split($0,a,"/"); split(a[n],b,"."); print b[1]}'` # Don't ask... | |
sandbox=$HOME/tmp/$project | |
if [ ! -d "$sandbox" ]; then | |
mkdir -p $sandbox | |
fi |
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 mercury = require("mercury") | |
var h = mercury.h | |
var nextTick = require('next-tick') | |
var rnd_str = require('random-string') | |
var events = { | |
addItem: mercury.input() | |
}; | |
var state = mercury.struct({ |
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 mercury = require("mercury") | |
var h = mercury.h | |
var nextTick = require('next-tick') | |
var rnd_str = require('random-string') | |
var events = { | |
addItem: mercury.input(), | |
removeItem: mercury.input() | |
}; |
NewerOlder