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
userCustom.onReady = function() { | |
var ace = {} | |
ace.require = require | |
ace.define = define | |
ace.require(["ace/lib/net"], function(acenet) { | |
acenet.loadScript("//cdn.jsdelivr.net/ace/1.1.01/min/keybinding-vim.js", function() { | |
e = document.querySelector(".ace_editor").env.editor | |
ace.require(["ace/keyboard/vim"], function(acevim) { | |
e.setKeyboardHandler(acevim.handler); |
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
export POW_TIMEOUT=300 | |
export POW_WORKERS=3 |
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
<li> | |
<%= project.name %> | |
<ul> | |
<%= render project.tasks %> | |
</ul> | |
</li> |
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
it "re-renders the 'new' template" do | |
# Trigger the behavior that occurs when invalid params are submitted | |
Journal.any_instance.stub(:save).and_return(false) | |
post :create, {:journal => { "title" => "invalid title" }}, valid_session | |
response.should render_template(:new) | |
end | |
it "re-renders the 'edit' template" do | |
journal = Journal.create! valid_attributes | |
# Trigger the behavior that occurs when invalid params are submitted |
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
package edu; | |
public class Kadai3 { | |
public static void main(String[] args) { | |
int origin[][] = new int[][] {{ 1, 2, 3 }, { 4, 5, 6 }}; | |
printArray("変換前", origin); | |
int toSize1[] = new int[] {3, 2}; | |
int toArray1[][] = convert(origin, toSize1); |
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
'atom-workspace atom-text-editor:not(.mini)': | |
'ctrl-cmd-[': 'editor:fold-current-row' | |
'ctrl-cmd-]': 'editor:unfold-current-row' | |
'.editor.vim-mode:not(.insert-mode)': | |
'z c': 'editor:fold-current-row' | |
'z C': 'editor:fold-all' | |
'z o': 'editor:unfold-current-row' | |
'z O': 'editor:unfold-all' | |
'.editor': |
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
brew install reattach-to-user-namespace |
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
Benchmark Run: Fri Nov 28 2014 20:13:53 - 20:42:07 | |
32 CPUs in system; running 1 parallel copy of tests | |
Dhrystone 2 using register variables 33916956.0 lps (10.0 s, 7 samples) | |
Double-Precision Whetstone 4419.0 MWIPS (9.8 s, 7 samples) | |
Execl Throughput 2832.8 lps (29.7 s, 2 samples) | |
File Copy 1024 bufsize 2000 maxblocks 898613.6 KBps (30.0 s, 2 samples) | |
File Copy 256 bufsize 500 maxblocks 248292.9 KBps (30.0 s, 2 samples) | |
File Copy 4096 bufsize 8000 maxblocks 1925824.9 KBps (30.0 s, 2 samples) | |
Pipe Throughput 1206604.8 lps (10.0 s, 7 samples) |
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
# model | |
class Group | |
has_many :users | |
end | |
class User | |
belongs_to :group | |
validates :group_id, presence: true | |
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
... | |
sudo: false | |
cache: bundler | |
... |