A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.
This was written in 2014. It is not a good reference for Rust today, though the content is still correct.
cheats.rs looks like a good alternative.
## Install kernel modules | |
mkdir -p ~/work/share/lcd/adafruit-pitft-2.8 | |
cd ~/work/share/lcd/adafruit-pitft-2.8 | |
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb | |
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb | |
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb | |
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb | |
wget http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140724-1.deb |
Predictably Irrational: The Hidden Forces that Shape Our Decisions | |
Quiet: The power of introverts in a world that can't stop talking | |
Business Adventures | |
Zero to One | |
Beyond Budgeting | |
Winning Decisions: Getting It Right the First Time | |
Creativity Inc | |
Good to Great | |
Surviving & Thriving in a Relationship with an Entrepreneur | |
First, Break All the Rules |
# https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/software-installation | |
mkdir -p ~/work/share/adafruit-pitft-2.8 | |
cd ~/work/share/adafruit-pitft-2.8 | |
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb | |
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb | |
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb | |
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb |
A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.
This was written in 2014. It is not a good reference for Rust today, though the content is still correct.
cheats.rs looks like a good alternative.
#!/bin/bash | |
contents=`ls` | |
module_names=() | |
module_folders=() | |
npm_root=$(npm root -g) | |
do_pull=1 | |
do_npm_install=1 | |
do_npm_link=1 |
#! /usr/bin/env bash | |
# | |
# Monkey patching a function in bash. Why. | |
patch() { | |
new_guy=$(declare -f $1) | |
new_guy=${new_guy##$1*\{} | |
new_guy=${new_guy/\}/} | |
old_guy=$(declare -f $2) | |
old_guy=${old_guy/$2*{/} |
function endianness () { | |
var b = new ArrayBuffer(4); | |
var a = new Uint32Array(b); | |
var c = new Uint8Array(b); | |
a[0] = 0xdeadbeef; | |
if (c[0] == 0xef) return 'LE'; | |
if (c[0] == 0xde) return 'BE'; | |
throw new Error('unknown endianness'); | |
} |
JavaScript Code
var str = "hi";
Memory allocation:
Address | Value | Description |
---|---|---|
...... |
... |