- うかつにモナドと言うと刺される
「jQueryはモナドである」と主張したけど、証明はなかったのですぐに刺された。
#! /usr/bin/ruby -Ku | |
$udid = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' | |
HOST = 'yukeyusha4iphone.appspot.com' | |
YYVER = '3.0.1' | |
require 'net/https' | |
require 'rubygems' | |
require 'json' |
#-*- coding: utf-8 -*- | |
Plugin.create :gray_protected_users do | |
UserConfig[:protected_users_background_color] ||= [0xcccc,0xcccc,0xcccc] | |
filter_message_background_color do | mp, array | | |
if mp.to_message.user[:protected] == true | |
array = UserConfig[:protected_users_background_color] | |
end | |
[mp, array] | |
end |
-- オセロ | |
--import Data.Functor | |
import Maybe | |
import Control.Monad | |
data Color = Black | White deriving (Eq, Show, Read) | |
type Cell = Maybe Color | |
type Board = [[ Cell ]] |
\abf.fab | |
= \abf.(I f)(K (ab)f) | |
= \ab.SI(K(ab)) | |
= \ab.(K(SI)(ab))(K(ab)) | |
= \ab.S(K(SI))K(ab) | |
= \ab.(K(S(K(SI))K) b)(a b) | |
= \ab.S(K(S(K(SI))K))ab | |
= S(K(S(K(SI))K)) | |
module Main where | |
import Control.Monad | |
import Control.Monad.Free | |
import Prelude hiding (putChar, getChar) | |
import qualified System.IO as IO | |
import Test.QuickCheck | |
---------------------------------------------------------------- | |
-- Our DSL |
「jQueryはモナドである」と主張したけど、証明はなかったのですぐに刺された。
#-*- coding: utf-8 -*- | |
Plugin.create :aieeeee do | |
filter_gui_postbox_post do |gui_postbox| | |
Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text = "アイエエエエエ!#{' ' * rand(30)}" | |
[gui_postbox] | |
end | |
end |
# -*- coding:utf-8 -*- | |
from pymongo import MongoClient | |
client = MongoClient() | |
db = client.xvideos | |
def create_db(): | |
f = open('xvideos.com-db.csv') | |
for line in f: |
54.249.173.214
)にrootでログイン[root@ip-10-132-164-105 ~]# setenforce 0
#!/bin/bash | |
# Modified by Yu-Jie Lin for Bash from zsh version | |
ORG="$1" | |
if [[ ${ORG##*.} =~ JPG|jpg|JPEG|jpeg|GIF|gif|PNG|png ]]; then | |
CATWIDTH=$(tput cols) | |
SRC=$(mktemp).png |