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
| // Make a custom Gson instance, with a custom TypeAdapter for each wrapper object. | |
| // In this instance we only have RealmList<RealmInt> as a a wrapper for RealmList<Integer> | |
| Type token = new TypeToken<RealmList<RealmInt>>(){}.getType(); | |
| Gson gson = new GsonBuilder() | |
| .setExclusionStrategies(new ExclusionStrategy() { | |
| @Override | |
| public boolean shouldSkipField(FieldAttributes f) { | |
| return f.getDeclaringClass().equals(RealmObject.class); | |
| } |
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
| # 略... | |
| # formatter | |
| require "airbrussh/capistrano" | |
| require_relative 'lib/capistrano/airbrussh.rb' | |
| # Load custom tasks from `lib/capistrano/tasks` if you have any defined | |
| Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } |
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
| #!/usr/bin/env ruby | |
| require 'sinatra/base' | |
| require 'json' | |
| require 'stripe_mock' | |
| # Mount fake Sinatra Stripe Server to Capybara | |
| # | |
| # Example: | |
| # | |
| # feature 'Subscribe' do |
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
| task("pre:compile", function(event,logger) { | |
| var wrench = require("wrench"), | |
| fs = require("fs"), | |
| controllers_root = event.dir.controllers, | |
| path = require("path"); | |
| if (event.alloyConfig.deployType === 'production') { | |
| return; | |
| } |
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
| /* | |
| WildText CommonJS module for Appcelerator Titanium | |
| Create dynamic gradient filled text in your iOS Applications using this simple module. | |
| @params : text - String. The text for your label | |
| font - Font. Specify the font attributes for the label (defaults to standard size, weight and family), | |
| backgroundGradient - BackgroundGradient. Specify your backgroundGradient object (defaults to White to Black linear gradient), | |
| Top - Integer. Top property for your label, | |
| Left - Integer. Left Property for your Label, |