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
# Visual C++ Makefile for PDCurses - Windows console | |
# | |
# Usage: nmake -f [path/]Makefile.vc [DEBUG=Y] [DLL=Y] [WIDE=Y] [UTF8=Y] | |
# [INFOEX=N] [target] | |
# | |
# where target can be any of: | |
# [all|demos|pdcurses.lib|testcurs.exe...] | |
O = obj | |
E = .exe |
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
# Relist on traderie. You need to login via Chrome browser. Outputs next relist time in command line. | |
# | |
# Requires selenium, seleniumbase, and chromedriver | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.common.action_chains import ActionChains | |
from selenium.common.exceptions import InvalidCookieDomainException | |
from seleniumbase import SB | |
from os.path import expanduser |
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/sh | |
# This tool launches battle.net, waits for it to be ready, then launches your | |
# game via the launcher for easy steam integration. | |
# | |
# Inspired from bnetlauncher, which only works on Windows due to a dependency on WMI: | |
# https://github.com/dafzor/bnetlauncher | |
# | |
# To use, please set the variables in the "Configuration" section - mainly, you | |
# need to set LUTRIS_BNET_IDENTIFIER to the "Identifier" for the Battle.net |
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/sh | |
DEVICE="UMC1820" | |
CARD="$(aplay -l | grep "$DEVICE" | sed 's/^card \([0-9]*\).*/\1/')" | |
TERMINAL="st" | |
# find the following settings with amixer -c $CARD | |
CLOCK_SOURCE_SETTING="UMC1820 Clock Selector Clock Source" | |
CLOCK_SOURCE_VALUE="Item0: 'Coaxial In SPDIF'" # ensure this value is set for clock source | |
CLOCK_VALIDITY_SETTING="Coaxial In SPDIF Validity" |
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 evenRowHeights() { | |
// count the rows | |
// requires each column to have the same number of rows as column 1 | |
var rowCount = $('.stat-table .c1 > div').length; | |
$('.stat-table .c1 > div').height('auto'); | |
for (i=0; i<rowCount; i++) { | |
rowNum = i+1 | |
var tallest = 0; | |
$('.stat-table .r' + rowNum).each(function() { | |
if($(this).height() > tallest) { |
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
<?php | |
class IncludeRawExtension extends \Twig_Extension | |
{ | |
public function getFunctions() | |
{ | |
return [ | |
new \Twig_SimpleFunction( | |
'includeRaw', | |
[$this, 'includeRaw'], |
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 XMonad | |
import XMonad.Config.Azerty | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig | |
import Graphics.X11.ExtraTypes.XF86 | |
import XMonad.Layout.Spacing | |
import XMonad.Layout.NoBorders(smartBorders) | |
import XMonad.Layout.PerWorkspace |
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/sh | |
# | |
# description: This script runs a node.js instance for a specific user & application. | |
# The idea is to allow multiple userland node.js instances. | |
# | |
# Run with /etc/init.d/node start USERNAME [USERHOME] | |
# Above will launch the node.js instance in HOME/app/app.js | |
# | |
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
<?php | |
/** | |
* PhindItForMe - an IM, SMS, Twitter and Phone application that finds locations in Philadelphia. | |
* | |
* @copyright 2011 Mark J. Headd (http://www.voiceingov.org) | |
* @author Mark Headd | |
*/ | |
// Constants used to geocode an address. |