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
require 'rubygems' | |
require 'uri' | |
gem 'addressable' | |
require 'addressable/uri' | |
require 'net/http' | |
class Net::HTTPGenericRequest | |
def initialize(m, reqbody, resbody, uri_or_path, initheader = nil) | |
@method = m | |
@request_has_body = reqbody |
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
gistup |
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
Test message |
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 a = function(){/* | |
<!doctype html> | |
<html> | |
<body> | |
<h1>Hello world!</h1> | |
</body> | |
</html> | |
*/}; | |
a |
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
# | |
# Be sure to run `pod spec lint NCMB.podspec' to ensure this is a | |
# valid spec and to remove all comments including this before submitting the spec. | |
# | |
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html | |
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ | |
# | |
Pod::Spec.new do |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
# | |
# Be sure to run `pod spec lint NCMB.podspec' to ensure this is a | |
# valid spec and to remove all comments including this before submitting the spec. | |
# | |
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html | |
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ | |
# | |
Pod::Spec.new do |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
# -*- coding: utf-8 -*- | |
require 'time' | |
require 'openssl' | |
require 'Base64' | |
require "net/http" | |
require "uri" | |
APPLICATION_KEY = 'your_application_key' | |
CLIENT_KEY = 'client_key' | |
DOMAIN = "mb.api.cloud.nifty.com" |
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
# -*- coding: utf-8 -*- | |
require 'time' | |
require 'openssl' | |
require 'Base64' | |
require "net/http" | |
require "uri" | |
APPLICATION_KEY = 'your_application_key' | |
CLIENT_KEY = 'client_key' | |
DOMAIN = "mb.api.cloud.nifty.com" |
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
openssl pkcs12 -in ~/Downloads/push_develop.p12 -out ~/Downloads/server_certificates_sandbox.pem -nodes -clcerts |
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
require 'octokit' # gem install octokit | |
token = 'YOUR_TOKEN' | |
repo = "YOUR_NAME/YOUR_OLD_REPOSITORY_NAME" | |
new_repo = "YOUR_NAME/YOUR_NEW_REPOSITORY_NAME" | |
client = Octokit::Client.new(:access_token => token) | |
labels = {} | |
issues = client.issues(repo, :per_page => 100) | |
issues.each_with_index do |issue, i| | |
issue.labels.each do |label| |
OlderNewer