Skip to content
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Close infowindow programatically | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
View unbind-scope-event.htm
<!doctype html>
<html ng-app="Demo">
<head>
<meta charset="utf-8" />
<title>
Unbinding Scope.$on() Event Handlers In AngularJS
</title>
<link rel="stylesheet" type="text/css" href="./demo.css"></link>
View show-express-routes-gulp-task.js
var app = require('../server/app.js').create()
var gulp = require('gulp');
var task = require('./index');
/*
Output all the routes that the app supports
*/
gulp.task('routes', function() {
View nested-fields-for-radios.patch
diff --git index.html index.html
index a65e625..30503cf 100644
--- index.html
+++ index.html
@@ -64,10 +64,20 @@
"field_options": {
"options": [{
"label": "Yes",
- "checked": false
+ "checked": false,
View net_led.erl
-module(net_led).
-export([start_light/0, switch/2, light/1, decouple/1]).
decouple(Light_Node) ->
{light, Light_Node} ! decouple,
io:format("Switch is decoupled~n", []).
switch(Light_Node, Action) ->
{light, Light_Node} ! {switch, self(), Action},
View Gemfile
@next_upgrade ||= false
source 'https://rubygems.org'
if @next_upgrade
gem 'rails', '5.0.0.beta3'
gem 'rails-controller-testing' # https://github.com/rails/rails-controller-testing
else
gem 'rails', '~> 4.2.5.1'
end
View speedtest-ifttt.sh
#!/usr/bin/env bash
###########################################################################
# Originally written by: Henrik Bengtsson, 2014
# https://github.com/HenrikBengtsson/speedtest-cli-extras
# Modified to use IFTTT by: Alasdair Allan, 2015
# License: GPL (>= 2.1) [http://www.gnu.org/licenses/gpl.html]
###########################################################################
# Character for separating values
# (commas are not safe, because some servers return speeds with commas)
View gist:01b437c601a2bf52b7f0
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
View neo4j-contact networks
:neo4j-version: 2.2
:author: Marcello Dalponte
:twitter: @m_dalp
## Contact networks
A contact network is one of the typologies of dynamic networks described in the famous paper of Holme and Saramäki[1].
A dynamic network is a mathematical representation of the evolution of the relationships between entities through graphs.
It's interesting to catch this dynamicity because describes the transitivity of the order of the interactions: if A meets B and after B meets C then A can transmit something to C but not the opposite; this is useful to study the spreading of informations or infections.
An interesting project that aims to collect this kind of data is Sociopatterns[2], where Cattuto and others developed a framework to collect contacts data from RFID sensors [3].
Something went wrong with that request. Please try again.