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 color = d3.scaleOrdinal() | |
.range(["#EDC951","#CC333F","#00A0B0"]); | |
var radarChartOptions = { | |
width: 600, | |
height: 600, | |
color: color | |
}; | |
radarChart = RadarChart() | |
d3.select('#radarChart') |
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
# © 2014 Mark Harviston <mark.harviston@gmail.com> | |
# © 2014 Arve Knudsen <arve.knudsen@gmail.com> | |
# BSD License | |
"""Implementation of the PEP 3156 Event-Loop with Qt.""" | |
__author__ = 'Mark Harviston <mark.harviston@gmail.com>, Arve Knudsen <arve.knudsen@gmail.com>' | |
__version__ = '0.6.1' | |
__url__ = 'https://github.com/harvimt/quamash' | |
__license__ = 'BSD' | |
__all__ = ['QEventLoop', 'QThreadExecutor'] |
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/bash | |
# inkscape-center <file-or-directory>... | |
# https://graphicdesign.stackexchange.com/questions/22326/how-to-fit-svg-drawings-to-their-canvas-on-the-command-line | |
_analyse() { | |
if [ -d "${1}" ] ; then | |
_centerAll "${1}" ; | |
else | |
_center "${1}" ; | |
fi |
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 > | |
# | |
# -n :: app name, obligatory | |
# -t :: create templates folder {0,1} | |
# -s :: create static folder {0,1} | |
# -m :: create media folder {0,1} | |
# -u :: create urls.py file {0,1} | |
# -i :: define project name o main folder | |
# | |
# how to run? |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
def choice_input(choices_dict, | |
type_opt_lambda=lambda x: True, | |
xprint=print): | |
commands = choices_dict | |
reverse_commands = {give_name(value): key | |
for key, value in commands.items()} | |
options = ["%s -> %s" % (key, give_name(value)) | |
for key, value in commands.items()] | |
key = "" | |
msg_type = type_opt_lambda(None) |
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
; Start a new pool named 'www'. | |
[wiki] | |
; The address on which to accept FastCGI requests. | |
; Valid syntaxes are: | |
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on | |
; a specific port; | |
; 'port' - to listen on a TCP socket to all addresses on a | |
; specific port; | |
; '/path/to/unix/socket' - to listen on a unix socket. |
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
server { | |
server_name datawork.csn.uchile.cl; | |
root /home/wikigps/web; | |
listen 80; | |
autoindex off; | |
client_max_body_size 15M; | |
client_body_buffer_size 128k; | |
index index.html index.htm index.php doku.php; | |
access_log /var/log/nginx/wiki_access.log; |
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 uuid | |
import shlex | |
import simplejson as json | |
import datetime | |
import random | |
def random_char(): | |
""" | |
Alphabetic uppercase and number 0 to 9 on a random | |
selection |
NewerOlder