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/python | |
# -*- coding: utf-8 -*- | |
# | |
# @作者(author): 龙昌锦(LongChangjin) | |
# @博客(blog): http://www.xefan.com | |
# @邮箱(mail): [email protected] | |
# @QQ: 346202141 | |
# @时间(date): 2012-04-15 | |
# |
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 -*- | |
## | |
## | |
# Copyright (C) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation. | |
# 本程序是免费软件,基于GPL许可发布。 |
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
" pentadactylrc 1.0 | |
loadplugins '\.(js|penta)$' | |
group user | |
" vim: set ft=pentadactyl: | |
map J <C-d> | |
map K <C-u> | |
" 修改Ctrl快捷键 |
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
"3.5 (created: 2012/08/04 00:41:20) | |
source! ~/.vimperatorrc.local | |
" vim: set ft=vimperator: | |
map J <C-d> | |
map K <C-u> | |
map <C-`> :stop<CR> |
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 <Python.h> | |
#include <pythread.h> | |
static void test(void *s) | |
{ | |
while (1) | |
{ | |
printf("in sub thread\n"); | |
sleep(1); | |
} |
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 <Python.h> | |
#include <pythread.h> | |
#include <pthread.h> | |
void* test(void *ptr) | |
{ | |
while (1) | |
{ | |
printf("in C thread\n"); | |
sleep(1); |
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
# Copyright (c) 2009 rupa deadwyler under the WTFPL license | |
# maintains a jump-list of the directories you actually use | |
# | |
# INSTALL: | |
# * put something like this in your .bashrc/.zshrc: | |
# . /path/to/z.sh | |
# * cd around for a while to build up the db | |
# * PROFIT!! | |
# * optionally: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf8"> | |
<title>ドラえもん</title> | |
<style type="text/css"> | |
@-moz-keyframes eye { | |
0% { top: 8px;} | |
50% { top: 19px;} | |
100% { top: 8px;} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf8"> | |
<title>むぎわら</title> | |
<style type="text/css"> | |
h1 { | |
text-align: center; | |
} | |
#container { |
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
#!/bin/bash | |
if [[ $@ != "" ]]; then | |
if [[ $2 != "" ]]; then | |
curl http://www.gitignore.io/api/$1 -o $2 | |
else | |
curl http://www.gitignore.io/api/$1 | |
fi | |
else | |
echo 创建gitignore文件 |
OlderNewer