Create new filesystem:
sudo dd if=/dev/zero of=/usb.bin bs=512 count=51200
sudo mkdosfs /usb.bin
- Add
dwc2
to/etc/modules-load.d/modules.conf
- Add
dtoverlay=dwc2
to/boot/config.txt
- reboot
Create new filesystem:
sudo dd if=/dev/zero of=/usb.bin bs=512 count=51200
sudo mkdosfs /usb.bin
dwc2
to /etc/modules-load.d/modules.conf
dtoverlay=dwc2
to /boot/config.txt
import machine | |
import network | |
import ubinascii | |
from umqtt.simple import MQTTClient | |
SSID = '' | |
PASSWORD = '' | |
BROKER = '' | |
TOPIC = '' |
(ns nested-routing.core | |
(:require [goog.events :as events] | |
[goog.history.EventType :as EventType] | |
[reagent.core :as reagent] | |
[reagent.ratom :refer-macros [reaction]] | |
[re-frame.core :refer [dispatch dispatch-sync register-handler register-sub subscribe]] | |
[secretary.core :as secretary :refer-macros [defroute]]) | |
(:import goog.History)) | |
(declare route-components |
TARGET = example | |
MCU = atmega328p | |
PROG = avrisp | |
PORT = /dev/cu.*usb* | |
BAUD = 57600 | |
F_CPU = 16000000 | |
# Sources | |
LIBS = $(shell find lib/* -type d 2> /dev/null) | |
SRC = $(wildcard src/*.c) $(foreach LIB, $(LIBS), $(wildcard $(LIB)/*.c)) |
(ns nested-routing.core | |
(:require-macros [om.core :as om] | |
[secretary.core :refer [defroute]]) | |
(:require [om.dom :as dom] | |
[om.core :as om] | |
[secretary.core :as secretary] | |
[goog.events :as events] | |
[goog.history.EventType :as EventType]) | |
(:import goog.History)) |
// node --harmony example.js | |
var go = require('./go'); | |
var even = go.channel(); | |
var odd = go.channel(); | |
go(function* () { | |
for (var i = 0; i < 10; i += 2) { | |
yield even.put(i); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.js"></script> | |
<script src="http://underscorejs.org/underscore.js"></script> | |
<script src="http://backbonejs.org/backbone.js"></script> | |
<script src="wings.js"></script> | |
<script> |
alias redis-start="launchctl start io.redis.redis-server" | |
alias redis-stop="launchctl stop io.redis.redis-server" | |
alias redis-status="launchctl list | grep io.redis.redis-server" |
// Include { env: 'development' } in your RequireJS config | |
// When building (with r.js) set the value to 'production' or just omit it entirely | |
// | |
// Assuming the following directory structure: | |
// - config/ | |
// - development.js | |
// - production.js | |
// | |
// Load the appropriate file based on the current env: | |
// |
<snippet> | |
<content><![CDATA[return ${1:callback} ${2:err} if ${2:err}?]]></content> | |
<tabTrigger>ifer</tabTrigger> | |
<scope>source.coffee</scope> | |
<description>ifer</description> | |
</snippet> |