This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget --recursive --page-requisites --html-extension --convert-links --restrict-file-names=windows --span-hosts --domains=ameblo.jp,stat.ameba.jp --no-parent --level=4 --wait=1 http://ameblo.jp/cinnamon-staff/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateTables < ActiveRecord::Migration | |
def change | |
create_table :rankings do |t| | |
t.string :name, null: false, unique: true | |
end | |
add_index :rankings, :name | |
create_table :characters do |t| | |
t.string :name, null: false, unique: true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Erik van der Kolk <developer at smerik dot nl> | |
pkgname=editorconfig-core-c | |
pkgver=0.11.5 | |
pkgrel=1 | |
pkgdesc="EditorConfig core code written in C (for use by plugins supporting EditorConfig parsing)" | |
arch=('i686' 'x86_64') | |
url="https://github.com/editorconfig/${pkgname}" | |
license=('BSD') | |
depends=('glibc') | |
makedepends=('cmake') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'tmpdir' | |
SOFFICE = '~/Applications/LibreOffice.app/Contents/MacOS/soffice'.freeze | |
if ARGV.size != 1 | |
STDERR.puts 'usage: xls2tsv filename' | |
exit 1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics] | |
"CaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\ | |
00,00,00,80,00,00,00,32,4d,00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,\ | |
00,00,00,20,00,55,00,49,00,20,00,53,00,65,00,6d,00,69,00,6c,00,69,00,67,00,\ | |
68,00,74,00,00,00,02,80,00,00,00,00,00,00,02,80,00,00,00,00,00,00 | |
"SmCaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,\ | |
00,00,00,00,80,00,00,00,32,4d,00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,\ | |
49,00,00,00,20,00,55,00,49,00,20,00,53,00,65,00,6d,00,69,00,6c,00,69,00,67,\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property NetworkName : "" | |
property NetworkPassword : "" | |
try | |
do shell script "/usr/sbin/scselect " & NetworkName | |
delay 2 | |
end try | |
tell application "System Events" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int cellSize = 16; | |
int defaultJumpLimit = 10; | |
int readyState = 0; | |
int gameState = 1; | |
int clearedState = 2; | |
int emptyCell = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LiSA Official Blog Reader | |
// @namespace http://monoweb.info/ | |
// @include http://ameblo.jp/lxixsxa/* | |
// @version 1.0.0 | |
// ==/UserScript== | |
Array.prototype.forEach.call(document.querySelectorAll('.subContents'), function(content) { | |
var html = content.innerHTML; | |
html = html.replace(/([^>])<br><br>([^<])/g, '$1$2'); | |
html = html.replace(/<br>(\s*<br>)+/g, '<br>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fix CiNii Links | |
// @namespace http://monoweb.info/ | |
// @description Remove the onclick attribute from links | |
// @include http://ci.nii.ac.jp/search?* | |
// ==/UserScript== | |
document.addEventListener('AutoPatchWork.DOMNodeInserted', function(e) { | |
Array.prototype.forEach.call(e.target.querySelectorAll('.taggedlink'), function(link) { | |
link.onclick = null; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
class Expression | |
attr_reader :value | |
def initialize(tokens) | |
left = Term.new(tokens) | |
@value = left.value | |
until tokens.empty? | |
op = tokens.first |
OlderNewer