- #1: 1226 likes - ThinkUp
- #2: 868 likes - Inventor & Entrepreneur Nation (IENation.com)
- #3: 293 likes - UNICEF GIS - Youth Led Digital Mapping
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
test | |
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 the cities | |
//----------------------- | |
CREATE CONSTRAINT ON (e:CITY) ASSERT e.name IS UNIQUE; | |
//Create the companies' cities | |
USING PERIODIC COMMIT 2000 | |
LOAD CSV WITH HEADERS FROM "file:c:/Companies.csv" AS line | |
FIELDTERMINATOR ';' |
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
var jLouvain = function () { | |
//Constants | |
var __PASS_MAX = -1 | |
var __MIN = 0.0000001 | |
//Local vars | |
var original_graph_nodes; | |
var original_graph_edges; | |
var original_graph = {}; | |
var partition_init; |
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
/** | |
* A mixin which helps you to add depth to elements according to the Google Material Design spec: | |
* http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-dimensionality | |
* | |
* Please note that the values given in the specification cannot be used as is. To create the same visual experience | |
* the blur parameter has to be doubled. | |
* | |
* Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp) | |
* | |
* Example usage: |
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
ExportData <- function(data, filename) { | |
# Export data in a tabular file. | |
sink(paste(filename, '.txt', sep=""), append=FALSE, split=FALSE) | |
print(data) | |
sink() | |
} |
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
# ---------------------------------------------------------------------------- | |
# Rudolf Cardinal, March 2011 | |
# Simple extensions to ggplot2 (v0.8.7); see http://www.psychol.cam.ac.uk/statistics/R/ | |
# ---------------------------------------------------------------------------- | |
theme_L_border <- function(colour = "black", size = 1, linetype = 1) { | |
# use with e.g.: ggplot(...) + opts( panel.border=theme_L_border() ) + ... | |
structure( | |
function(x = 0, y = 0, width = 1, height = 1, ...) { | |
polylineGrob( |
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
g <- g + opts(legend.position = c(0.5,0.86), | |
legend.title = theme_blank(), | |
legend.text = theme_text(size=11), | |
legend.key.size = unit(1, "lines"), | |
legend.key = theme_blank()) |
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
options(error=utils::recover) |
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 sys | |
import math | |
myvalues = [-3, -2, -1, -1, 0, 1, 2, 3, 7] | |
def moy(l): | |
sommeval = reduce(lambda somme, val: somme+val, l, 0) | |
return (float(sommeval)/len(l)) |
OlderNewer