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/local/bin/perl | |
# AUTHORS: Dave Wilkinson and Bradley D. Kuhlman | |
# PURPOSE: Will rename media files consisting of episodes of a | |
# television series by using the epguides.com website from | |
# some cryptic, yet commonly found when downloaded on the | |
# internet, format to be `## - Title` where ## is the episode | |
# number. |
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/local/bin/perl | |
# AUTHORS: Dave Wilkinson and Bradley D. Kuhlman | |
# PURPOSE: Will rename media files consisting of episodes of a | |
# television series by using the epguides.com website from | |
# some cryptic, yet commonly found when downloaded on the | |
# internet, format to be `## - Title` where ## is the episode | |
# number. |
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
class A { | |
int bar; | |
} | |
class B : A { | |
int foo; | |
} | |
class C : 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
#!/usr/bin/perl | |
use strict; | |
use LWP::Simple; | |
use LWP::UserAgent; | |
use HTTP::Request; | |
use HTTP::Response; | |
use HTML::LinkExtor; | |
use HTML::Entities; |
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<stdlib.h> | |
#include<stdio.h> | |
#include<string.h> | |
char* toBase26(int num) { | |
char* str; | |
int length = 1; | |
int tmp = num; |
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 <stdlib.h> | |
#include <stdio.h> | |
#define new(TYPE, ARGS...) ({\ | |
TYPE *item = ( TYPE *)malloc(sizeof( TYPE )); \ | |
item->init = &TYPE##Init; \ | |
item->init(item, ARGS); \ | |
item; \ | |
}) |
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 <stdio.h> | |
// This is the implementation of the class | |
// The functions go in order a(), b(), then c() | |
// The constructor or compiler will build a vtable as [&a, &b, &c] | |
class A { | |
public: | |
A(); | |
virtual void 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
module Whitespace | |
def self.trollify path, code | |
code.chomp!.gsub!(/([ \t]+)$/) do |match| | |
"; Whitespace::annoy(#{match.length})" | |
end | |
code.gsub!(/\brequire_relative\s*\(?\s*(.+?)\s*\)?;?$/) do |match| | |
"Whitespace::require_relative #{$1}, binding(), '#{path}'" | |
end | |
code |
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
import java.util.Scanner; | |
import java.util.Random; | |
class Piratey { | |
public static void main(String args[]) { | |
String name; | |
Scanner input = new Scanner(System.in); | |
System.out.print("Enter in your first name: "); |
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
IO | |
- buffer | |
- stream | |
- file | |
- directory | |
- wavelet | |
- image | |
- audio | |
- socket |
OlderNewer