[ create a new paste ] login | about

fgtrjhyu

Name: John Doe
Email:
Site/Blog:
Location:
Default language: Plain Text
Favorite languages: Java4
About:

Saved pastes by fgtrjhyu:

Python, pasted on Feb 6:
1
2
3
4
#!env python

from __future__ import print_function
from random import randint
...
view (35 lines, 4 lines of output)
Python, pasted on Feb 5:
1
2
3
4
5
from random import randint

class Any:
  def __init__(self, value):
    self.value = value
...
view (35 lines, 2 lines of output)
Python, pasted on Feb 5:
1
2
3
4
5
from random import randint

class Any:
  def __init__(self, value):
    self.value = value
...
view (35 lines, 2 lines of output)
Plain Text, pasted on Dec 22:
1
2
3
4
5
#! env zsh

rb() {
cat<<EOF
fib = Fiber.new do
...
view (44 lines)
Plain Text, pasted on Dec 22:
1
2
3
4
5
cat<<EOF
fib = coroutine.create(function ()
       a, b, c = 0, 1, true
       while c do
         c = coroutine.yield(a)
...
view (19 lines)
Plain Text, pasted on Dec 22:
1
2
3
4
5
#!env zsh

rb() {
cat<<EOF

...
view (42 lines)
Python, pasted on Apr 30:
1
2
3
4
5
#SConstruct script
#Building production object
#Building test object
#Running test
import os
...
view (111 lines)
Plain Text, pasted on Mar 19:
1
2
3
4
5
(use '[clojure.contrib.prxml])

(defn makeList [] (list
  ["key1" "value1"]
  ["key2" "value2"]
...
view (33 lines)
Plain Text, pasted on Mar 19:
1
2
3
4
5
(use '[clojure.contrib.prxml])

(defn makeList [] (list
  ["key1" "value1"]
  ["key2" "value2"]
...
view (30 lines)
Plain Text, pasted on Mar 18:
1
2
3
4
5
class AbstractKeyValue {
  def key
  def value
  AbstractKeyValue(key, value){
   this.key = key
...
view (63 lines)
Plain Text, pasted on Jun 18:
1
2
3
4
5
;file usejna.clj
;Class/forNameの理由
;コンパイル後までfoo.Bazは有効ではないため、
;リーダーが読み込む時点ではfoo.Bazというクラスリテラルは無効である
;REPLでもコンパイルしてから実行すること
...
view (23 lines)
Plain Text, pasted on Jun 18:
1
2
3
4
5
;file useswing.clj
;コンパイルできる
;Javaコマンドで実行できる
(ns useswing
  (:gen-class))
...
view (37 lines)
Plain Text, pasted on Jun 16:
1
2
3
4
5
;DO NOT write like this
;procedual programming
(def x 3)

(defn foo [y]
...
view (12 lines)