Skip to content

Instantly share code, notes, and snippets.

View schappim's full-sized avatar
🎯
Focusing

Marcus Schappi schappim

🎯
Focusing
View GitHub Profile
#!/usr/bin/env ruby
require 'rubygems'
require 'w1temp'
require 'artoo'
require 'httparty'
sensor = Temperature.new
host = `ifconfig | grep -i Bcast`.split(' ')[5].split(':').last
#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
set :bind, '10.0.1.24'
set :port, 80
get '/' do
'hello world'
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
sudo nano /boot/cmdline.txt
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
macpro:microview-learning-kit admin$ jekyll build
Configuration file: /Users/admin/Desktop/microview-learning-kit/_config.yml
Source: /Users/admin/Desktop/microview-learning-kit
Destination: /Users/admin/Desktop/microview-learning-kit/_site
Generating...
done.
macpro:microview-learning-kit admin$ git add .
macpro:microview-learning-kit admin$ git commit -m "including static hype"
[master e041c33] including static hype
Committer: Marcus Schappi <admin@macpro.local>
#include <MicroView.h>
#include <SPI.h>
const unsigned char logo [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
@schappim
schappim / html
Created September 20, 2014 06:18
<!DOCTYPE html>
<html>
<head>
<!-- EXTERNAL LIBS-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://www.google.com/jsapi"></script>
<!-- EXAMPLE SCRIPT -->
<script>
<!DOCTYPE html>
<html>
<head>
<!-- EXTERNAL LIBS-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://www.google.com/jsapi"></script>
<!-- EXAMPLE SCRIPT -->
<script>