v1 Online Demo: https://codesandbox.io/s/v1-angular-numeric-ljwlb
v2 Online Demo: https://codesandbox.io/s/v2-angular-numeric-3w2wr
// Prints CRC32C hashes in the same format as Google Cloud Storage | |
// | |
// Usage: crc32c (paths to hash) | |
// See also: gsutil hash | |
package main | |
import ( | |
"encoding/base64" | |
"encoding/hex" | |
"fmt" |
v1 Online Demo: https://codesandbox.io/s/v1-angular-numeric-ljwlb
v2 Online Demo: https://codesandbox.io/s/v2-angular-numeric-3w2wr
The specificity of my setup, is that the Raspberry won’t be a router but a bridge. DHCP is thus delegated to the main ADSL router and all devices connected to the AP will appear on the same network than other devices. The instructions below are based on a fresh Raspbian lite install so that it can be reproduced easily.
$ sudo apt-get install -y bridge-utils hostapd
To create a bridge, we need to enable ip_forward in the kernel, for that, edit /etc/sysctl.conf
and remove comment (#
) from the following line :
Copyright 2015 Matthew Brush | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
package main | |
// http://play.golang.org/p/jZ5pa944O1 <- will not display the colors | |
import "fmt" | |
const ( | |
InfoColor = "\033[1;34m%s\033[0m" | |
NoticeColor = "\033[1;36m%s\033[0m" | |
WarningColor = "\033[1;33m%s\033[0m" | |
ErrorColor = "\033[1;31m%s\033[0m" | |
DebugColor = "\033[0;36m%s\033[0m" |
/* | |
Basic MQTT example with Authentication | |
How to send MQTT data to IBM Bluemix from Intel Edison via Arduino. | |
by Rex St. John | |
*/ | |
#include <SPI.h> | |
#include <WiFi.h> |
/* | |
* WebServer.c | |
* | |
* Created on: Nov 3, 2012 | |
* Author: pavithra | |
* | |
* A web server in C language using only the standard libraries. | |
* The port number is passed as an argument. | |
* | |
* http://css.dzone.com/articles/web-server-c |