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
javascript: | |
String.prototype.endsWith = function(suffix) { | |
return this.indexOf(suffix, this.length - suffix.length) !== -1; | |
}; | |
$('.file-header').each(function(index, value) { | |
var path = $(value).data('path'); | |
var ignores = ['.unity', '.meta', '.anim', '.controller', '.prefab', '.asset', '.mat', '.tpsheet']; | |
for (i = 0; i < ignores.length; i++) { |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Change Shift_Underscore(_) to Underscore(_)</name> | |
<identifier>private.change_shift_underscore_to_underscore</identifier> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::JIS_UNDERSCORE, VK_SHIFT, | |
KeyCode::JIS_UNDERSCORE, | |
</autogen> |
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
local function samplingFromMultinomialDistribution(probabilities) | |
local accumulateProbability = 0 | |
local accumulateProbabilities = {} | |
for i = 1, #probabilities do | |
accumulateProbability = accumulateProbability + probabilities[i] | |
table.insert(accumulateProbabilities, accumulateProbability) | |
end | |
local random = math.random() |
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
group :development do | |
gem 'i18n-tasks' | |
end |
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
table = {} | |
if not next(users) then | |
print("Table is empty.") | |
else | |
print("Table is not empty.") | |
end |
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
local GA = require ("GameAnalytics") |
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
true | |
false |
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
local debugInfo = debug.getinfo(1) | |
local fileName = debugInfo.source:match("[^/]*$") |
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
条件式 and 真の時の値 or 偽の時の値 |
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
$ rails new blog -m ~/template.rb | |
$ rails new blog -m http://example.com/template.rb |
NewerOlder