Skip to content

Instantly share code, notes, and snippets.

View vincicat's full-sized avatar

Vinci vincicat

View GitHub Profile
/*
Less Framework 2, version 2.0
by Joni Korpi
-----------------------------
http://lessframework.com
*/
/*
@vincicat
vincicat / no-focus-zoom.js
Created May 9, 2011 15:05
[iOS][Safari] Avoid :focus zooming
$('input, select, textarea').focus(function(){
$('meta[name=viewport]').attr('content','width=device-width,initial-scale=1,maximum-scale=1.0');
});
$('input, select, textarea').blur(function(){
$('meta[name=viewport]').attr('content','width=device-width,initial-scale=1,maximum-scale=10');
});
@vincicat
vincicat / hack-no-zooming.js
Created May 9, 2011 15:07
[iOS][Safari] Avoid :focus zooming #2
var $viewportMeta = $('meta[name="viewport"]');
$('input, select, textarea').bind('focus blur', function(event) {
$viewportMeta.attr('content', 'width=device-width,initial-scale=1,maximum-scale=' + (event.type == 'blur' ? 10 : 1));
});
//The browser starts zooming in but immediately zooms out again when the elements gets focus. I like that.
@vincicat
vincicat / jQ1.7-event-data.js
Created December 2, 2011 10:22
jQuery 1.7 event data access
// Source: http://jsbin.com/erirek/
$( function() {
var $hello = $( "#hello" ).click( function() {
alert( "hello world" );
});
// does NOT return object the inclues the events property
// pre-1.7 this used to include the events property
@vincicat
vincicat / bioharzard.js
Created May 17, 2012 11:24
Zombie 1.1.2 browser.visit bug demo
var Browser = require("zombie"), jQuery = require("jquery")
var browser = new Browser({
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19',
htmlParser: require('htmlparser'), //will or without giving same error
runScripts: false,
silent: true
});
var urls = ["http://google.com", "http://yahoo.com"]
//url is a set of url
@vincicat
vincicat / queen.cpp
Created November 16, 2012 14:40
[問題] 請問一下我的八皇后程式
//source: PTT http://www.ptt.cc/bbs/C_and_CPP/M.1260555706.A.CA2.html
//Disp.cc ver: https://disp.cc/b/27-4Mhw
#include<iostream>
using std::cout;
using std::endl;
int count(int,int);
void setchessboard();
int findmin();
int findminadd();
@vincicat
vincicat / amp_maddess.js
Created March 4, 2013 10:00
How to kill your jQuery AJAX call with an HTML valid url
// Situation: /echo need a `key` as a GET param
// - key: access token
// HTTP 200 - any `key`
// HTTP 403 - no `key`
var good_url = "/echo/?version=1&key=4bf3D"; //Good URL that will not break the server but it will fail the HTML validator
var html_url = "/echo/?version=1&amp;key=4bf3D"; //HTML valid URL that will pass the html validator but fail $.get
$.get(good_url)
.done(function(){ console.log("OK"); }) //200, OK
.fail(function(){ console.log("Ka-boom!")});

Witcher 3 Gwent Card Checklist (1.12)

This is a page helps you collecting all the Gwent cards.

Locations

Specific locations and characters to purchase cards at:

White Orchard

  • White Orchard: Innkeeperess or Trader outside the Inn (After Prologue)

Brewing...

填詞: 周耀輝
編曲: 林奕華
鄧小平
鄧小平 梅艷芳 Alan與成龍
David Wilson 跟那李柱銘
發仔(呀) 吾爾開希^
裕玲 曼玉 惠珠 Rita Fan就同利智 
許家屯^