Skip to content

Instantly share code, notes, and snippets.

@cat-in-136
cat-in-136 / using-iframe.html
Last active August 29, 2015 01:03
MS edge ms-settings test...
<iframe src="ms-settings:personalization"></iframe>
<!-- On MS Edge, the setting window is suddenly opened just after opening this file. -->
@cat-in-136
cat-in-136 / child.rb
Created November 15, 2015 02:31
#ActiveRecord, count may not equal to length
class Child < ActiveRecord::Base
belongs_to :parent
end
@cat-in-136
cat-in-136 / README.md
Last active February 20, 2016 04:58
WebAudio Test
.bundle
vendor/bundle
*~
*.swp
@cat-in-136
cat-in-136 / connectivitycheck.rb
Created August 14, 2016 13:33
Fake connectivitycheck.gstatic.com
#!/usr/bin/ruby
require 'webrick'
server = WEBrick::HTTPServer.new(
:ServerSoftware => nil,
:BindAddress => '0.0.0.0',
:Port => 80,
:Logger => WEBrick::Log.new($stderr, WEBrick::Log::DEBUG),
:AccessLog => [
@cat-in-136
cat-in-136 / encrypted_data.asc
Created August 29, 2016 15:32
Study for decrypting photo using OpenPGP.js
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1
jA0ECQMC/XZZrofwlJhg0u0BNEMqSnxdB8NJcFstYl2Korm8jQNz6LLXItIHKSlN
g2ZiBuo7YAPO+dGDuFkac6jUqoFY2aLBI8kRGQLUii22vQmR9bD9k+mpWkLBak7z
5m+kEjzQbo/9aNgrvpgDZ4U8cxP13nhyWkSjsfOSeAhGOGxLSiDnp/TlfZRjscRL
WF+1KFUKGL0sjAqXVkEdMe6PNCbQlozIyfSlFxJy4axtD4bL6BHsKxwYgKTorNOP
sEOUPfe9E06hLVOwlOVZ8oyYzpV7WX3YwwLC0c1TE35jrjuXwnCER0RTFlvbdCFr
DOMdIMrKEIEtfK+6n5AR/ojN4fdoORH7NQTG1OBiigkHVylBgMTxGOU5KMgE9526
c17aBmFwMTSatx565FqEpibRNvQr5lBHCOl3Ep0vPIX0pzTYFUel0RU3+3ZuFWvg
@cat-in-136
cat-in-136 / .gitignore
Last active January 28, 2017 11:37
Run firefox with remote debugging
# Created by https://www.gitignore.io/api/node,vim,emacs
### Node ###
# Logs
logs
*.log
npm-debug.log*
# Runtime data
@cat-in-136
cat-in-136 / .clang-format
Last active March 19, 2017 14:08
ebdumptext: a tool to dump texts of EPWING dictionary.
---
Language: Cpp
# BasedOnStyle: Mozilla
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlignTrailingComments: true
@cat-in-136
cat-in-136 / Copy Full Path Of Selection
Created April 26, 2017 12:29
Nautilus Script of "Copy as Path"
#!/bin/sh
# Dependency check : zenity, xclip
if which zenity > /dev/null 2> /dev/null; then
:
else
xmessage -nearmouse zenity is required but not installed.
exit 1
fi