Skip to content

Instantly share code, notes, and snippets.

View dora-gt's full-sized avatar

Taiga Nakayama dora-gt

View GitHub Profile
@dora-gt
dora-gt / README.markdown
Created September 16, 2011 16:00
How to install MongoDB 2.0 on Mac OS X (>= Leopard)

How to install MongoDB 2.0 on Mac OS X (>= Leopard)

Procedure

The whole install procedure is like the following.
You would have to do 7 steps.

  1. Download the latest tar file, and expand it.
  2. Move it to /usr/local/, and make a symbolic link to the folder.
  3. Add path to MongoDB binaries.
  4. Make an user that "mongod" runs on, and group that owns the user.
@dora-gt
dora-gt / StringInterpolation.dart
Created October 13, 2011 17:10
samples of String interpolation with ${expression}
main () {
var age = 21;
var name = {"first":"taro","last":"yamada"};
print ("Happy birthday, ${name['first'].toUpperCase()}, you're ${age++} today.");
}
@dora-gt
dora-gt / fizzbuzz.dart
Created October 14, 2011 07:42 — forked from VoQn/fizzbuzz.dart
Google が Dart 公開したから早速 FizzBuzz
main () {
var tmp = null;
for (var i=0;++i<101;) {
print ((tmp = (i%3?'':'Fizz')+(i%5?'':'Buzz')) == '' ? i : tmp);
}
}
@dora-gt
dora-gt / mac_commands.md
Created October 14, 2011 17:46
Useful commands on Mac OS X

Useful commands on Mac OS X

newsyslog

rotates log files (this is not only for Mac OS X).

open

opens file(s) or directory(es) on Finder. You can even specify the application with which you want to open the file.

@dora-gt
dora-gt / comment.md
Created November 5, 2011 13:49
-> is omittable in Perl in some situations

The output may be like this:

value_2_1
value_2_1

It is because -> is omittable when it's between [ ] or { }.

@dora-gt
dora-gt / Readme.md
Created November 21, 2011 04:01
How to make partial reference in Perl.

Perl での部分参照の作り方。

@dora-gt
dora-gt / readme.en.md
Created January 3, 2012 11:35
How to make a new window in Terminal with AppleScript

How to make a new window in Terminal with AppleScript

Just do like this:

do script ""
@dora-gt
dora-gt / SonarLint.Runner.sh
Last active July 8, 2016 08:17
Run SonarLint.Runner.exe on mono
#!/bin/sh
# may be /usr/local/bin/mono or /Library/Frameworks/Mono.framework/Commands/mono also.
/Applications/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/Current/bin/mono SonarLint.Runner.exe
@dora-gt
dora-gt / Xamarin.Forms 初心者が知っておくべき事.md
Last active June 5, 2017 12:46
Xamarin.Forms 初心者が知っておくべき事
  • xaml には各プラットフォームに依存したタグを書く事も可能という事
    • 名前空間を定義する時に assembly と targetPlatform を指定する
  • DependencyService というものがあるという事
  • ネイティブの UI 要素は NativeViewWrapper を使う事で Xamarin.Forms.View として扱う事が可能

参考資料

絶賛編集中です

@dora-gt
dora-gt / gist:9a1d3356dcc82f59db4d6b30d5bc66d1
Last active June 23, 2017 09:25
C# の非同期プログラミング
https://msdn.microsoft.com/ja-jp/magazine/jj991977.aspx
https://ufcpp.wordpress.com/2012/04/26/%E9%9D%9E%E5%90%8C%E6%9C%9F%E5%87%A6%E7%90%86%E3%81%A8%E3%83%87%E3%82%A3%E3%82%B9%E3%83%91%E3%83%83%E3%83%81%E3%83%A3%E3%83%BC/
https://www.slideshare.net/ufcpp/an-other-world-awaits-you?ref=https://ufcpp.wordpress.com/2012/11/12/asyncawait%E3%81%A8%E5%90%8C%E6%99%82%E5%AE%9F%E8%A1%8C%E5%88%B6%E5%BE%A1/
https://www.slideshare.net/neuecc/httpclient
https://www.infoq.com/jp/articles/Async-API-Design