Skip to content

Instantly share code, notes, and snippets.

View memememomo's full-sized avatar
🏠
Working from home

Uchiko memememomo

🏠
Working from home
View GitHub Profile
package main
import (
"fmt"
"github.com/dghubble/go-twitter/twitter"
"github.com/dghubble/oauth1"
"log"
"os"
"regexp"
"sort"
@memememomo
memememomo / credentials
Last active August 12, 2018 07:32
DynamoDBlocalでDynamoDBをひとまず触れるようにする ref: https://qiita.com/uchiko/items/b419d512f08279ab0f9c
[dummy]
aws_access_key_id = dummy
aws_secret_access_key = dummy
using System.Linq;
public class Hello{
public static void Main(){
var n = int.Parse(System.Console.ReadLine());
var a = System.Console.ReadLine().Split(' ');
for (var i=n-1; i>=0; i--) {
System.Console.Write(a[i]);
if (i-1 >= 0) {
@memememomo
memememomo / CachingLoadExample.cs
Last active February 24, 2016 10:17
AssetBundleのサンプルを作成した時のメモ ref: http://qiita.com/uchiko/items/91de62f4cc2d243b479f
using UnityEngine;
using System.Collections;
public class CachingLoadExample : MonoBehaviour
{
string bundleURL = "http://localhost:9000/assets/StreamingAssets/sprites";
string assetName = "Test";
int version = 0;
void Start()
@memememomo
memememomo / file1.txt
Created July 14, 2015 14:59
「value at is not a member of controllers.ReverseAssets」というエラーが出た ref: http://qiita.com/uchiko/items/150e429935357833c099
value at is not a member of controllers.ReverseAssets
@memememomo
memememomo / Downloader.scala
Created June 18, 2015 14:02
画像ファイルをダウンロードして保存する ref: http://qiita.com/uchiko/items/105829eb9b91843c0077
import java.io.{FileOutputStream, BufferedOutputStream}
import java.net.URL
import scala.language.postfixOps
object Main {
def main(args: Array[String]) = {
val image_url = "http://pic.prepics-cdn.com/fuualbum0408/19574639.jpeg"
val file_name = "hato.jpg"
download(image_url, file_name)
}
# prefixキーをC-tに変更する
set-option -g prefix C-t
# C-bのキーバインドを解除する
unbind C-b
# マウス
set-option -g mouse on
# ウィンドウ履歴の最大行数
@memememomo
memememomo / file2.php
Created May 11, 2015 07:08
コントローラのユニットテストでHTMLを描画しようとするとAssetファイルが正常の読み込まれない ref: http://qiita.com/uchiko/items/2461783d60441012423b
<?php
return array(
'paths' => [DOCROOT.'public/assets/']
);
@memememomo
memememomo / gist:c2c774bd7e8854a06400
Created May 11, 2015 03:02
generate-githubflow-scripts.pl
#------------------------------
# githubflowのショートカットシェルスクリプトを生成する
#------------------------------
use strict;
use warnings;
my $dir = $ARGV[0];
if (!$dir) {
#------------------------------
# gitflowのショートカットシェルスクリプトを生成する
#------------------------------
use strict;
use warnings;
my $dir = $ARGV[0];
if (!$dir) {