Skip to content

Instantly share code, notes, and snippets.

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

Suguru Murakami sugumura

🏠
Working from home
View GitHub Profile
@sugumura
sugumura / 0_reuse_code.js
Created July 31, 2014 16:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sugumura
sugumura / A.java
Created October 1, 2011 11:10
Google Code Jam 2011 A
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
public class A {
@sugumura
sugumura / main.m
Created May 9, 2013 13:15
iOSのコールスタックを表示するためのmainファイル。毎度見つけるのが面倒なのでメモっておく。
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal;
@try {
retVal = UIApplicationMain(argc, argv, nil, @"AppController");
} @catch (NSException *exception) {
NSLog(@"%@", [exception callStackSymbols]);
@sugumura
sugumura / file_uploader.js
Last active March 20, 2016 06:26
Cordova上でAngularJSから画像ををform-dataでPOSTする
/**
* require cordova-plugin-file ($cordovaFile)
*/
angular.module('app')
.factory('FileUploader', ['$q', '$http', '$cordovaFile',function ($q, $http, $cordovaFile) {
return {
fileUpload: function (path, fileName) {
var self = this;
var fd = new FormData();
@sugumura
sugumura / 00_note.md
Last active November 2, 2016 14:51
8月24日に行われた「javascript勉強会@未来会議室」でのノートです。 http://otona.connpass.com/event/37732/

2016年8月24日

http://otona.connpass.com/event/37732/

プログラムとは

コンピュータはパソコンにしてもらうための言葉
インターネットやパソコン、スマートフォンなどで動くもの
コンピュータでできることはプログラムでなんでもできる!

コンピュータとは

@sugumura
sugumura / 00_note.md
Created September 21, 2016 12:05
第2回javascript勉強会@未来会議室(プログラミング超入門) http://otona.connpass.com/event/39886/
@sugumura
sugumura / 2016-10-19-javascript.md
Last active November 2, 2016 14:51
第3回Javascript勉強会@未来会議室(プログラミング超入門) http://otona.connpass.com/event/41816/

2016/10/19

Javascript勉強会第三回

アルゴリズム

アルゴリズムの活用
コンピュータになんらかの手続きをし、問題を解決する
多くの場合繰り返し処理を含む

@sugumura
sugumura / 2016-11-16-javascript.md
Created November 16, 2016 11:55
第4回Javascript勉強会@未来会議室(プログラミング超入門) http://otona.connpass.com/event/44234/

第4回Javascript勉強会@未来会議室(プログラミング超入門)

http://otona.connpass.com/event/44234/

データ構造

データとは何か

コンピュータで表現される何らかの情報

@sugumura
sugumura / aws_elastic_beanstalk.md
Created June 7, 2017 05:33
Elastic Beanstalkで新しいアカウントで環境を作る場合

create new profile

$ brew update
$ brew upgrade aws-cli aws-elasticbeanstalk

$ aws configure --profile [profile-name]
# add setting ~/.aws/[config/credentials]

$ eb init --profile [profile-name]
@sugumura
sugumura / README.md
Last active June 7, 2017 08:20
MySQL PostgreSQL on docker

please download files on your computer.

# example use postgresql
$ cd your_project_path
$ mv docker-compose-postgresql.yml docker-compose.yml
$ docker-compose up -d

# terminate
$ docker-compose down