This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ date | |
Tue Jul 11 01:39:04 UTC 2017 | |
$ sudo service vboxadd-service stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_map = HashDict.new | |
other_map = HashDict.put(my_map, :my_age, 39) | |
IO.inspect(my_map) | |
#HashDict<[]> # my_map has not been changed | |
IO.inspect(other_map) | |
#HashDict<[my_age: 39]> # other_map has the new values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --pretty=oneline --name-only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule EightBall.CLI do | |
def main(args) do | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env elixir | |
System.argv() | |
|> Enum.each(fn(x) -> IO.puts x end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/gawk -f | |
/<page>/ { | |
flg=1; | |
} | |
/<\/page>/ { | |
flg=0; | |
gsub(/^\s+/,"",s); | |
gsub(/\s+/," ",s); | |
print s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table_create Wiki TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto | |
column_create --table Wiki --name content --type LongText | |
table_create Term TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto | |
column_create Term wiki_content COLUMN_INDEX|WITH_POSITION Wiki content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function convert($number) { | |
$array1 = array('兆', '億', '万', '千', '百', '十'); | |
$array2 = array('', '一', '二', '三', '四', '五', '六', '七', '八', '九'); | |
$chou = (int)($number / 1000000000000); | |
$rest = $number % 1000000000000; | |
$oku = (int)($rest / 100000000); | |
$rest = $rest % 100000000; | |
$man = (int)($rest / 10000); | |
$rest = $rest % 10000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ls -l | python3.3 -c ' | |
import sys | |
import re | |
for i in sys.stdin: | |
line = re.compile(r"\s+").split(i.strip()) | |
if len(line) == 9: | |
print(line[8]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cgilib | |
import System._ | |
import scala.io.Source._ | |
import scala.collection.JavaConversions._ | |
object CGI { | |
val GET = "GET" | |
val POST = "POST" | |
def envInfo():Map[String, String] = {getenv().toMap} | |
def params(method:String):Map[String, String] = { | |
val in = method match { |
NewerOlder