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 | |
# -*- python -*- | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import zipfile | |
import getpass | |
def usage(): |
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
#!/bin/sh | |
file=$1 | |
path=${file%%.zip} | |
mkdir -p $path | |
LANG=en_US.BIG-5 7z e -y -o"$path" "$file" 2>/dev/null | |
(cd "$path" && convmv -f BIG5 -t UTF-8 --notest --replace * ) |
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> | |
#include <errno.h> | |
#include <limits.h> | |
#include <assert.h> | |
unsigned long int strtoul_wrapper(const char *nptr, char **endptr, int base,int *ret_errno) | |
{ | |
int set_error = 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
<!-- | |
custom "Google Map" source for Mobile Atlas Creator 1.9.8 | |
save in *.xml and move to /mapsources | |
--> | |
<customMapSource> | |
<name>Google Map</name> | |
<minZoom>0</minZoom> | |
<maxZoom>20</maxZoom> | |
<tileType>PNG</tileType> |
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
sudo add-apt-repository ppa:jon-severinsson/ffmpeg | |
sudo apt-get update | |
sudo apt-get install ffmpeg | |
# start/end and crop | |
ffmpeg -ss [start_second] -t [period] -i [input.file] -c:a copy -filter:v "crop=640:240:0:0" [output.file] | |
# use -an to remove audio stream | |
ffmpeg -ss [start_second] -t [period] -i [input.file] -an -c:a copy -filter:v "crop=640:240:0:0" [output.file] |
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
Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c | |
=================================================================== | |
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c (revision 38494) | |
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c (working copy) | |
@@ -21,7 +21,9 @@ | |
#include "dev-wmac.h" | |
#include "machtypes.h" | |
-#define TL_WR703N_GPIO_LED_SYSTEM 27 | |
+#define TL_WR703N_GPIO_LED_SYSTEM 13 |
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
window.asus = window.asus || {}; | |
asus = asus || {}; | |
(function() { | |
asus.user = { | |
touch : "ontouchend" in document ? true : false | |
}; | |
asus.url = { | |
the_url : document.location.href, | |
top_url : top.location.href | |
}; |
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
sudo add-apt-repository ppa:jon-severinsson/ffmpeg | |
sudo apt-get update | |
sudo apt-get install ffmpeg | |
# start/end and crop | |
ffmpeg -ss [start_second] -t [period] -i [input.file] -c:a copy -filter:v "crop=640:240:0:0" [output.file] | |
# use -an to remove audio stream | |
ffmpeg -ss [start_second] -t [period] -i [input.file] -an -c:a copy -filter:v "crop=640:240:0:0" [output.file] |
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 python3 | |
# Author: Ali Assaf <ali.assaf.mail@gmail.com> | |
# Copyright: (C) 2010 Ali Assaf | |
# License: GNU General Public License <http://www.gnu.org/licenses/> | |
from itertools import product | |
def solve_sudoku(size, grid): | |
""" An efficient Sudoku solver using Algorithm X. |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="pattern"> | |
<test name="lang"> | |
<string>zh-tw</string> | |
</test> | |
<test name="family"> | |
<string>sans-serif</string> | |
</test> |
OlderNewer