This file contains hidden or 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
#!/bin/sh | |
/usr/bin/env ruby $PWD/.git/hooks/prevent-commit-hook.rb |
This file contains hidden or 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
var d : [String:AnyObject] = ["Hoge":"Fuga", "Foo":"Bar"] | |
if let s = d["Hoge"] as? String { | |
println(s) | |
} | |
if let s = d["Hog"] as? String { | |
println(s) | |
} |
This file contains hidden or 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
ffmpeg -y -i 4.7inch.mp4 -vf scale=640:1136 4.0inch.mp4 |
This file contains hidden or 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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("www.ted.com") { | |
.talk-transcript__para__time { | |
display: none; | |
} | |
} |
This file contains hidden or 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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using BestHTTP; | |
This file contains hidden or 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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("wri.pe") { | |
#edit-page-main-pane { | |
right: 50% !important; | |
} | |
#edit-page-main-pane #edit-page-pane-handle { | |
display: none; | |
} | |
#edit-page-container #edit-page-sidebar-pane { |
This file contains hidden or 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
private async Task<Message> GetItemIdFromQueue() | |
{ | |
AmazonSQSClient client = new AmazonSQSClient( ACCESS_KEY, SECRET_KEY, Amazon.RegionEndpoint.APNortheast1 ); | |
ReceiveMessageRequest req = new ReceiveMessageRequest(); | |
req.MaxNumberOfMessages = 1; | |
req.QueueUrl = QUEUE_URL; | |
ReceiveMessageResponse res = await client.ReceiveMessageAsync( req ); // この行 | |
if ( res.HttpStatusCode != System.Net.HttpStatusCode.OK ) { | |
LogError( res.ToString() ); |
This file contains hidden or 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
Pod::Spec.new do |s| | |
s.name = 'Parse' | |
s.version = '1.2.19' | |
s.license = { :type => 'Commercial', :text => 'See https://parse.com/about/terms' } | |
s.platform = :ios, '5.0' | |
s.summary = 'Parse iOS SDK for developing apps using the Parse cloud app platform.' | |
s.description = 'The Parse iOS SDK enables access to the parse.com cloud app platform. Requires an account with parse.com. To integrate after adding this pod, continue with step 9 in the QuickStart: (https://parse.com/apps/quickstart).' | |
s.homepage = 'http://parse.com' | |
s.author = 'Parse' | |
s.source = { :http => "http://parse-ios.s3.amazonaws.com/66888d7d226541c93c33aa76e5f8e086/parse-library-#{s.version}.zip" } |
This file contains hidden or 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
% rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb | |
create | |
create README.rdoc | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/assets/javascripts/application.js | |
create app/assets/stylesheets/application.css |
This file contains hidden or 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 MainActivity extends ActionBarActivity { | |
public Tasks service; | |
private static final int REQUEST_ACCOUNT_PICKER = 2; | |
GoogleAccountCredential mCredential; | |
private static String PREF_ACCOUNT_NAME = "accountName"; | |
static final String TAG = "TasksSample"; | |
final HttpTransport mHttpTransport = AndroidHttp.newCompatibleTransport(); | |
final JsonFactory mJsonFactory = GsonFactory.getDefaultInstance(); |