Skip to content

Instantly share code, notes, and snippets.

View ikr7's full-sized avatar
🅰️
rch Linux

ikr7

🅰️
rch Linux
View GitHub Profile
@shokai
shokai / ignore.sh
Created July 7, 2012 13:58
放送禁止用語リスト
curl http://monoroch.net/kinshi/kinshi.csv | nkf -u | grep '^"' | ruby -lane 'puts $_.split(/,/)[0].scan(/"(.+)"/)[0]' | sort | uniq
@japboy
japboy / jade-ftw.md
Last active October 23, 2023 11:18
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

@kitak
kitak / getRelativeTime.js
Created April 27, 2013 09:14
JSでお手軽に相対時刻を吐き出す
function getRelativeTime(baseDateStr, targetDateStr){
var baseDate = new Date(baseDateStr);
var targetDate = new Date(targetDateStr);
var elapsedTime = Math.ceil((baseDate.getTime() - targetDate.getTime())/1000);
var message = null;
// これ以下で一定時間未満のごとのメッセージの表示方法を条件分岐
@sasamijp
sasamijp / Penis.java
Created May 3, 2013 11:11
千本チンポ 夜に紛れ 君の膣に 届かないよ
public class Penis {
public static void main (String[] args) {
int n = 0;
while (n <= 1000) {
System.out.println("チンポ");
n++;
}
}
}
@oboenikui
oboenikui / Ohirune_Circle_Specification.md
Last active December 17, 2015 11:19
おひるねサークル仕様

##レベルについて
現在のレベルの変数をlevelとすると、次のレベルまでの総ポイント数(nextPoint)は
nextPoint = (level+1)*7*level/2+1;
で与えられます。何でこんな仕様にしたかはわかりません。遥か昔に忘れました。
つまり、例えば現在2Lvでおひるねポイントが9の場合は、(2+1)72/2+1=22なので、あと13ポイントで3Lvに見事レベルアップ、というわけです。

##おひるねできる時間と獲得ポイントについて

  • 寝る方
    最後に寝てから1時間以内の場合は、おひるねできません。働きましょう。ただし起きてからすぐ寝ることはできます。作者がそういう睡眠をよく取るからです。
@nk0t
nk0t / helloworld.asm
Created June 18, 2013 09:04
HelloWorld
BITS 32
mov eax, 4
mov ebx, 1
push 0x0a21646c
push 0x726f576f
push 0x6c6c6548
mov ecx, esp
mov edx, 12
int 0x80

#はるアイコンMOD鯖 ##現状 ###バージョン等

  • Minecraft1.6.2
  • port:25595

###前提MOD

###MODリスト初版作成 @lastarrow21 初期リスト

@sasamijp
sasamijp / bot.rb
Last active March 23, 2016 15:06
@sa2miのソースです
# -*- encoding: utf-8 -*-
require 'rubygems'
require 'tweetstream'
require 'twitter'
require 'prime'
require 'date'
require './key.rb'
Twitter.configure do |config|
config.consumer_key = Const::CONSUMER_KEY
@sasamijp
sasamijp / teraari.rb
Last active December 26, 2015 02:59
てらありw
# -*- encoding: utf-8 -*-
n = 0
input = gets.to_i
while n < input do
print "「"
print "てら"
n.times do
print "あり"
end
print "w」"
require "cgi"
Plugin.create(:mikutter_update_name) do
on_mention do |s, msgs|
msgs.each do |m|
if CGI.unescapeHTML(m.message.to_s) =~ /\A@#{Service.primary.user} update_name (.+)\z/
n = $1
(Service.primary/"account/update_profile").message(name: n)
Service.primary.post(message: ".@#{m.message.user} さんにより名前が #{n.inspect} に変更されました")
end