(with a mildly condescending tone)
You can enable fancy optimizations by creating a config.site
file. To do this, open your favorite text editor and type:
#!/bin/sh | |
# Suspend, hibernate, restart or shutdown the computer without sudo! | |
# by Chris Wong | |
# Released to the public domain. | |
NAME=$0 | |
usage() { | |
echo "Usage: $NAME suspend|hibernate|restart|shutdown" |
#!/usr/bin/env python | |
"""Epic script to rename scary uppercase extensions (like .JPG) to | |
more friendly lowercase (like .jpg). | |
How to use | |
========== | |
Recursively rename all files in the current directory:: | |
fixext |
#include <stdlib.h> | |
#include <unistd.h> | |
int main() { | |
size_t sz = sysconf(_SC_PAGESIZE); | |
for (;;) { | |
char *leak = malloc(sz); | |
leak[0] = 'a'; | |
} |
-- | | |
-- Module : Saliva.Model.OldExp | |
-- Copyright : GPLv3 | |
-- | |
-- Maintainer : chrisyco@gmail.com | |
-- Portability : portable | |
-- | |
-- The 'Exp' data type, for representing lambda expressions. | |
module Saliva.Model.OldExp |
-- | FizzBuzz: an example program, similar in purpose to the infamous | |
-- Hello World, that serves to demonstrate the features and syntax of | |
-- the language in which it is written. | |
-- | |
-- The rules of the game are as follows: | |
-- | |
-- 1. If the number is divisible by 3, return \"Fizz\"; | |
-- | |
-- 2. If the number is divisible by 5, return \"Buzz\"; | |
-- |
import Data.ByteString.Char8 ( ByteString ) | |
import qualified Data.ByteString.Char8 as B | |
import Control.Applicative ( (<$>), (<*>) ) | |
import Data.Char ( isSpace ) | |
import Data.List ( intercalate ) | |
import Data.Maybe ( catMaybes ) | |
import Data.Ratio ( (%), numerator, denominator ) | |
{- |
import Data.ByteString.Char8 ( ByteString ) | |
import qualified Data.ByteString.Char8 as B | |
import Data.Char ( isSpace ) | |
import Data.Functor ( (<$>) ) | |
import Data.List ( intercalate, unfoldr ) | |
import Data.Maybe ( fromJust ) | |
import Data.Ratio ( (%) ) | |
{- |
module BirdTree where | |
import Control.Monad.Maybe | |
import Control.Monad.State | |
import Data.ByteString.Char8 ( ByteString ) | |
import qualified Data.ByteString.Char8 as B | |
import Data.Char ( isSpace ) | |
import Data.Functor ( (<$>) ) |
// Duck.java | |
class Duck { | |
public static void quack(Integer num) { | |
System.out.println(num); | |
} | |
} | |
// Main.java | |
class Main { | |
public static void main(String[] args) { |