Skip to content

Instantly share code, notes, and snippets.

mono mono0x

Block or report user

Report or block mono0x

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
View puroland_jp_information.rb
require 'open-uri'
require 'json'
require 'date'
data = JSON.parse(open('http://www.puroland.jp/api/live/get_information/?category=event&page=1&count=20').read)
#data = JSON.parse(open('information.json').read)
items = data['data'].map {|item|
public_date = Date.new(*item['public_date'].split('/').map {|i| i.to_i(10) })
View puroland_jp_schedule.rb
require 'open-uri'
require 'nokogiri'
doc = Nokogiri::HTML(open('http://www.puroland.jp/').read)
#doc = Nokogiri::HTML(open('index.html').read)
doc.search('.todaysList .todaysItemBox').each do |item|
title = item.search('.todaysItemTitle').text
start = item.search('dl.start dd').text
p start, title
View google_cse.go
package main
import (
"fmt"
"log"
"net/http"
"google.golang.org/api/customsearch/v1"
"google.golang.org/api/googleapi/transport"
)
View location_extractor.go
package main
import (
"fmt"
"log"
"strings"
)
const (
sanrioEventsCalendarId = "qsqrk2emvnnvu45debac9dugr8@group.calendar.google.com"
View enter_nicolive.user.js
/*
* @title 生放送に入場
* @description ニコニコ生放送に自動で入場します。
* @include http://live.nicovideo.jp/gate/*
* @license MIT License
*/
(function(d) {
var a,
t = setInterval(function() {
if(a = d.querySelector('#gates .door a[href]')) {
View meiryoui.reg
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,\
@mono0x
mono0x / xls2tsv
Last active Aug 29, 2015
Convert from xls/xlsx to TSV
View xls2tsv
#!/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
View daily.txt
シンガンクリムゾンズ
date | count
------------+-------
2015-05-10 | 1152
2015-05-11 | 1019
2015-05-12 | 629
2015-05-13 | 521
2015-05-14 | 430
2015-05-15 | 375
2015-05-16 | 348
@mono0x
mono0x / ldr_open_in_background_tab.user.js
Last active Jan 29, 2016
LDR open in background tab for Greasemonkey 2+
View ldr_open_in_background_tab.user.js
// ==UserScript==
// @name LDR open in background tab
// @namespace http://ss-o.net/
// @include http://reader.livedoor.com/reader/
// @include http://reader.livedoor.com/public/*
// @include http://reader.livedwango.com/reader/
// @include http://reader.livedwango.com/public/*
// @version 1.1.0
// @grant GM_openInTab
// ==/UserScript==
@mono0x
mono0x / PKGBUILD
Last active Aug 29, 2015 — forked from vinipsmaker/PKGBUILD
PKGBUILD for editorconfig-core-c (based on https://aur.archlinux.org/packages/editorconfig-core/)
View PKGBUILD
# 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')
You can’t perform that action at this time.