- #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
ExportPlot <- function(gplot, filename, width=2, height=1.5) { | |
# Export plot in PDF and EPS. | |
# Notice that A4: width=11.69, height=8.27 | |
ggsave(paste(filename, '.pdf', sep=""), gplot, width = width, height = height) | |
postscript(file = paste(filename, '.eps', sep=""), width = width, height = height) | |
print(gplot) | |
dev.off() | |
png(file = paste(filename, '_.png', sep=""), width = width * 100, height = height * 100) | |
print(gplot) | |
dev.off() |
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
/** | |
* Linkurious 2012, all rights reserved. | |
* Sébastien Heymann <seb@linkurio.us>, | |
* Romain Yon <romain@linkurio.us> | |
* | |
* Please use http://jsbeautifier.org/ and indent with 2 spaces. | |
* | |
* Lib docs: | |
* http://twitter.github.com/bootstrap/ | |
* http://docs.jquery.com/ |
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
#!/bin/sh | |
# ------------------------------------------------------------------------------ | |
# SOME INFOS : fairly standard (debian) init script. | |
# Note that node doesn't create a PID file (hence --make-pidfile) | |
# has to be run in the background (hence --background) | |
# and NOT as root (hence --chuid) | |
# | |
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
# INSTALL/REMOVE http://www.debian-administration.org/articles/28 |
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
#!/usr/bin/env groovy | |
import org.gephi.data.attributes.api.AttributeController | |
import org.gephi.graph.api.GraphController | |
import org.gephi.io.importer.api.EdgeDefault | |
import org.gephi.io.importer.api.ImportController | |
import org.gephi.io.processor.plugin.DefaultProcessor | |
import org.gephi.project.api.ProjectController | |
import org.gephi.statistics.plugin.Degree | |
import org.openide.util.Lookup |
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
sigi = sigma.instances[1]; | |
var prefix = /.{7}/; | |
sigi.iterNodes(function (node) { | |
node.label = node.attr.kind + ": " + node.attr.name.replace(prefix, ''); | |
}); | |
WebFontConfig = { | |
google: { families: [ 'Lato::latin' ] } |
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
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python | |
""" | |
========================================== | |
Internal Link Detection on Bipartite Graph | |
========================================== | |
# Copyright (C) 2012 by | |
# Sébastien Heymann <sebastien.heymann@lip6.fr> | |
# All rights reserved. | |
# BSD license. |
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)) |
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
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()) |
NewerOlder