Skip to content

Instantly share code, notes, and snippets.

@itsPG
itsPG / adjust.js
Created January 3, 2014 19:00
PG's auto img adjuster
// ==UserScript==
// @name PG's auto img adjuster
// @namespace http://itsPG.org
// @version 0.1
// @description
// @match http://*/*
// @copyright 2014, PG
// ==/UserScript==
PG_jQuery_loader = {};
PG_jQuery_loader.getScript = function(filename)
@itsPG
itsPG / os3.cpp
Created October 7, 2013 06:41
os hw3 sol ? I'm not sure it is the solution or not.
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
@itsPG
itsPG / flower.cpp
Created August 28, 2013 08:52
by PG @ SENSE Lab
#include <iostream>
#include <algorithm>
using namespace std;
int flower[] = {1,2,3,4,5,6,7,8};
bool check_pick()
{
for (int i = 3; i < 8; i++)
if (flower[i] > flower[0] && flower[i] > flower[1] && flower[i] > flower[2])
return flower[i] == 8;
#!/usr/bin/perl
open(fin,"/var/log/PG_err_try.log");
@q = <fin>;
my %table;
for(@q)
{
if($_ =~ /Ban ([0-9\.]+)/)
{
$table{$1}++;
}
@itsPG
itsPG / gist:6107334
Last active December 20, 2015 09:19
10問
■問題01
Q.私がスマフォを捨てた理由は?
◇古いから
◇趣味に合わないから
V◇嫌な思い出が染みついているから
■問題02
Q.私たちが同棲してから、何週間って言った?
Fate kaleid liner プリズマ☆イリヤ
Free!
きんいろモザイク
げんしけん 二代目
たまゆら ~もあぐれっしぶ~
ふたりはミルキィホームズ
ガッチャマン クラウズ
サーバント×サービス
ステラ女学院高等科C3部
ダンガンロンパ 希望の学園と絶望の高校生 The Animation
@itsPG
itsPG / aonokiseki.md
Created April 13, 2013 18:01
碧之軌跡 神版B 開箱

碧之軌跡 神版B 開箱

#前言

玩完零軌之後,我有點後悔零軌只買初回限定版而沒有買魔王版

這次看到碧軌開放預定後就捏著LP直上神版了

不太會拍照,圖片傷眼的話請多見諒

/*
ACM 11988 by PG, All rights reserved
*/
#include "stdio.h"
#include "stdlib.h"
int main()
{
char q[100001];
int home[100001];
@itsPG
itsPG / gist:4493013
Last active December 10, 2015 21:08
依貝特報名網 快速填單工具 使用方法:用Chrome開啟目標的報名頁面之後 ctrl+shift+J,貼上這段程式碼然後按下enter即可
/*
依貝特報名網 快速填單工具
使用方法:用Chrome開啟目標的報名頁面之後 ctrl+shift+J,貼上這段程式碼然後按下enter即可
by PG @ SENSE Lab
Copyright (C) 2013
Released under MIT License
*/
原文出處:http://blog.renren.com/share/244624645/14906205100
“那麼,是一隻猴子、一隻豬、一個苦行僧、一匹龍馬,保護你去西天,取回真經?”
“是的。”玄奘輕聲說。
李衛公往椅背上一靠,嘴角露出一絲譏誚:“你覺得這樣的報告,皇上會相信嗎?”
“阿彌陀佛,”玄奘輕頌一聲佛號,“佛法無常,色不異空。”