Skip to content

Instantly share code, notes, and snippets.

View gist:5215804
WebFusion Client Coupling Protocol 1.0
Modified from MessHall 1.1 protocol.
Part 1: Common format of the package
As described in C struct:
typedef struct __MHBinaryPackage
{
uint32_t magic; // = 0xEA5EEA5E ("Ease, ease")
View zoey.101.s01.e01.eng.srt
1
00:00:01,852 --> 00:00:04,878
* Are you ready? Ooh. *
2
00:00:05,297 --> 00:00:08,245
* I know you see me standing here. *
3
00:00:09,639 --> 00:00:12,409
@xcvista
xcvista / zoey-101-s02e01.chs.srt
Last active Dec 15, 2015
Zoey 101 S02E01 中文听译字幕。
View zoey-101-s02e01.chs.srt
1
00:00:01,213 --> 00:00:02,213
* 准备好了没? *
2
00:00:02,918 --> 00:00:08,435
* 唔,你看见我站在屋檐下, *
3
00:00:08,514 --> 00:00:12,545
View nanochess-defused.c
/**************************************************************************\
| Toledo Nanochess (c) Copyright 2009 Oscar Toledo G. All rights reserved |
| 1257 non-blank characters. Evolution from my winning IOCCC 2005 entry. |
| o Use D2D4 algebraic style for movements. biyubi@gmail.com Nov/20/2009 |
| o On promotion add a number for final piece (3=N, 4=B, 5=R, 6=Q) |
| o Press Enter alone for computer to play. |
| o Full legal chess moves. http://www.nanochess.org |
| o Remove these comments to get 1326 bytes source code (*NIX end-of-line) |
\**************************************************************************/
View deobfuscate.sh
#!/bin/bash
#
# IOCCC entry deobfuscator
# Copyright (c) 2013 Maxthon Chan <xcvista@me.com>
#
# This tool tries to deobfuscate code of C programming language using tools from
# LLVM project, namely clang and clang-format.
#
@xcvista
xcvista / toledo-deobfuscated.c
Created Sep 17, 2013
Partly deobfuscated Toledo Chess 1.
View toledo-deobfuscated.c
/**
@file toledo-deobfuscated.c
@brief Toledo Chess 1, deobfuscated
@author Original: Óscar Toledo G. <biyubi@gmail.com>
@author Deobfuscation: Maxthon T. Chan <xcvista@me.com>
This is partly deobfuscated Toledo Chess, winning entry of 18th IOCCC.
*/
#include <setjmp.h>
@xcvista
xcvista / Liv.And.Maddie.S01E12.Dump-a-Rooney.deefun.chs.srt
Last active Aug 29, 2015
Liv and Maddie S01E12 translation work
View Liv.And.Maddie.S01E12.Dump-a-Rooney.deefun.chs.srt
1
00:00:04,871 --> 00:00:06,672
准备好了没 老爸
Almost ready, dad?
2
00:00:06,674 --> 00:00:07,973
我们得赶紧开始训练了
We got to get a little practice in.
View quesgen.c
/*
* quesgen.c - Math question generator for elementary school pupils
* Copyright (c) 2014 Maxthon Chan <xcvista@me.com>
*
* Compiling this program: Use your preferred C99 compiler. clang/LLVM is
* preferred, GCC is acceptable, MSVC is not guaranteed to work.
* clang quesgen.c -std=c99 -o quesgen
* No special library other than standard C library is required.
*
* Using this program:
View This.Is.Who.I.Am.Dove.Cameron.srt
1
00:00:04,520 --> 00:00:06,980
Hi, I am Dove Cameron, and this is who I am.
2
00:00:07,400 --> 00:00:09,900
Creativity has always been a huge part of my life.
3
00:00:09,900 --> 00:00:11,980
View This.Is.Who.I.Am.Ross.Lynch.srt
1
00:00:04,820 --> 00:00:07,920
Hey guys, I'm Ross Lynch, and this is who I am.
2
00:00:10,060 --> 00:00:13,440
Anything I know today, is either from my parents, or from my sister and my brothers.
3
00:00:13,440 --> 00:00:16,920
You can’t perform that action at this time.