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] [[
This file contains hidden or 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
universal_getter = function(id, prop_name, cb) { | |
// get it from db or some data set | |
// if fails set erro to `new Error()` | |
// | |
// if storage is locked wait till it gets unlocked | |
// | |
// goGetItFromDB(prop_name, function(err, val) { | |
return cb(err, val); | |
// }) |
This file contains hidden or 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() | |
}; |
This file contains hidden or 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() | |
}; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
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 hidden or 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 LineItem { | |
id: string, | |
amount: number, | |
name: string, | |
} | |
type TransformFn<T1, T2> = (item: T1) => T2 | |
// v0 This function takes a set of transform functions and call them in sequence | |
// someone could say it "composes" them |
OlderNewer