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
diff -uNr /home/jahiy/Documents/echofon_for_twitter-2.5.2-fx/echofon_for_twitter-2.5.2-fx/components/nsEchofon.js /home/jahiy/Documents/echofon_for_twitter-2.5.2-fx/[email protected]/components/nsEchofon.js | |
--- /home/jahiy/Documents/echofon_for_twitter-2.5.2-fx/echofon_for_twitter-2.5.2-fx/components/nsEchofon.js 2012-09-19 06:55:02.000000000 +0800 | |
+++ /home/jahiy/Documents/echofon_for_twitter-2.5.2-fx/[email protected]/components/nsEchofon.js 2013-01-27 16:56:49.000000000 +0800 | |
@@ -25,7 +25,7 @@ | |
Components.utils.import("resource://echofon/TwitterClient.jsm"); | |
Components.utils.import("resource://echofon/EchofonHttpRequest.jsm"); | |
Components.utils.import("resource://echofon/Timeline.jsm"); | |
- Components.utils.import("resource://echofon/EchofonGA.jsm"); | |
+ //Components.utils.import("resource://echofon/EchofonGA.jsm"); | |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
* Usage: ./cup your_cup_size your_underbust_size | |
* | |
* for example: | |
* ./cup B 75 |
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 <ctype.h> | |
#include <errno.h> | |
#include <float.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* * * * * * * * * * * * * * * * * * * * * | |
* |
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> | |
#include <string.h> | |
int is_valid_ipv4(const char *str) { | |
int tmp = 0, dot = 0, digit = 0, i = 0; | |
size_t len = strlen(str) + 1; | |
while (i < len) { | |
//printf("%s, %d\n", str, tmp); | |
if (*str < 48 || *str > 57) { | |
if (*str == '.' || *str == '\0') { |
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
+ | |
# | |
### | |
##### | |
###### | |
; #####; | |
+##.##### | |
+########## | |
#############; | |
###############+ |
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 python | |
# -*- coding: utf-8 -*- | |
import html.parser | |
class ContentParser(html.parser.HTMLParser): | |
def __init__(self, begin_tag, stop_tag): | |
html.parser.HTMLParser.__init__(self) | |
tag_temple = ('type', 'name', 'attrs', 'contains_me') | |
self.begin_tag = dict(zip(tag_temple, begin_tag)) |
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 python | |
# -*- coding: utf-8 -*- | |
import urllib.request | |
import html.parser | |
import xml.etree.ElementTree | |
import queue | |
import threading | |
import functools | |
import os |
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 os | |
import codecs | |
import zipfile | |
import textwrap | |
def print_usage(myname): | |
USAGE = textwrap.dedent(""" |
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
/* Recursion Method */ | |
function toArray(array) { | |
var result=[]; | |
function toarray(array) { | |
for (var l=array.length,i=0;i<l;i++) { | |
if (Array.isArray(array[i])) { | |
toarray(array[i]); | |
} else { |
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
// ==UserScript== | |
// @name Bilibili test-version flash player | |
// @description this script can force browser use test-version flash player | |
// @author jahiy | |
// @version 0.3.1 | |
// @match https://secure.bilibili.tv/secure,* | |
// @match http://www.bilibili.tv/video/* | |
// ==/UserScript== | |
function main() { |