Skip to content

Instantly share code, notes, and snippets.

View osak's full-sized avatar

Osamu Koga (osa_k) osak

View GitHub Profile
$ whois 114514.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: 114514.COM
Registrar: ENOM, INC.
1 1 1 1 1 1 1 1 1
2 4 8 16 32 64 128 256 512
3 9 27 81 243 729 2187 6561 19683
4 16 64 256 1024 4096 16384 65536 262144
5 25 125 625 3125 15625 78125 390625 1953125
6 36 216 1296 7776 46656 279936 1679616 10077696
7 49 343 2401 16807 117649 823543 5764801 40353607
8 64 512 4096 32768 262144 2097152 16777216 134217728
9 81 729 6561 59049 531441 4782969 43046721 387420489
@osak
osak / aojva_c++11.user.js
Created November 15, 2013 08:20
Virtual ArenaでもC++11が使いたい!
// ==UserScript==
// @name Virtual Arena C++11 Support
// @namespace http://www.osak.jp/
// @description Add C++ in language selection box
// @include http://rhodon.u-aizu.ac.jp:8080/arena/room.jsp?id=*
// @version 1.0
// @grant none
// ==/UserScript==
function addCpp11() {
#!/usr/bin/env ruby
require 'MeCab'
#GC.disable
loop do
node = ::MeCab::Tagger.new.parseToNode("たいたいたい~w")
while node
unless node.surface.empty?
puts "#{node.surface}"
--- PKGBUILD.old 2012-02-27 01:22:13.000000000 +0900
+++ PKGBUILD 2013-05-03 21:52:16.117789494 +0900
@@ -1,20 +1,20 @@
# Contributor: Simon Lackerbauer <calypso@nopm.net>
pkgname=mecab
-pkgver=0.993
+pkgver=0.996
pkgrel=1
pkgdesc="Morphological Analysis Tool"
arch=('i686' 'x86_64')
#define _GLIBCXX_DEBUG
#include <iostream>
#include <string>
using namespace std;
void init() {}
int main() {
import Database.HDBC
import Database.HDBC.MySQL as MySQL
-- Test code based on a stackoverflow question:
-- http://stackoverflow.com/questions/15982588/hdbc-odbc-mysql-query-only-fails-when-compiled
-- Original code is here:
-- http://pastebin.com/9vrStfs7
-- Test Environments:
-- CPU: Core i7-3770
-- OS: Linux 3.8.5
public class Main {
public static void main(String[] args) {
System.out.println("hoge".indexOf(' '));
String str = "hoge fuga";
System.out.println(str.indexOf(' '));
}
}
Compiled from "A.java"
public class A {
public A();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
public static void main(java.lang.String[]);
Code:
Compiled from "A.java"
public class A {
public A();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
public static void main(java.lang.String[]);
Code: