(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sat Jun 13 12:37:31 2015 | |
| @author: abhinav | |
| """ | |
| class numperson: | |
| def __init__(self): | |
| self.color = None | |
| self.name = None |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Wed Jul 15 22:13:03 2015 | |
| @author: abhinav | |
| """ | |
| import matplotlib.pyplot as plt | |
| import numpy as np |
| # I have left an ample amount of trail and rough work in here so that you may follow up the workflow | |
| # and modify the program as necessary for your needs. | |
| """ | |
| Disclaimer :- I am not responsible for any damage done via this code or it's derivative. | |
| Advice :- Be careful with the sites you play with. Be nice and don't wander away from the path of light! | |
| Most Muggles don't like Magic;P | |
| """ |
| #lang racket | |
| (require net/http-client) | |
| (require net/url) | |
| (require json) | |
| (require net/uri-codec) | |
| (require racket/cmdline) | |
| (define lg (make-logger 'currency-logger)) | |
| (current-logger lg) |
| # Awesome atom |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
| // Open (or create) the database | |
| var open = indexedDB.open("MyDatabase", 1); | |
| // Create the schema | |
| open.onupgradeneeded = function() { | |
| var db = open.result; | |
| var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
| (ns express_sample | |
| (:require [cljs.nodejs :as node])) | |
| (def express (node/require "express")) | |
| (def app (. express (createServer))) | |
| (defn -main [& args] | |
| (doto app | |
| (.use (. express (logger))) | |
| (.get "/" (fn [req res] |
| (ns todo-server.core | |
| (:require | |
| [cljs.nodejs :as nodejs] | |
| [figwheel.client :as fw])) | |
| (nodejs/enable-util-print!) | |
| (defonce express (nodejs/require "express")) | |
| (defonce serve-static (nodejs/require "serve-static")) | |
| (defonce http (nodejs/require "http")) |
| (set-env! | |
| :resource-paths #{"resources"} | |
| :dependencies '[[cljsjs/boot-cljsjs "0.5.2" :scope "test"]]) | |
| (require '[cljsjs.boot-cljsjs.packaging :refer :all]) | |
| (def +lib-version+ "0.8.1") | |
| (def +version+ (str +lib-version+ "-0")) | |
| (def +checksum+ "d88f8ee03b9188b2a942ca9d83d5188c") |