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> | |
#include <stdlib.h> | |
#define FALSE 0 | |
#define TRUE 1 | |
int main (int argc, char* argv[]) | |
{ | |
int i, p, k, count, n; | |
char flag[1000000]; | |
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
require 'test/unit' | |
require 'mocha/setup' | |
require 'rexml/document' | |
class CustomerStats | |
def initialize | |
@customers = [] | |
end |
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> | |
#include <string.h> | |
#define TRUE 1 | |
#define FALSE 0 | |
#define XOR_CHANGE(a,b) { \ | |
if(a != b) { \ | |
a ^= b; \ | |
b ^= 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
#define GLOBAL_VALIABLE_DEFINE | |
#include "global.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
#include <stdio.h> | |
#include <stdlib.h> | |
#define STRINGS_SIZE 32 | |
#define DATA_SIZE 10000000 | |
#define SWAP(a,b) {int temp; temp = a; a = b; b = temp;} | |
void quick_sort(int *, int); | |
void quick_sort_sub(int *, int, int); |
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
require 'open-uri' | |
def to_date(date) | |
if date.to_s.length < 2 | |
"0" + date.to_s | |
else | |
date.to_s | |
end | |
end |
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 org.eclipse.swt.widgets.Display; | |
import org.eclipse.swt.widgets.Shell; | |
public class HelloWorldSWT { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
// TODO 自動生成されたメソッド・スタブ |
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 | |
1.step(ARGV[0].to_i, 1) do |i| | |
puts rand(ARGV[1].to_i) | |
end |
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> | |
#define DATA_SIZE 100000 | |
#define STRINGS_SIZE 32 | |
#define SWAP(a, b) { \ | |
int tmp; \ | |
tmp = a; \ | |
a = b; \ | |
b = tmp; \ | |
} |
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
require 'oauth2' | |
client_id = 'CLIENT_ID' | |
client_secret = 'CLIENT_SECRET' | |
oauth = OAuth2::Client.new(client_id, | |
client_secret, | |
{ | |
site: 'https://api.github.com', | |
authorize_url: 'https://github.com/login/oauth/authorize', |
OlderNewer