Skip to content

Instantly share code, notes, and snippets.

# hideFoodBar - sets whether to hide the hunger value from the player, number is the amount of drumsticks to show them, 0-20 to show the 10 bars
# cancelRegen - whether to cancel the automatic regen from a full hunger bar
# deathMessage - whether to show the custom death message saying how long on the server
# playerListHealth - whether to show the health in the player list menu
# transmitDamage - whether to show the damage taken in the chat
# forceHardMode - whether to force difficulty 3 in the worlds specified, comma seperated list of worlds
# removeRecipies - whether to remove the golden apple and glistering melon recipies
# addRecipies - whether to add the new golden apple and glistering melon recipies
# kickBan - whether to kick and ban a player on death, message is the message shown on kick
# randomFirstSpawn:
[11:05:39] java.lang.NullPointerException
[11:05:39] at net.minecraft.src.ChatClickData.func_50090_c(ChatClickData.java:63)
[11:05:39] at net.minecraft.src.ChatClickData.<init>(ChatClickData.java:18)
[11:05:39] at net.minecraft.src.GuiIngame.func_50012_a(GuiIngame.java:852)
[11:05:39] at net.minecraft.src.GuiChat.mouseClicked(GuiChat.java:169)
[11:05:39] at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:175)
[11:05:39] at net.minecraft.src.GuiChat.handleMouseInput(GuiChat.java:138)
[11:05:39] at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:161)
[11:05:39] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1638)
[11:05:39] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:890)
>>> mapper.connect('test', '/{action}/{id}')
>>> h.url_for('test')
'/'
>>> mapper.connect('test2', '/{action}/{id}', _static=True)
>>> h.url_for('test2')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/fddev/projects/fatdrop/branches/smartphonedev/fatdrop/fatdrop/lib/helpers.py", line 67, in url_for
ret = pylons.url(*args, **kwargs)
File "/home/fddev/projects/fatdrop/branches/smartphonedev/fatdrop/devenv0/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/registry.py", line 155, in __call__
@dunkfordyce
dunkfordyce / gist:1388722
Created November 23, 2011 13:58
render svg to seperate files
import sys
import cairo
import rsvg
from ctypes import *
c_rsvg = CDLL('librsvg-2.so.2')
if len(sys.argv) < 2:
var $jplayer = $("#jquery_jplayer_1").jPlayer({
ready: function () {
//$(this).jPlayer("setMedia", {
// m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a",
// oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg"
//});
},
swfPath: '${h.url_for("flash", url="Jplayer.swf")}',
solution: 'flash, html',
progress: function(e) {
fddev@fatdropdev:~/projects/fd.stylus$ cat main.styl
div
color: red
fddev@fatdropdev:~/projects/fd.stylus$ ./node_modules/.bin/stylus < main.styl > out.css
/home/fddev/projects/fd.stylus/node_modules/stylus/bin/stylus:477
if (err) throw err;
^
Error: stdin:3
1| div
/*commonjs*/
var Backbone = require('mobile/backbone_base'),
Deferred = require('mobile/deferred').Deferred,
Campaigns = require('mobile/model/campaigns').Campaigns,
url_for = require('mobile/url_for').url_for;
exports.Account = Backbone.Model.extend({
campaigns: function() {
if( !this._campaigns ) {
// this works
Router = new Backbone.Router({
routes: {
'': 'accounts',
'accounts/:account_id': 'accounts',
'accounts/:account_id/campaigns': 'accounts',
'accounts/:account_id/campaigns/:campaign_id': 'accounts'
},
accounts: function() {
console.log('accounts', arguments);
{
"name":"kuya-player",
"developer": {
"name":"kuya",
"url":"http://kuya.com"
},
"description":"music player",
"icons":{
"128":"/icon.png"
},

glossary

some things that need explaining first

uri:            default scheme is file://
pin:            pipe in
pout:           pipe out
json selector:  from here http://jsonselect.org