This file contains hidden or 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
/*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 file contains hidden or 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
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 |
This file contains hidden or 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 $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) { |
This file contains hidden or 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 cairo | |
import rsvg | |
from ctypes import * | |
c_rsvg = CDLL('librsvg-2.so.2') | |
if len(sys.argv) < 2: |
This file contains hidden or 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
>>> 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__ |
This file contains hidden or 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
[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) |
This file contains hidden or 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
# 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: |
This file contains hidden or 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
# 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: |
This file contains hidden or 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 com.empireminecraft.AikarMobFix; | |
import java.util.logging.Logger; | |
import org.bukkit.Chunk; | |
import org.bukkit.World; | |
import org.bukkit.entity.Entity; | |
import org.bukkit.entity.Monster; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; |
This file contains hidden or 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 falafel = require('falafel'); | |
var src = require('fs').readFileSync(process.argv[2]).toString(); | |
var output = falafel(src, {comment: true}, function (node) { | |
if (node.type === 'Line') { | |
node.update('console.log("COMMENT:' + node.value + '");'); | |
} | |
}); | |
console.log(output); |