Skip to content

Instantly share code, notes, and snippets.

@j100002ben
j100002ben / posts_clauses_request_filter_example.php
Created May 21, 2012 10:30
Example of "posts_clauses_request" filter
function search_posts_clauses_request($clauses, $wp_query){
global $wpdb;
if(is_plugin_active('wp-cjk-fulltext-index/wp-cjk-fulltext-index.php')){
$key = get_query_var('key');
cjkfxi_set_posts_clauses_request($clauses, $key);
}
extract($clauses, EXTR_SKIP);
@j100002ben
j100002ben / jquery-slideshow.js
Created November 26, 2012 08:59
jquery-slideshow.js ( Not test yet...T_T )
;(function(window, undefined) {
var document = window.document
, $ = window.jQuery
;
$.fn.slideshow = function(_settings){
var _default_settings = {
move_time: 50
, move_width: 'one' /* one || view */
, start_one: true
, start_wait: 0
<div id="index-banner-slide">
<ul>
<li>
<a href="#"><img src="" /></a>
</li>
<li>
<a href="#"><img src="" /></a>
</li>
<li>
<a href="#"><img src="" /></a>
@j100002ben
j100002ben / gist:4247294
Created December 9, 2012 22:30
為何企劃書應該要找法律系來潤稿(聳動的標題比較能讓人清醒)
事情是這樣的,我的室友半夜不睡覺,邊啃零食邊做企劃書
接著找我幫他校稿
只是挑挑錯字語病而已,應該很簡單
...我錯了,抱歉可以請你們找一個法律系的來潤稿好嗎?
前面看起來像成年人,中間提起由來的口吻是16歲,接著報上人名的時候隨便的態度就是小孩子。
雖然說冠上學生兩字也不能夠隨便處理,想想你們是第一屆,好好做個模範讓後輩可以以你們為榜樣
所以還是找個法律系的來潤稿吧
你想想看,企劃書是拿來幹嘛的?拿給掏的出錢的企業看,讓人們贊助(掏錢)的東西
/*
* Run this code in Browser's JS console at the judge page of the class
* and it will select every radio chooses with submit the form for you.
*/
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = false;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js';
var h = document.getElementsByTagName('head')[0]; h.appendChild(ga);
})();
(function(){
(function(window){
var $ = window.jQuery
, a = $("#main_menu a")
, b = $(a.get().reverse());
setTimeout(function(){ var f=arguments.callee; a.click(); setTimeout(function(){ b.click(); setTimeout(f,5000); } ,5000); },0);
})(this);
// Closure Compiler REST API
/*
/**
* The onOpen() function, when defined, is automatically invoked whenever the
* spreadsheet is opened.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function onOpen() {
var sheet = SpreadsheetApp.getActiveSheet();
var b_col = sheet.getRange('B:B');
var g_col = sheet.getRange('G:G');
您好
一、因您提供的人名為歌手,非大陸姊妹會「中國音樂著作權協會MCSC」之詞曲老師,故無法得知是否為本會得授權之範圍,或可另提供CD內頁歌本詞、曲老師部份以供比對。二、因目前台灣地區僅本會MUST取得聯合國教科文組織轄下之「國際藝創家聯會CISAC」之各會員國(如美國ASCAP、英國PRS、法國SACEM、日本JASRAC等)之互惠合作授權,須代其收取台灣地區之公開播送、公開演出之使用報酬。故公開場所欲播放國外地區購買之CD,應先取得本會之公開演出概括授權,始不致侵權。另多數CD封面、內頁歌本印有國外姊妹會之名稱(如ASCAP、BMI、PRS、JASRAC等,可參考本會網站上海外協會名單),即為本會得代為授權之音樂著作,而未印有任何國家協會之CD音樂,或可至姊妹會ASCAP(www.ascap.com)、BMI(www.bmi.com)之網站查詢部份曲目,另如上述方法皆無法查知時,並非代表本會無管理之權限,希各界利用人尊重音樂著作權,不論國人之著作或外國人之著作。謝謝。
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 9]><html lang="zh-tw" class="no-js lte-ie8" xmlns="http://www.w3.org/1999/xhtml"><![endif]-->
<!--[if gt IE 8]><!--><html lang="zh-tw" class="no-js" xmlns="http://www.w3.org/1999/xhtml"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Test position.</title>
<link href="https://raw.github.com/necolas/normalize.css/master/normalize.css" rel="stylesheet">
<style>
html, body {
Traceback (most recent call last):
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 1246, in communicate
req.respond()
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 758, in respond
self.server.gateway(self).respond()
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 1949, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)
File "/home/plurk/plurk/git_trunk/ext/werkzeug/utils.py", line 859, in __call__
return self.app(environ, start_response)
File "/home/plurk/plurk/git_trunk/ext/parts/web/web.py", line 295, in dispatch_request