This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Base64; | |
import com.google.gson.Gson; | |
import com.hpsaturn.robotsanta.Config; | |
import com.hpsaturn.robotsanta.models.MailGunResponse; | |
import retrofit.Callback; | |
import retrofit.RestAdapter; | |
import retrofit.converter.GsonConverter; | |
import retrofit.http.Field; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
################################################################### | |
# WPA Connect | |
# 2009-2015 Hpsaturn v1.3 | |
# [email protected] | |
# | |
# Archivos de configuracion: | |
# deben ser creados con wpa_passphrase en $CPATH previamente | |
# y deben tener de prefijo: wpa_ y sufijo .conf, por ej: | |
# wpa_casa.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
################################################################### | |
# Load hotspot | |
# 2009-2010 Hpsaturn v1.0 | |
# [email protected] | |
# | |
# REV000: Creación de funciones iniciales. Mode Ad-Hoc soportado | |
################################################################### | |
DEVICE=wlan0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <iostream> | |
#include <sys/types.h> | |
#include <ifaddrs.h> | |
#include <netinet/in.h> | |
#include <string.h> | |
#include <cstring> | |
#include <arpa/inet.h> | |
#include "../cpp/driver/everloop_image.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"syntax on | |
"colorscheme murphy | |
set nocompatible " Use Vim defaults (much better!) | |
set bs=2 " Allow backspacing over everything in insert mode | |
set autoindent " Always set auto-indenting on | |
set smartindent | |
set ruler " Add bar information | |
set backup " Keep a backup file | |
set backupdir=$HOME/vimbackups |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Pressure extends SensorBase { | |
private static final String TAG = Pressure.class.getSimpleName(); | |
private static final boolean DEBUG = Config.DEBUG; | |
private float altitude; | |
private float pressure; | |
private float temperature; | |
public Pressure(Wishbone wb) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pcm.!default | |
{ | |
type asym | |
playback.pcm { | |
type hw | |
card 0 | |
device 0 | |
} | |
capture.pcm { | |
type file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zmq | |
import time | |
import driver_pb2 as driver_proto | |
creator_ip = '127.0.0.1' # or local ip of MATRIX creator | |
creator_gpio_base_port = 20013 + 36 | |
context = zmq.Context() | |
socket = context.socket(zmq.PUSH) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
if [ -z "$NDK_ROOT" ] && [ "$#" -eq 0 ]; then | |
echo 'Either $NDK_ROOT should be set or provided as argument' | |
echo "e.g., 'export NDK_ROOT=/path/to/ndk' or" | |
echo " '${0} /path/to/ndk'" | |
exit 1 | |
else | |
NDK_ROOT="${1:-${NDK_ROOT}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
if [ -z "$NDK_ROOT" ] && [ "$#" -eq 0 ]; then | |
echo 'Either $NDK_ROOT should be set or provided as argument' | |
echo "e.g., 'export NDK_ROOT=/path/to/ndk' or" | |
echo " '${0} /path/to/ndk'" | |
exit 1 | |
else | |
NDK_ROOT="${1:-${NDK_ROOT}}" |
OlderNewer