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/ruby | |
# Fake aptitude or apt-get cli so that: | |
# aptitude install rhythmbox-applet | |
# Gets translated to: | |
# yaourt -S rhythmbox-applet | |
ARGV[0] = case ARGV[0] | |
when 'update': '-Sy' | |
when 'install', 'reinstall': '-S' | |
when 'search': '-Ss' |
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
#include "SkCanvas.h" | |
#include "SkGraphics.h" | |
#include "SkImageEncoder.h" | |
#include "SkString.h" | |
#include "SkTemplates.h" | |
int main (int argc, char * const argv[]) { | |
// | |
SkAutoGraphics ag; |
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
# Services to use: | |
# Choices: security updates (from security.debian.org), volatile updates (from volatile.debian.org) | |
apt-setup-udeb apt-setup/services-select multiselect | |
# Non-existing physical volume | |
partman-auto-lvm partman-auto-lvm/no_such_pv error | |
# Check the integrity of another CD-ROM? | |
d-i cdrom-checker/nextcd boolean false | |
# Install GRUB? | |
grub-installer grub-installer/grub_not_mature_on_this_platform boolean false |
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
#include <iostream> | |
#include <iomanip> | |
// | |
// Utilities | |
// | |
// RETURNS() is used to avoid writing boilerplate "->decltype(x) { return x; }" phrases. | |
// | |
// USAGE: auto function(<arguments>) RETURNS(<some-expression>); | |
// |
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 ruby | |
FORBIDDEN = [ | |
/\bdebugger\b/, | |
/\bfuck\b/, | |
/\bshit\b/, | |
/\bbitch\b/, | |
/\bwtf\b/, | |
/\bconsole\.debug\b/, | |
/\bLorem\.ipsum\.dolor\.sit\.amet\b/, |
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
<style> | |
.icon { | |
background: #33CC00; | |
background-image:url(http://www.cyberdesignz.com/blog/wp-content/uploads/2009/12/CSS.png); | |
background-repeat:no-repeat; | |
background-position:center; | |
background-size:100%; | |
width: 128px; | |
height: 128px; | |
border-radius: 19px; |
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
// Attempt at making a Boost grammar that successfully parses Jason Shankel's predicate logic language | |
// #define BOOST_SPIRIT_DEBUG | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/variant/recursive_variant.hpp> | |
#include <boost/fusion/include/adapt_struct.hpp> | |
#include <boost/spirit/include/phoenix.hpp> | |
#include <boost/optional.hpp> | |
// start with the AST |
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
#include <boost/any.hpp> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/fusion/include/std_pair.hpp> | |
#include <vector> | |
#include <map> | |
#include <iostream> | |
namespace json { |
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
// | |
// CalculatorBrain.h | |
// Calculator | |
// | |
// Created by Peter Polash on 7/2/12. | |
// Copyright (c) 2012 Share. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
OlderNewer