Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
#define A 12 | |
#define B 11 | |
#define C 10 | |
#define D 9 | |
#define PIN_CONFIG 0 | |
#define PIN_STATE 1 | |
#define LED_COUNT 12 |
ZIP,LAT,LNG | |
00601,18.180555, -66.749961 | |
00602,18.361945, -67.175597 | |
00603,18.455183, -67.119887 | |
00606,18.158345, -66.932911 | |
00610,18.295366, -67.125135 | |
00612,18.402253, -66.711397 | |
00616,18.420412, -66.671979 | |
00617,18.445147, -66.559696 |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
/* | |
* Oscilloscope | |
* Gives a visual rendering of analog pin 0 in realtime. | |
* | |
* This project is part of Accrochages | |
* See http://accrochages.drone.ws | |
* | |
* (c) 2008 Sofian Audry (info@sofianaudry.com) | |
* | |
* This program is free software: you can redistribute it and/or modify |
This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
<?php | |
function my_customize_rest_cors() { | |
remove_filter( 'rest_pre_serve_request', 'rest_send_cors_headers' ); | |
add_filter( 'rest_pre_serve_request', function( $value ) { | |
header( 'Access-Control-Allow-Origin: *' ); | |
header( 'Access-Control-Allow-Methods: GET' ); | |
header( 'Access-Control-Allow-Credentials: true' ); | |
header( 'Access-Control-Expose-Headers: Link', false ); |
// Simple. This method allows you to make a request like http://myapi.com/api/batch?request=[{"url":"/api/profile/1", "type":"GET", "request_id":"1"}, {"url":"/api/profile/2", "type":"GET", "request_id":2}] | |
$requests = \Input::get('request'); | |
$requests = json_decode($requests); | |
$output = array(); | |
foreach ($requests as $request) { | |
$url = parse_url($request->url); |
### MARKHAM'S NOTES: | |
# This Makefile includes the Arduino core sources. (Set ARDDIR here:) | |
ARDDIR = /d/arduino | |
# You should build a tiny Makefile for each of your projects and just declare a few | |
# things in it, then include this Makefile in it. Your Makefile should be in the same | |
# directory as your TARGET file (see below). | |
# | |
# Exemplia gratia: |