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
http://github.com/undefined |
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
# This gist is a small example of how to use gephi from Jython | |
# IT IS INCOMPLETE - see below | |
# | |
# this is a small include offering only a minimal subset of shortcuts | |
# for a couple of Gephi Toolkit controllers. use it at your own risks. | |
# | |
# usage: | |
# | |
# 1. save this file to gephi.py | |
# 2. download the gephi toolkit and put it in your java classpath |
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
REPLACE | |
label="(.*)"> | |
<attvalues> | |
<attvalue for="classification" value="(.*)"></attvalue> | |
<attvalue for="embassy" value="(.*)"></attvalue> | |
<attvalue for="start" value="(.*)"></attvalue> | |
BY |
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
jbilcke@compactminer:~/Checkouts/git/daizoru/test$ git push heroku master | |
Counting objects: 10, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (7/7), done. | |
Writing objects: 100% (10/10), 984 bytes, done. | |
Total 10 (delta 0), reused 0 (delta 0) | |
-----> Heroku receiving push | |
-----> Node.js app detected | |
-----> Vendoring node 0.4.7 |
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
package main.scala | |
import javax.servlet.http.{HttpServlet,HttpServletRequest,HttpServletResponse} | |
import org.eclipse.jetty.server.Server | |
import java.io.PrintWriter | |
import java.net.URLEncoder | |
class MongoServlet extends HttpServlet { | |
import com.mongodb.casbah.Imports._ | |
val conn = MongoConnection("mongo.example.dotcloud.com",5907) |
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 -*- | |
""" | |
codegen | |
~~~~~~~ | |
Extension to ast that allow ast -> python code generation. | |
:copyright: Copyright 2008 by Armin Ronacher. | |
:license: BSD. | |
""" |
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
// Use this function like the standard THREE.ImageUtils.loadTexture | |
THREE.ImageUtils.loadTextureWithYQL = function ( path, mapping, callback ) { | |
var image = new Image(), texture = new THREE.Texture( image, mapping ); | |
var me = this; | |
image.onload = function () { }; | |
image.crossOrigin = ''; | |
image.src = path; | |
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
void main(void) { | |
vec2 pos = mod(gl_FragCoord.xy, vec2(50.0)) - vec2(25.0); | |
gl_FragColor = mix(vec4(.90, .90, .90, 1.0), vec4(.20, .20, .40, 1.0), smoothstep(380.25, 420.25, dot(pos, pos))); | |
} |
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
<<<<<<< HEAD | |
<<<<<<< HEAD | |
>>>>>>> 75e9c553ff4894231f0b5df4b25b489e43556583 | |
======= | |
>>>>>>> 75e9c553ff4894231f0b5df4b25b489e43556583 | |
======= | |
>>>>>>> 75e9c553ff4894231f0b5df4b25b489e43556583 |
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
#/***************************************************************************** | |
# * * | |
# * PushScript * | |
# * Copyright (C) 2008-2010 Jonathan Klein * | |
# * * | |
# * This program is free software; you can redistribute it and/or modify * | |
# * it under the terms of the GNU General Public License as published by * | |
# * the Free Software Foundation; either version 2 of the License, or * | |
# * (at your option) any later version. * | |
# * * |
OlderNewer