Skip to content

Instantly share code, notes, and snippets.

View bobby1030's full-sized avatar

Bobby Ho bobby1030

  • Taipei, Taiwan
View GitHub Profile
@bobby1030
bobby1030 / 0_reuse_code.js
Created August 12, 2016 13:58
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
// Execute this on http://store.steampowered.com/explore/
var GenerateQueue = function( queueNumber )
{
console.log( 'Queue #' + ++queueNumber );
jQuery.post( 'http://store.steampowered.com/explore/generatenewdiscoveryqueue', { sessionid: g_sessionID, queuetype: 0 } ).done( function( data )
{
var requests = [];
@bobby1030
bobby1030 / ytcenter-settings.ytcs
Created December 14, 2015 03:04
My YouTube Center Settings
{"player_gap":false,"google_apikey":"","placementTransformation":[],"hideFooter":false,"enablePlayerDocking":false,"hideHeaderWhenPlayerPlayingTransitionTime":600,"hideHeaderWhenPlayerPlayingKeepScrollPosition":false,"hideHeaderWhenPlayerPlayingFocus":true,"hideHeaderWhenPlayerPlayingMouseThreshold":90,"hideHeaderWhenPlayerPlayingMouseVisibility":true,"hideHeaderWhenPlayerPlayingTransition":true,"hideHeaderWhenPlayerPlaying":false,"limitSearchRowWidthEnabled":false,"limitSearchRowWidth":700,"useStaticLogo":true,"defaultLanguage":"zh-TW","hideWatchLaterOnPlayer":false,"likedislikeUIEnabled":true,"sparkbarEnabled":true,"videoThumbnailQualityFPS":true,"enableComments":true,"channelUploadedVideosPlaylist":false,"ytOnlyStageMode":false,"playerGlowEffectOnPlayer":"both","bufferEnabled":false,"bufferSize":569228273678,"embedBufferEnabled":false,"embedBufferSize":569228273678,"channelBufferEnabled":false,"channelBufferSize":569228273678,"playlistAutoPlay":true,"playlistAutoPlayFreeze":false,"playerGlowEnabled":false,
{
"quiz": [
{
"title": "金管會推動「金融3.0」政策,是讓民眾可以使用何種方式辦理各項銀行、保險與證券等金融業務?",
"option": [
"(1)傳統臨櫃",
"(2)親自辦理",
"(3)網路或行動裝置",
"(4)所有選項皆正確"
],
// ==UserScript==
// @name Fullscreen VoiceTube
// @namespace fullscreen.voicetube
// @description Make VoiceTube Video FullScreen !
// @include https://tw.voicetube.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @version 1
// @grant none
// ==/UserScript==
@bobby1030
bobby1030 / HowTaiwaneseReactToElectricityBill.py
Created June 26, 2015 13:39
How Taiwanese React to Electricity Bill
# encoding: utf-8
import time
i = 1
def ZH():
while i > 0:
Policy = str(input('政府政策(電費調漲:UP,節電獎勵:DOWN,維持現狀:HOLD):'))