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
public class Response : IDisposable | |
{ | |
#if WIN_RT | |
public Response(HttpResponseMessage source) | |
#else | |
public Response(HttpWebResponse source) | |
#endif | |
{ | |
this.Source = source; | |
this.StatusCode = (int)source.StatusCode; |
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
//Upload | |
await Task.WhenAll( | |
t.Media.UploadAsync(media => new FileInfo(@"E:\Dropbox-azyobuzin\Dropbox\Camera Uploads\2014-04-03 01.07.03.jpg")), | |
t.Media.UploadAsync(media => new FileInfo(@"E:\Dropbox-azyobuzin\Dropbox\Camera Uploads\2014-05-15 18.39.29.jpg")) | |
).Dump(); | |
//Tweet | |
t.Statuses.Update(status => "複数画像投稿動くかな?", media_ids => "472628999743893505,472628999349633024").Dump(); |
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 net.azyobuzi.javassist; | |
/** | |
* Created by azyobuzin on 14/06/07. | |
*/ | |
import javassist.*; | |
import javassist.bytecode.*; | |
import javassist.compiler.*; | |
import javassist.compiler.ast.*; |
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
using System; | |
namespace SwitchTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var a = "a"; | |
switch (a[0]) |
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
using System; | |
namespace SwitchTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var a = "a"; | |
switch (a[0]) |
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 main | |
import ( | |
"bytes" | |
"crypto/hmac" | |
"crypto/sha1" | |
"encoding/base64" | |
"errors" | |
"fmt" | |
"io" |
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 main | |
import ( | |
"bytes" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"regexp" |
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 main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
"os/exec" | |
"time" | |
) |
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 main | |
import ( | |
"fmt" | |
"flag" | |
) | |
func main() { | |
// 1. 存在するフラグを宣言する | |
// 「-m」ってフラグがあるよ!パースしたら msg って変数に入れてね! |
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 main | |
import ( | |
"fmt" | |
"flag" | |
) | |
func main() { | |
var msg string | |
flag.StringVar(&msg, "m", "hi", "message") |