Skip to content

Instantly share code, notes, and snippets.

@worace
worace / app.js
Created May 29, 2016 18:10
Electron Woes
ipc.on("request-rsa-key", (event, keyLength) => {
console.log("Renderer requested RSA key of length", keyLength);
var k = new NodeRSA({b: keyLength})
event.sender.send('rsa-key', k);
console.log("***** Main Finished Key *****")
});
@worace
worace / week_3.markdown
Created May 26, 2016 14:40
Module 1 Week 3 Diagnostic

Module 1 Week 3 Diagnostic

This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.

For these questions, write a short snippet of code that meets the requirement. In cases where the question mentions a "given" data value, use the variable given to refer to it (instead of re-writing the information).

@worace
worace / abhiyerra.rb
Created May 23, 2016 22:04
Jekyll Org Mode Experiments
# https://gist.github.com/abhiyerra/7377603
module Jekyll
# Convert org-mode files.
require 'org-ruby'
class OrgConverter < Converter
safe true
def setup
# No-op

Module 1 Week 2 Diagnostic Answers

This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.

For these questions, write a short snippet of code that meets the requirement. In cases where the question mentions a "given" data value, use the variable given to refer to it (instead of re-writing the information).

@worace
worace / flow.markdown
Last active May 10, 2016 16:43
Flow Control Exercise
{
"user": {
"username": "worace",
"avatar_url": "https://avatars.githubusercontent.com/u/1227440",
"github_id": 1227440
},
"statistics": [
{
"track_id": "assembly",
"language": "Assembly",
require 'date'
require 'pry'
class KeyGenerator
def self.create_key
rand(10000..99999).to_s
end
end
class Offset

Week of April 4 Crypto Currency After School Sessions

In preparation for the hackathon this week I have been trying to revive our in-house cryptocurrency project, AKA ClarkeCoin

4:15 - 5:15 Each Day

Monday - Technical Fundamentals -- Hashing Algorithms and Public/Private Key Encryption

  • What are the core technical tools that make a blockchain-based system work?
  • What is a hashing algorithm?
class Dog # class name is a "constant"
# Objects combine:
# -- state (instance variables)
# -- behavior (methods)
def initialize
# first step in the object's lifecycle
# do i have any setup i actually need to do?
@animals_chased = []
end