- Resource Lists
- Awesome Elixir Resource List https://github.com/h4cc/awesome-elixir
- Elixir Talks https://github.com/elixir-lang/elixir/wiki/Talks
- Phoenix Framework http://www.phoenixframework.org/
- Elixir Official Site http://elixir-lang.org/
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
let jsChain = new Blockchain(); | |
jsChain.addBlock(new Block("12/25/2017", {amount: 5})); | |
jsChain.addBlock(new Block("12/26/2017", {amount: 10})); | |
console.log(JSON.stringify(jsChain, null, 4)); | |
console.log("Is blockchain valid? " + jsChain.checkValid()); |
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
const SHA256 = require('crypto-js/sha256') | |
class Block { | |
constructor(timestamp, data) { | |
this.index = 0; | |
this.timestamp = timestamp; | |
this.data = data; | |
this.previousHash = "0"; | |
this.hash = this.calculateHash(); | |
this.nonce = 0; |
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 Blockchain{ | |
constructor() { | |
this.chain = [this.createGenesis()]; | |
} | |
createGenesis() { | |
return new Block(0, "01/01/2017", "Genesis block", "0") | |
} |
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
const SHA256 = require('crypto-js/sha256') | |
class Block { | |
constructor(timestamp, data) { | |
this.index = 0; | |
this.timestamp = timestamp; | |
this.data = data; | |
this.previousHash = "0"; | |
this.hash = this.calculateHash(); | |
this.nonce = 0; |
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 Block { | |
constructor(timestamp, data) { | |
this.index = 0; | |
this.timestamp = timestamp; | |
this.data = data; | |
this.previousHash = "0"; | |
this.hash = this.calculateHash(); | |
this.nonce = 0; | |
} |
The following links were used as references for this talk: SF RoR Meetup: High Performance Learning
- Dan Pink on what motivates us in Drive (and the book)
- Angela Duckworth's work on the key to success: Grit
- Shawn Anchor on the Happy Secret to Better Work
- Richard Mayer on Applying the Science of Learning
- Charles Duhigg on The Power of Habit
- Andy Puddicombe on Mindfulness
- Carol Dweck on Mindset
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
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
function Animal ( name, num_of_legs ) { | |
this.name = name; | |
this.num_of_legs = num_of_legs; | |
} | |
Animal.prototype.identify = function() { |
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
# Solution for Challenge: Database Drill: Intro to SQLite. Started 2015-05-09T04:09:18+00:00 | |
sqlite> | |
sqlite> .schema | |
CREATE TABLE users ( | |
id INTEGER PRIMARY KEY AUTOINCREMENT, | |
first_name VARCHAR(64) NOT NULL, | |
last_name VARCHAR(64) NOT NULL, | |
email VARCHAR(128) UNIQUE NOT NULL, | |
created_at DATETIME NOT NULL, | |
updated_at DATETIME NOT NULL |
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
# There may be a few typos here and there and I also did not put up the Twilio Portion. | |
# ------------------------------------------------------------ | |
# CSV | |
# ------------------------------------------------------------ | |
require 'csv' | |
class Person |