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<string.h> | |
char str[1000]; | |
int back(char *tail){ | |
char *head; | |
for(head = tail ; ; head--) | |
if(*head == ';' || *head == '>') | |
break; |
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
//code reference https://shadesfgray.wordpress.com/2010/12/17/wake-on-lan-how-to-tutorial/ | |
//thx to Shades of Gray's blogger ! | |
//I made some changes and make wol to wow by setting my router. | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<sys/socket.h> | |
#include<sys/types.h> |
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
//改自 如何用C语言画一个“心形”? - Milo Yip 的回答 | |
//https://www.zhihu.com/question/20187195/answer/34873279 | |
//来个 g++ linux 支援控制代码 改丑了不要找我,不喜勿喷 <(_ _)> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <unistd.h> | |
#include <signal.h> | |
float f(float x, float y, float z) { | |
float a = x * x + 9.0f / 4.0f * y * y + z * z - 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
#!/usr/bin/env python2.7 | |
import urllib2 , io | |
from HTMLParser import HTMLParser | |
####################### SETTING ######################## | |
bank_url = "http://rate.bot.com.tw/xrt?Lang=zh-TW" | |
####################### PAESER IMPLEMENT ############### | |
class rateParser(HTMLParser): |
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
source /etc/vimrc | |
set nu "num line | |
set tabstop=4 | |
set shiftwidth=4 | |
set cindent | |
set smarttab | |
set expandtab "set tab to space | |
set autoindent | |
syntax on | |
"hi comment ctermfg=cyan |
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
-- 1. | |
type Name = [Char] | |
data Expr = Var Name | |
| Lit Int | |
| Expr :+: Expr | |
| Expr :*: Expr | |
deriving (Eq, Show) | |
global = [("x", 1), ("y", 2)] :: [(Name, Int)] |
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
◼ MyTest | |
[02:35:23] payload method is eth_gasPrice | |
[02:35:23] payload method is eth_sendTransaction | |
[02:35:23] payload method is eth_getTransactionReceipt | |
[02:35:23] payload method is eth_gasPrice | |
[02:35:23] payload method is eth_sendTransaction | |
[02:35:23] payload method is eth_getTransactionReceipt | |
[02:35:23] payload method is eth_gasPrice | |
[02:35:23] payload method is eth_sendTransaction | |
[02:35:23] payload method is eth_getTransactionReceipt |
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
APK="$1" | |
if [ -f $APK ];then | |
./apktool d "$APK" | |
OIFS="$IFS" | |
IFS=$'\n' | |
grep -lR "\->loadAd" "${APK%.*}" | xargs -d '\n' -- sed -i '/\->loadAd/d' | |
IFS="$OIFS" | |
./apktool b "${APK%.*}" -o "${APK%.*}_no_ad.apk" | |
java -jar sign.jar --overwrite --apks "${APK%.*}_no_ad.apk" | |
rm -rf "${APK%.*}" |
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
import numpy as np | |
import cv2, sys, os.path | |
from itertools import chain | |
from functools import reduce | |
kernel = "smooth" | |
filename = "demo.png" | |
kernels = { | |
"blur" : [[5/80,1/8,5/80], |
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<cstdio> | |
#define LL long long | |
bool go_tree(LL tar, LL cur, bool &isNIL){ | |
LL val; | |
bool res = false, ll = false, rl = false; | |
if(scanf("\n(%lld", &val)){ | |
res |= go_tree(tar, cur + val, ll); | |
res |= go_tree(tar, cur + val, rl); | |
res |= (ll && rl && tar == cur + val); | |
} |
OlderNewer