- Test
- Test2
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
p1.clearDrawminoes(); | |
for (Dom d : g.getHand(0).getDoms()) { | |
p1.addDrawmino(new Drawmino(d)); | |
} | |
p2.clearDrawminoes(); | |
for (Dom d : g.getHand(1).getDoms()) { | |
p2.addDrawmino(new Drawmino(d)); | |
} |
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
leftDrawmino size before add: 0 | |
addingLeftDrawmino: drawmino: 6, 6, flip: false | |
leftDrawmino size after add: 1 | |
Drawing board | |
# of left drawminoes: 1 | |
left drawmino: drawmino: 6, 6, flip: false | |
left, x: 256, y: 220, yflip: 191 | |
# of right drawminoes: 0 | |
Done drawing board |
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
(1..100).each do |i| | |
message = "" | |
message += "Fizz" if i % 3 == 0 | |
message += "Buzz" if i % 5 == 0 | |
message = i if message == "" | |
puts message | |
end |
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
class TestSwapBits { | |
public static String padLeft(String value, String padChar, int totalLength) { | |
StringBuilder sb = new StringBuilder(); | |
if (value.length() < totalLength) { | |
int paddingRequired = totalLength - value.length(); | |
for (int i = 0; i < paddingRequired; i++) { | |
sb.append(padChar); | |
} | |
} |
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
CREATE DATABASE IF NOT EXISTS `zcs_production`; | |
USE `zcs_production`; | |
DROP TABLE IF EXISTS `zcs_counters`; | |
CREATE TABLE `zcs_counters` ( | |
`id` int(255) NOT NULL, | |
`filename` varchar(255) DEFAULT NULL, | |
`call_switch` varchar(255) DEFAULT NULL, | |
`date_and_hour` datetime DEFAULT NULL, | |
`input` int(255) DEFAULT NULL, |
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
git config --global alias.tree "log --graph --decorate --pretty=oneline --abbrev-commit" |
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
SCRIPT /home/vagrant/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim | |
Sourced 2 times | |
Total time: 0.000071 | |
Self time: 0.000071 | |
count total (s) self (s) | |
if exists("g:loaded_syntastic_notifier_autoloclist") || !exists("g:loaded_syntastic_plugin") | |
1 0.000002 finish | |
endif | |
1 0.000003 let g:loaded_syntastic_notifier_autoloclist = 1 |
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
SCRIPT /home/vagrant/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim | |
Sourced 2 times | |
Total time: 0.000126 | |
Self time: 0.000126 | |
count total (s) self (s) | |
if exists("g:loaded_syntastic_notifier_autoloclist") || !exists("g:loaded_syntastic_plugin") | |
1 0.000001 finish | |
endif | |
1 0.000004 let g:loaded_syntastic_notifier_autoloclist = 1 |
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 'resque/tasks' | |
require 'resque_scheduler/tasks' | |
def run_worker(queue, count = 1) | |
puts "Starting #{count} Resque worker(s) with QUEUE: #{queue}." | |
ops = { pgroup: true, err: [Rails.root.join('log', 'workers_error.log'), 'a'], | |
out: [Rails.root.join('log', 'workers.log'), 'a']} | |
env_vars = { 'QUEUE' => queue.to_s } | |
count.times do |