Instantly share code, notes, and snippets.

View uuid64.go
package common
import (
"net"
"github.com/labstack/gommon/log"
"io"
"crypto/rand"
"time"
"sync/atomic"
"encoding/binary"
View test1.rs
fn main() {
println!("Hello, World");
println!("Hello, {subject}", subject = "Mr. Shin");
}
View test_dh.erl
test_dh() ->
DHParams = crypto:dh_generate_parameters(1024,2),
[ DH1, DH2 ] = DHParams,
%io:format("DHParams DH1(dh_generate_parameters(1024,2)) = ~p ~n",[bin2hex(DH1)]),
View KeyStoreHelper.java
/*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View gist:d2b9ac864addaa62de9b
url(v1,send_mail,json) ->
<<"https://sendgrid.com/api/mail.send.json">>.
url_encode(Data) ->
url_encode(Data,"").
url_encode([],Acc) ->
Acc;
url_encode([{Key,Value}|R],"") ->
View gist:54896699bf1f5aed926e
%%%-------------------------------------------------------------------
%%% @author 신원동 <wodshin@gmail.com>
%%% @copyright (C) 2014, 신원동
%%% @doc
%%%
%%% @end
%%% Created : 4 Dec 2014 by 신원동 <wodshin@gmail.com>
%%%-------------------------------------------------------------------
-module(m_google_storage).
View gist:2eb6998913b3b95454bc
%%%-------------------------------------------------------------------
%%% @author 신원동 <wodshin@gmail.coml>
%%% @copyright (C) 2014, 신원동
%%% @doc
%%%
%%% @end
%%% Created : 4 Dec 2014 by 신원동 <wodshin@gmail.com>
%%%-------------------------------------------------------------------
-module(m_oauth2).
View gist:3549659
[root@i-5921-31925-VM ~]# sudo rpm -Uvh riak-1.2.0-1.el6.x86_64.rpm
error: Failed dependencies:
libcrypto.so.10()(64bit) is needed by riak-1.2.0-1.el6.x86_64
libssl.so.10()(64bit) is needed by riak-1.2.0-1.el6.x86_64
libtinfo.so.5()(64bit) is needed by riak-1.2.0-1.el6.x86_64
rpmlib(FileDigests) <= 4.6.0-1 is needed by riak-1.2.0-1.el6.x86_64
rpmlib(PayloadIsXz) <= 5.2-1 is needed by riak-1.2.0-1.el6.x86_64
View gist:3496438
code:load_file(riak),
code:load_file(riak_core_util),
code:load_file(riak_client),