The only cross-platform browser that fits in a Gist!
One line install. Works on Linux, MacOSX and Windows.
$> npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
public class WeatherDataParser { | |
/** | |
* Given a string of the form returned by the api call: | |
* http://api.openweathermap.org/data/2.5/forecast/daily?q=94043&mode=json&units=metric&cnt=7 | |
* retrieve the maximum temperature for the day indicated by dayIndex |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Socket.io demo</title> | |
</head> | |
<body> | |
<script src="http://localhost:3000/socket.io/socket.io.js"></script> | |
<script> | |
var sock = io.connect('http://localhost:3000'); |
<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-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
from django.shortcuts import render | |
from django.contrib.formtools.wizard.views import SessionWizardView | |
from django.forms.formsets import formset_factory | |
from .forms import FormStep1, FormStep2, FormStep3, FormStep4, FormStep5, FormStep6, DetalleHotel, DetalleCustom | |
from .models import Registration | |
from apps.activities.models import EventActivity | |
FORMS = [ | |
("step1", FormStep1), |
var SerialPort = require('serialport').SerialPort; | |
var split = require('split2'), | |
through = require('through2'), | |
request = require('request'), | |
JSONStream = require('JSONStream'); | |
var SERVER_URL = 'http://localhost:3000'; | |
var DEVICE_FILE = '/dev/ttyACM0'; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script> | |
<style> | |
#canvas { | |
width: 500px; | |
height: 500px; |
from libqtile.config import Key, Screen, Group | |
from libqtile.command import lazy | |
from libqtile import layout, bar, widget, hook | |
import subprocess | |
import re | |
mod = "mod4" | |
keys = [ | |
# Switch between windows in current stack pane |
{ | |
"presets": ["es2015-node"] | |
} |
module.exports = function (grunt) { | |
grunt.initConfig({ | |
watch: { | |
liverload: { | |
files: [ | |
'app/index.html' | |
], | |
options: { | |
livereload: true | |
} |