This file contains 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 | |
set -e | |
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | | |
while read path_key path | |
do | |
url_key=$(echo $path_key | sed 's/\.path/.url/') | |
url=$(git config -f .gitmodules --get "$url_key") | |
git submodule add $url $path |
This file contains 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 --git i/build_config.rb w/build_config.rb | |
index 7f52b5ee..c20be4c0 100644 | |
--- i/build_config.rb | |
+++ w/build_config.rb | |
@@ -22,6 +22,9 @@ MRuby::Build.new do |conf| | |
# conf.gem :github => 'iij/mruby-io' | |
# conf.gem :git => 'git@github.com:iij/mruby-io.git', :branch => 'master', :options => '-v' | |
+ conf.gem :github => 'iij/mruby-env' | |
+ conf.gem :github => 'mattn/mruby-curl' |
This file contains 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
/** | |
* Execute a Map/Reduce query against a MongoDb connection | |
* | |
* @param string $map The Javascript Map function code, or if $systemJs=true the stored map procedure | |
* @param string $reduce The optional reduce function code, or if $systemJs=true the stored reduce procedure | |
* @param boolean $systemJs If true, $map/$reduce will be considered stored procs in system.js | |
* | |
* @return object A result of the map/reduce query | |
*/ | |
public static function mapReduce($map, $reduce = null, $systemJs = false, $options = array()) { |
This file contains 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
<?php | |
namespace li3_omniauth; | |
class Consumer extends \lithium\core\StaticObject { | |
/** | |
* Holds an instance of the oauth service class | |
* | |
* @see \li3_oauth\extensions\services\Oauth |
This file contains 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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails' |
This file contains 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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'fog-aws' |
This file contains 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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails' |
This file contains 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
/** | |
* Unobtrusive scripting adapter for jQuery, lithified | |
* | |
* Requires jQuery 1.6.0 or later. | |
*/ | |
(function($, undefined) { | |
// Shorthand to make it a little easier to call public lithium functions from within lithium.js | |
var lithium; |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
text { | |
font: 10px sans-serif; | |
} | |
</style> | |
<body> |
This file contains 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
$(document).on('pjax:popstate ', function(event) { | |
if(event.direction == "back") { | |
console.log('executes before page-change'); | |
} | |
}); |
NewerOlder