<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
#!/usr/bin/python | |
#-*- coding:utf8 -*- | |
#======================================================= | |
# Connecting to AVR NET-IO with python | |
# with a graphical user interface | |
#======================================================= | |
# Funktionen: |
function Promise() { | |
var callbacks = [], | |
promise = { | |
resolve: resolve, | |
reject: reject, | |
then: then, | |
safe: { | |
then: function safeThen(resolve, reject) { | |
promise.then(resolve, reject); | |
} |
#!/bin/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
/* | |
A (very) WIP collection of optimized/recommended jQuery plugin patterns | |
from @addyosmani, @cowboy, @ajpiano and others. | |
Disclaimer: | |
----------------------- | |
Whilst the end-goal of this gist is to provide a list of recommended patterns, this | |
is still very much a work-in-progress. I am not advocating the use of anything here | |
until we've had sufficient time to tweak and weed out what the most useful patterns |
#!/bin/bash | |
# /etc/init.d/minecraft | |
# version 0.3.4 2011-06-12 (YYYY-MM-DD) | |
### BEGIN INIT INFO | |
# Provides: minecraft | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network |
<?php | |
// quick and dirty argument parsing | |
foreach ($argv as $arg) { | |
if ($arg == '-f') { | |
define('FOLLOW', true); | |
} | |
if ($arg == '-h') { | |
define('HISTOGRAM', true); | |
} |
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"userid": "mohit", "password":"password"}' http://mmedwebdemo.ddns.comp.nus.edu.sg:8080/comp.nuhs.jaxb/api/usr/login |
// This is my attempt at a Jquery UI Widget boilerplate which expands upon the others I have | |
// seen. Of particular interest to me is establishing best practices for instance, widget and | |
// global; variables, arrays, object, functions.... | |
(function($, undefined){ | |
// locals - accessible by all instances but not accessible outside this closure |
/* Parsing simple USART commands | |
* ----------------------------- | |
* For more information see | |
* http://www.adnbr.co.uk/articles/parsing-simple-usart-commands | |
* | |
* 996 bytes - ATmega168 - 16MHz | |
*/ | |
#define F_CPU 16000000UL | |
#define BAUD 19200 |