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
DROP TABLE `myTable`; | |
CREATE TABLE `myTable` ( | |
`id` mediumint(8) unsigned NOT NULL auto_increment, | |
`name` varchar(255) default NULL, | |
`password` varchar(255), | |
`permission` mediumint default NULL, | |
`score` varchar(100) default NULL, | |
PRIMARY KEY (`id`) | |
) AUTO_INCREMENT=1; |
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
Well, this is a straightforward one; a classic case of a many time pad. The 12th message contains the flag. | |
Code: | |
import os | |
key = os.urandom(1024) | |
messages = [message.rstrip('\n') for message in open("messages")] | |
def xor_string(x, y): |
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
an interesting play .. | |
Sam says "I love you, no really." | |
Mike says "Hot steamy grits!" | |
Mike says "Hot steamy grits!" | |
Mike says "No." | |
Sam says "Get off my colon" | |
Harold says "Who said OJ?" | |
Sam says "Who said OJ?" |
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/env python | |
s = 0 | |
count = 0 | |
step = [(0, -0.8), (0, -0.8), (0, 0.8), (0, 0.8), (-0.8, 0), (0.8, 0), (-0.8, 0), (0.8, 0)] | |
def accelX(): | |
return step[count % 8][0] | |
def accelY(): |
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/env python | |
# | |
# Patchwork command line client | |
# Copyright (C) 2008 Nate Case <ncase@xes-inc.com> | |
# | |
# This file is part of the Patchwork package. | |
# | |
# Patchwork is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
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
function getAOJData(userid) { | |
var response = UrlFetchApp.fetch("http://judge.u-aizu.ac.jp/onlinejudge/webservice/user?id=" + userid); | |
if(response.getResponseCode() != 200) | |
return false; | |
var xml = response.getContentText(); | |
var doc = Xml.parse(xml); | |
var data = doc.getElement(); | |
var res = {}; | |
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
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.println(analogRead(0)); | |
} |
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 <iostream> | |
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <limits.h> | |
#include <float.h> | |
#define eps 1e-10 | |
#define M INT_MAX | |
using namespace std; |
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/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import tweepy | |
import json | |
import pymongo | |
db_host = 'localhost' | |
db_port = 27017 |
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 <vector> | |
#include <iostream> | |
using namespace std; | |
int ans[] = {100, 10, 100, 10, 100, 10, 100, 10}; | |
void debug(vector<int> v) | |
{ | |
int i; |