Skip to content

Instantly share code, notes, and snippets.

View nokok's full-sized avatar
💤

Noriyuki Kazusawa nokok

💤
View GitHub Profile
@nokok
nokok / NullPo.java
Created October 23, 2013 15:40
話題のぬるぽ
import java.util.*;
public class NullPo{
static String out = "";
public static void main(String[] args){
char[] base = {'n','u','l','l','p','o'};
while(isEnd()){
char c = base[new Random().nextInt(5)];
System.out.print(c);
@nokok
nokok / bighoge.txt
Created November 4, 2013 12:49
HOGE
#### ####
#### ####
###########################################################################################
###########################################################################################
###########################################################################################
###########################################################################################
###########################################################################################
###########################################################################################
##################
#しゃうさぎ氏雑コラグランプリ
____
/ \
@nokok
nokok / Main.java
Last active August 29, 2015 13:56
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class Main {
object CodeIQ_Collatz {
val d = (n: Int) => n / 2
val m = (n: Int) => n * 3 + 1
def ev(n: Int) =
if (n % 2 == 0)
d(n)
else
m(n)
import java.util.function.IntFunction;
import java.util.stream.IntStream;
public class CodeIQ_Collatz {
static IntFunction<Integer> d = n -> n / 2;
static IntFunction<Integer> m = n -> n * 3 + 1;
static IntFunction<Integer> ev = n -> {
if (n % 2 == 0)
return d.apply(n);
### AppCode ### | ### https://raw.github.com/github/gitignore/master/Global/arc
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCod <
<
## Directory-based project format <
.idea/ <
# if you remove the above rule, at least ignore user-specific <
# .idea/workspace.xml <
# .idea/tasks.xml <
# and these sensitive or high-churn files: <
# .idea/dataSources.ids <
@nokok
nokok / Hoge.krf
Last active August 29, 2015 14:11
type HogeType : SuperType <- Interface1 Interface2 Interface3
#private
def zero : Int = 0
def addOne : Int -> Int = (x) -> x + 1
javascript:(function(){function f(t){var q=t.getElementsByTagName("tr"),n,m,s,r,u,h,p=[],o=q.length,g;for(n=0;n<o;n++){p[n]=p[n]||[];u=q.item(n).cells;g=u.length;for(m=0;m<g;m++){h=u.item(m);r=h.innerHTML.replace(/<.*?>/mg,"").replace(/\t/g," ").replace(/(^\s+)|(\s+$)/g,"").replace(/\"/,'""');s=0;while(p[n][m+s]!=null){s++}p[n][m+s]=r;for(k=1;k<h.colSpan;k++){p[n][m+s+k]=r}for(l=1;l<h.rowSpan;l++){p[n+l]=p[n+l]||[];for(k=0;k<h.colSpan;k++){p[n+l][m+s+k]=r}}}}return e(p)}function e(o){var m=o.length,n=o[0].length,h="",j,i,g;for(i=0;i<m;i++){j="";for(g=0;g<n;g++){j+='\t"'+o[i][g]+'"'}if(j!=""){j=j.substring(1,j.length)}h+=j+"\n"}return h}var d=function(h){var g=document.createElement("textarea");g.value=f(this);g.style.width="80%";g.style.height="240px";g.originalTable=this;this.tx=g;this.parentNode.replaceChild(this.tx,this);g.addEventListener("dblclick",function(i){this.parentNode.replaceChild(this.originalTable,this)},false)},c=document.getElementsByTagName("table"),b=0,a=c.length;for(;b<a;b++){if(c[b].getEl
SL(1) SL(1)
NAME
sl - cure your bad habit of mistyping
SYNOPSIS
sl [ -alFc ]
DESCRIPTION
sl is a highly advanced animation program for curing your bad habit of mistyping.