Skip to content

Instantly share code, notes, and snippets.

View cherenkov's full-sized avatar

cherenkov cherenkov

View GitHub Profile
@cherenkov
cherenkov / pagescroller-topnav-sample.html
Created April 7, 2012 19:31
jqueryプラグイン、オプションの設定方法を教えて下さい。 素人.. - 人力検索はてな http://q.hatena.ne.jp/1333816826
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://pagescroller.com/javascripts/pagescroller.min.js"></script>
<link rel="stylesheet" href="http://pagescroller.com/stylesheets/style.css" type="text/css" media="all" />
<script>
$(document).ready(function(){
$('#wrapper').pageScroller({
@cherenkov
cherenkov / jimdo.html
Created April 6, 2012 16:18
jimdoで横並びメニューを作る方法を教えて下さい。現在はテンプ.. - 人力検索はてな http://q.hatena.ne.jp/1333685465
<style>
#header-menu {
margin-left: 310px;
margin-bottom: 30px;
}
#header-menu a {
text-decoration: none !important;
font-size: 20px;
color: black !important;
}
@cherenkov
cherenkov / hateq20120406.pl
Created April 5, 2012 21:52
スクレイピングでのXPathの使い方について質問です。 Web::Scrap.. - 人力検索はてな http://q.hatena.ne.jp/1333603060
#スクレイピングでのXPathの使い方について質問です。 Web::Scrap.. - 人力検索はてな
#http://q.hatena.ne.jp/1333603060
#よしいずの雑記帳  Web::Scraperを使ったPerlプログラムの例
#http://yoshiiz.blog129.fc2.com/blog-entry-382.html
use strict;
use warnings;
use Web::Scraper;
use Data::Dumper;
@cherenkov
cherenkov / index.html
Created February 27, 2012 12:44
Featured Content Slider Using jQuery UI に関する質問です。 h.. - 人力検索はてな http://q.hatena.ne.jp/1330341441
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Featured Content Slider Using jQuery - Web Developer Plus Demos</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<channel>
<title>Example</title>
<link>http://example.com/</link>
<description>Example Site</description>
@cherenkov
cherenkov / 20120219.user.js
Created February 19, 2012 11:36
chrome GM_addStyle content \A test
// ==UserScript==
// @name test - chrome GM_addStyle content test
// @namespace http://d.hatena.ne.jp/Cherenkov/
// @include *
// @version 0.1
// @date 20120219
// ==/UserScript==
GM_addStyle('*:before { content: "\\A" url("http://www.bing.com/s/wlflag.ico"); white-space: pre; }');
<script>alert(1)</script>
<html>
<head>
<script>
</script>
</head>
<body>
b
<iframe src="c.html" name="c" width="200" height="150">
</body>
</html>
@cherenkov
cherenkov / 20111114hateq.html
Created November 14, 2011 10:07
Twitterの複数の企業IDでフォロワーがどのくらい重複しているか.. - 人力検索はてな http://q.hatena.ne.jp/1321238733
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
var list = [];
$('#btn').click(function() {
list = [];
@cherenkov
cherenkov / my_proxy.rb
Created November 13, 2011 06:42
ヘッダ偽装。youkuなどの中国動画サイトをipadで見る方法はありますか?今ま.. - 人力検索はてな http://q.hatena.ne.jp/1321153126
#!/usr/bin/env ruby
require 'webrick'
require 'webrick/httpproxy'
require 'optparse'
include WEBrick
#WEBrick::HTTPProxyServer で無理矢理リクエストヘッダを書き換えるプロクシサーバ - PARAGRAPHS
#http://d.hatena.ne.jp/tily/20090511/p1
#
#使い方:ruby my_proxy.rb -r "X-Forwarded-For:58.30.0.0"