Skip to content

Instantly share code, notes, and snippets.

View afutseng's full-sized avatar

Yi-Peng Tseng afutseng

  • Firstweb Limited
  • Taipei, Taiwan
View GitHub Profile
Linux carglecloud0 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04.1 LTS
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
System information as of Sun Apr 3 15:39:25 CST 2011
System load: 0.0 Swap usage: 0% Users logged in: 0
Usage of /: 0.3% of 905.57GB Temperature: 30 C
@afutseng
afutseng / DynamicInputTest.java
Created December 18, 2011 09:42
Java dynamic array input test
import java.util.*;
public class DynamicInputTest {
public static void main(String[] argv) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] numbers = new int[n]; // numbers is n size' s array
// Input & summation
int sum = 0;
@afutseng
afutseng / coscup2012-day1-irc-log
Created August 18, 2012 13:12
COSCUP 2012 Day1 irc log
--- Log opened Fri Aug 17 01:22:02 2012
01:22 -!- chph_ [[email protected]] has joined #coscup
01:22 -!- Irssi: #coscup: Total of 44 nicks [0 ops, 0 halfops, 0 voices, 44 normal]
01:22 -!- Irssi: Join to #coscup was synced in 2 secs
01:22 -!- You're now known as chph
01:24 -!- test [3b7fcc66@gateway/web/freenode/ip.59.127.204.102] has quit [Quit: Page closed]
01:27 -!- Yuhsien [[email protected]] has quit [Quit: Lost terminal]
01:29 -!- FourDollars [[email protected]] has quit [Quit: leaving]
01:29 -!- webbertsai_ [722fde03@gateway/web/freenode/ip.114.47.222.3] has joined #coscup
01:31 -!- webbertsai [722fde03@gateway/web/freenode/ip.114.47.222.3] has quit [Ping timeout: 245 seconds]
@afutseng
afutseng / COSCUP-2012-Day2-irc-log
Created August 19, 2012 09:05
COSCUP 2012 Day2 irc log
--- Day changed Sun Aug 19 2012
00:01 -!- Alisha [72262a5c@gateway/web/freenode/ip.114.38.42.92] has quit [Quit: Page closed]
00:02 -!- orinx|bof is now known as orinx|sleep
00:02 -!- play [[email protected]] has joined #coscup
00:02 -!- bobchao [[email protected]] has joined #coscup
00:02 -!- mode/#coscup [+o bobchao] by ChanServ
00:03 -!- play [[email protected]] has quit [Client Quit]
00:03 -!- nemu [72180666@gateway/web/freenode/ip.114.24.6.102] has joined #coscup
00:04 -!- kevin6861 [3d46d92d@gateway/web/freenode/ip.61.70.217.45] has quit []
00:06 -!- kengyu [[email protected]] has joined #coscup
@afutseng
afutseng / Preferences-sublime-settings.json
Created December 23, 2012 14:48
Preferences.sublime-settings
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"draw_white_space": "selection",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
],
"rulers":
[
@afutseng
afutseng / sublime-keymap.json
Created December 23, 2012 14:49
.sublime-keymap
[
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
}
]
@afutseng
afutseng / gist:6915297
Last active December 25, 2015 04:09
ZendCon 2013 slides
<?php
require '../vendor/autoload.php';
+ use GuzzleHttp\Client;
+ use GuzzleHttp\Cookie\CookieJar;
+
+
+ $url = 'https://www.ptt.cc/bbs/Gossiping/M.1404887907.A.886.html';
$client = new Client();
+
@afutseng
afutseng / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console