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
import Data.List | |
prefixMatch [] _ = True | |
prefixMatch _ [] = False | |
prefixMatch (needleHead : needleTail) (strHead : strTail) = | |
if needleHead == strHead then prefixMatch needleTail strTail | |
else False | |
findString needle str = |
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
// | |
// YSpline (MIT license) by yvt <[email protected]> | |
// | |
// ------------- | |
// Quaternion spline interpolation is based on http://qspline.sourceforge.net/qspline.pdf | |
// ------------- | |
// | |
#include <functional> | |
#include <valarray> |
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
# | |
# x86_64 赤黒木 (System V 呼び出し規約) | |
# (C) 2013 @YVT, all rights reserved. | |
# | |
.global _RedBlack_AllocNode | |
# .global _RedBlack_FreeNode | |
# struct TreeDescriptor { |
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 <stdio.h> | |
#define DIGIT(a) ((a)=='1'?1:0) | |
void rec(){ | |
int c = getchar(); | |
int c2 = getchar(), c3 = getchar(), c4 = getchar(); | |
if(c < 0) return; | |
rec(); | |
putchar("0123456789abcdef"[((DIGIT(c4)*2+DIGIT(c3))*2+DIGIT(c2))*2+DIGIT(c)]); | |
} | |
void main(){ |
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 python2 | |
# -*- coding: utf-8 -*- | |
import sys | |
# RSA Decipher for SECCON CTF 4(Yokohama) | |
# Author: Matsukuma Hiroki a.k.a. hhc0null <[email protected]> | |
# Usage: ./RSA_Decipher < [Crypted Text] |
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
%!TEX TS-program = xelatex | |
\documentclass[12pt]{scrartcl} | |
% The declaration of the document class: | |
% The second line here, i.e. | |
% \documentclass[12pt]{scrartcl} | |
% is a standard LaTeX document class declaration: | |
% we say what kind of document we are making in curly brackets, | |
% and specify any options in square brackets. |
NewerOlder