Skip to content

Instantly share code, notes, and snippets.

inaling inaling

Block or report user

Report or block inaling

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@inaling
inaling / 0_reuse_code.js
Created Aug 8, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@inaling
inaling / DenyCybozuLiveUpdate.user.js
Last active Dec 24, 2015
サイボウズLiveの「この更新を通知する」のチェックを自動解除するGreaseonkeyスクリプト
View DenyCybozuLiveUpdate.user.js
// ==UserScript==
// @name Deny CybozuLive Update
// @namespace http://qiita.com/mathlow
// @description Deny CybozuLive Update
// @include https://cybozulive.com/*
// ==/UserScript==
(
function() {
var nodes = document.evaluate(
@inaling
inaling / post_customfield.rb
Last active Dec 15, 2015
rubyでwordpressへカスタムフィールドの値を含めた記事を投稿する為のサンプルコード
View post_customfield.rb
# -*- encoding: utf-8 -*-
require 'rubygems'
require 'xmlrpc/client'
user = 'hogehoge'
pass = 'password'
publish = 1
customs = [
View redirectpublic.user.js
// ==UserScript==
// @name Pinboard Redirect Public @inarin
// @description Pinboard Redirect Public @inarin
// @include http*://pinboard.in/u:inarin/
// ==/UserScript==
(function(){
location.href = "https://pinboard.in/u:inarin/public/"
})();
View preview-count.user.js
// ==UserScript==
// @name preview-count
// @namespace http://inarinlab.com
// @description ページランク、はてブ数、gReaderの購読者数を画面右下に表示します。 by http://www.zontheworld.com/blog/archives/64
// @include *
// @exclude *.google.*/*
// ==/UserScript==
(
function() {
View mashpad_newlist.xml
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="MyRSS" scrolling="true">
</ModulePrefs>
<Content type="html">
<![CDATA[
<script type="text/javascript">
function init() {
var feedUrl = 'http://inarin.mashpad.jp/rss'; //RSSのURL
_IG_FetchXmlContent(feedUrl, function (res) {
View shareitlater.rb
require 'rubygems'
require 'nokogiri'
require 'active_record'
require 'mechanize'
agent = WWW::Mechanize.new
body = agent.get("http://inarin.toyamajin.co.cc").body
html = Nokogiri::HTML.parse(body, nil, "UTF-8")
h = {}
View fastcgi
#!/bin/bash
PHP_SCRIPT=/usr/bin/php-fastcgi
RETVAL=0
case "$1" in
start)
echo "Starting fastcgi"
$PHP_SCRIPT
RETVAL=$?
;;
stop)
View helloworld.xml
<object data="http://widgets.swf.s3.amazonaws.com/WrapperBloggers.swf?wid=8763&amp;statsid=8512&amp;langid=en&amp;env=production&amp;v=2e980d97854060e5956a4e86b7fa50e2&amp;apix=3.0" type="application/x-shockwave-flash" width="300" height="320" id="widget">
<param name="movie" value="http://widgets.swf.s3.amazonaws.com/WrapperBloggers.swf?wid=8763&amp;statsid=8512&amp;langid=en&amp;env=production&amp;v=2e980d97854060e5956a4e86b7fa50e2&amp;apix=3.0" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="false" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<param name="0" value="" />
</object><noscript><br />
Download the widget <a
href="http://en.widgadget.com/widget/hanashiori-wedget">hanashiori wedget</a>
View html-getter.js
/**
* @author inarin
*/
function getXHR() {
var req;
try {
req = new XMLHttpRequest();
}
catch(e) {
You can’t perform that action at this time.