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/bash | |
cat test.csv | while IFS=, read IndexNum Num Name Country Age_Sex Sire DAM Weight Jockey Trainer Career Last_6 Prize imageurl; | |
do | |
echo "record[$IndexNum] = { | |
num=\"$Num\", | |
name=\"$Name\", | |
country=\"$Country\", | |
age_sex=\"$Age_Sex\", |
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
(defun google () | |
"Googles a query or region if any." | |
(interactive) | |
(browse-url | |
(concat | |
"http://www.google.com/search?ie=utf-8&oe=utf-8&q=" | |
(if mark-active | |
(buffer-substring (region-beginning) (region-end)) | |
(read-string "Query: "))))) |
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
t=$(mktemp -t preview); cat README.md | rdiscount > $t.html; cupsfilter $t.html > $t.pdf; open $t.pdf |
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
/* | |
* This Code Was Created By Jeff Molofee 2000 | |
* A HUGE Thanks To Fredric Echols For Cleaning Up | |
* And Optimizing The Base Code, Making It More Flexible! | |
* If You've Found This Code Useful, Please Let Me Know. | |
* Visit My Site At nehe.gamedev.net | |
* Conversion to Visual Studio.NET done by Grant James(ZEUS) | |
*/ | |
#include <windows.h> // Header File For Windows |
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
/* | |
* This Code Was Created By Jeff Molofee 2000 | |
* A HUGE Thanks To Fredric Echols For Cleaning Up | |
* And Optimizing The Base Code, Making It More Flexible! | |
* If You've Found This Code Useful, Please Let Me Know. | |
* Visit My Site At nehe.gamedev.net | |
*/ | |
#include <windows.h> // Header File For Windows |
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
using System; | |
using System.Collections; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.IO; | |
using System.Text; | |
using System.Timers; | |
using System.Web; | |
using System.Xml; | |
using System.Diagnostics; |
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
// enum.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <cstdio> | |
#include <cstring> | |
#include <windows.h> | |
#include <comcat.h> | |
int _tmain(int argc, _TCHAR* argv[]) |
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
public class Point { | |
public int x; | |
public int y; | |
Point rel(float angle, float length){ | |
Point a = new Point(); | |
a.x = int(x+cos(radians(angle))*length); | |
a.y = int(y-sin(radians(angle))*length); | |
return a; | |
} |
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
int radius = 140; | |
int unit = radius / 8; | |
// unused at the moment. | |
PVector[] figurePoints; | |
int stageSize = 640; |
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
Assembly | |
.GetExecutingAssembly() | |
.GetTypes() | |
.Where(t => t.IsClass && t.BaseType.Name == "MyBasetype") | |
.ToList() | |
.ForEach(c => | |
{ | |
MethodInfo m = c.GetMethod("MyMethod"); | |
if(m == null) return; | |
m.Invoke(null, null); |