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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } | |
gem 'jwt' |
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
package server | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"strings" | |
"sync" | |
"time" | |
) |
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
diff -urN apimode/.gitignore normal/.gitignore | |
--- apimode/.gitignore 2017-12-13 18:38:46.000000000 +0900 | |
+++ normal/.gitignore 2017-12-13 18:38:57.000000000 +0900 | |
@@ -17,4 +17,7 @@ | |
!/log/.keep | |
!/tmp/.keep | |
+/node_modules | |
+/yarn-error.log | |
+ |
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
{ | |
"formattingOptions": { | |
"NewLinesForBracesInTypes": false, | |
"NewLinesForBracesInMethods": false, | |
"NewLinesForBracesInProperties": false, | |
"NewLinesForBracesInAccessors": false, | |
"NewLinesForBracesInAnonymousMethods": false, | |
"NewLinesForBracesInControlBlocks": false, | |
"NewLinesForBracesInAnonymousTypes": false, | |
"NewLinesForBracesInObjectCollectionArrayInitializers": false, |
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
curl -L git.io/nodebrew | perl - setup | |
# export PATH=$HOME/.nodebrew/current/bin:$PATH を .bashrc か .zshrc に書く | |
nodebrew install-binary v0.12.7 | |
nodebrew use v0.12.7 | |
npm install -g browser-sync aglio drakov | |
aglio -i docs/api/index.apib -s -p 3030 |
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
group :development do | |
gem 'spring' | |
gem 'foreman', require: false | |
gem 'guard-minitest' | |
gem 'view_source_map' | |
gem 'quiet_assets' | |
gem 'binding_of_caller' | |
gem 'better_errors' | |
gem 'bullet' |
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
// http://stackoverflow.com/a/9084784 | |
#import <Foundation/Foundation.h> | |
@interface NSData (NSData_Conversion) | |
#pragma mark - String Conversion | |
- (NSString *)hexadecimalString; | |
@end |
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
# usage | |
# $ ruby sougo_follow.rb satococoa | |
# follower_ids も friend_ids も rate_limit が厳しいので注意 | |
require 'bundler/setup' | |
Bundler.require | |
screen_name = ARGV[0] | |
client = Twitter::REST::Client.new do |config| |
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
************************************************************************ | |
IMPORTANT! Nokogiri builds and uses a packaged version of libxslt. | |
If this is a concern for you and you want to use the system library | |
instead, abort this installation process and reinstall nokogiri as | |
follows: | |
gem install nokogiri -- --use-system-libraries | |
If you are using Bundler, tell it to use the option: |
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
module TagList | |
private | |
def TagList | |
'hoge' | |
end | |
end | |
class Hoge | |
include TagList | |
def some_method |
NewerOlder