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
#!/bin/bash | |
# /etc/init.d/xvfb_daemon | |
# Xvfb startup script. | |
# Tom Meier <[email protected]> | |
# | |
### BEGIN INIT INFO | |
# Provides: xvfb | |
# Short-Description: Start/stop/restart daemon | |
# Description: Controls the Xvfb daemon which starts/stops the X Virtual Framebuffer server | |
### END INIT INFO |
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
(function (App) { | |
App.Pages.StorePage = Backbone.View.extend({ | |
name: 'store', | |
container: '#page_container', | |
template: '#market_page_template', | |
initialize: function () { | |
}, |
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
$(function (App) { | |
App.Views.CategoryListView = Backbone.View.extend({ | |
tagName: 'ul', | |
collection: new App.Collections.CategoryCollection(), | |
events: { | |
'click .staff_pick': "showStaffPick" | |
}, |
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 re | |
import sys | |
line1, line2 = open(sys.argv[1]).read().split(';') | |
def int2bin(n, count=24): | |
"""returns the binary of integer n, using count number of digits""" | |
return "".join([str((n >> y) & 1) for y in range(count-1, -1, -1)]) |
NewerOlder