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
phpSettings.date.timezone = "America/Los_Angeles" |
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
def autop(px, br = true) | |
pre_tags = [] | |
return '' if px.strip == "" | |
px = px + "\n" | |
if px =~ /<pre/ | |
px_parts = px.split "</pre>" | |
last_px = px_parts.pop | |
px = "" | |
i = 0 | |
px_parts.each do |px_part| |
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
#!/usr/bin/env ruby | |
t=$*[0] | |
e='#'*79 | |
r='#'+' '*77+'#' | |
puts [e,r,t.scan(/.{1,40}/).map{|a|m=r.clone;l=(79-a.size)/2;m[l..(l+a.size-1)]=a;m},r,e].join "\n" |
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
#include <avr/pgmspace.h> | |
#define DATA_1 (PORTC |= 0X01) | |
#define DATA_0 (PORTC &= 0XFE) | |
#define STRIP_PINOUT (DDRC=0xFF) | |
#define NOP __asm__("nop\n\t"); | |
#define NOP28 NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP | |
#define NOP9 NOP NOP NOP NOP NOP NOP NOP NOP NOP | |
#define NOP3 NOP NOP NOP |
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
login or create an account. | |
recent changes, games uploaded so far Macintosh Garden | |
GAMES A - Z APPS | |
SEARCH... | |
GUIDES FORUM IRC ABOUT | |
This page is a wiki. Please login or create an account to begin editing.Home › General discussion | |
11 posts / 0 new Login or register to post comments | |
Last post |
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 | |
rm -f tempfifo1 | |
rm -f a.out | |
mkfifo tempfifo1 2>/dev/null | |
cat << EOF > tempfifo1 & | |
#include <stdio.h> | |
int main(int argc, char ** argv) { | |
printf("Hello, world!\n"); | |
return 0; |
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
~ »wc -l test.txt | |
23759 test.txt | |
~ »function truncate() { echo "`tail -n100 $1`" > $1; }; truncate test.txt | |
~ »wc -l test.txt | |
100 test.txt | |
~ » |
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 killify() { | |
if [ $# -ne 0 ]; then | |
kill -9 `ps auxww | grep "$@" | grep -v grep | tr -s ' ' | cut -d' ' -f 2` | |
fi | |
} |
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
#include <avr/pgmspace.h> | |
#include <IRremote.h> | |
#include <IRremoteInt.h> | |
#define DATA_1 (PORTC |= 0X01) | |
#define DATA_0 (PORTC &= 0XFE) | |
#define STRIP_PINOUT (DDRC=0xFF) | |
#define NOP __asm__("nop\n\t"); | |
#define NOP28 NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP | |
#define NOP9 NOP NOP NOP NOP NOP NOP NOP NOP NOP |
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
#include "stdafx.h" | |
#include <windows.h> | |
#include <GL/gl.h> | |
#include <GL/glu.h> | |
#define MAX_LOADSTRING 100 | |
HINSTANCE hInstance; | |
HWND hWnd, hWnd2; | |
struct WindowData { | |
HWND window; |