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
# xorg.conf (X.Org X Window System server configuration file) | |
# | |
# This file was generated by dexconf, the Debian X Configuration tool, using | |
# values from the debconf database. | |
# | |
# Edit this file with caution, and see the xorg.conf manual page. | |
# (Type "man xorg.conf" at the shell prompt.) | |
# | |
# This file is automatically updated on xserver-xorg package upgrades *only* | |
# if it has not been modified since the last upgrade of the xserver-xorg |
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
func toString(v interface{}) string { | |
if reflect.TypeOf(v) == nil { | |
return "" | |
} | |
return v.(string) | |
} |
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
#!/usr/bin/env node | |
/* | |
* Given a string return a map in the form { cmd: 'args', cmd2: 'args' } | |
*/ | |
function parseCommand(s) { | |
m = {} | |
state = 0; | |
currentcmd = ''; | |
currentargs = ''; |
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
# Thanks to @danger89 and @Ilothar for updating the gist. | |
# Set the name and the supported language of the project | |
project(hello-world C CXX) | |
# Set the minimum version of cmake required to build this project | |
cmake_minimum_required(VERSION 3.10) | |
# Use the package PkgConfig to detect GTK+ headers/library files | |
find_package(PkgConfig REQUIRED) | |
pkg_check_modules(GTK REQUIRED gtkmm-3.0) |
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
.post h2.caption a { | |
font-size: 2em !important; | |
} | |
/* Smartphones (portrait and landscape) ---------- */ | |
@media only screen and (max-width : 480px) { | |
/* Hide some stuff */ | |
#leftnav { | |
display: none; |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
this.searching = true; | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
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
#!/usr/bin/env node | |
var github = require('octonode'); | |
function link_to(text, url) { | |
return '['+text+']('+url+')'; | |
} | |
var client = github.client(); | |
var repo_name = process.argv[2]; |
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
#!/usr/bin/env python | |
# Taken from: http://mybyteofcode.blogspot.it/2010/01/use-markdown-and-pygments-with-blogger.html | |
# All credits to the original author | |
# Modified to work with Marked.app | |
import sys | |
import os | |
import markdown | |
# Read the given file, convert it to html then return the html | |
def convert(file): |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme version="1.0" name="Monokai"> | |
<style name="Text" foreground="#e6e5e2" background="#272822"/> | |
<style name="Link" foreground="#66d9ef"/> | |
<style name="Selection" foreground="#e6e5e2" background="#49483e"/> | |
<style name="LineNumber" foreground="#a0a19c" background="#272822"/> | |
<style name="SearchResult" foreground="#ffffff" background="#2572b8"/> | |
<style name="SearchScope" foreground="#000000" background="#e2efff"/> | |
<style name="Parentheses" foreground="#ff0000" background="#c3e1ff"/> | |
<style name="CurrentLine" background="#3e3d32"/> |
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
irc.freenode.net -username=toethumb -autojoin=weechat,test -nicks=toethumb | |
irc.quakenet.org -nicks=ninjaduck,ninjaduck2 -autojoin=mmo-champion |