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
$ bzr qcommit | |
Run command: bzr commit -m "Removed all the old command widgets" src/commands src/controllers/Entity/editors src/vicar/Routine.cpp src/vicar/... | |
Committing to: /home/cha0s6983/dev/code/buo/enviro/ | |
missing src/vicar/Routine.cpp | |
deleted src/vicar/Routine.cpp | |
missing src/commands | |
deleted src/commands | |
missing src/commands/BattleExecuteCommandWidget.cpp | |
deleted src/commands/BattleExecuteCommandWidget.cpp | |
missing src/commands/BattleExecuteCommandWidget.h |
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
// argument = if (customValue = newCustomValue type)? | |
// V: [customvalue] | |
// else | |
// values = vicarValues entity, type | |
// I: [values[Object.keys(values)[0]].index] |
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
// argument = if (customValue = newCustomValue type)? | |
// V: [customvalue] | |
// else | |
// values = vicarValues entity, type | |
// I: [values[Object.keys(values).shift()].index] |
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
// if (customValue = newCustomValue type)? | |
// V: [customvalue] | |
// else | |
// values = vicarValues entity, type | |
// I: [values[Object.keys(values)[0]].index] | |
Handle<Object> argument = Object::New(); | |
Handle<v8::Value> customValue = newCustomValue(type); | |
if (!customValue->IsUndefined()) { |
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
// argument = if (customValue = newCustomValue type)? | |
// V: [customvalue] | |
// else | |
// I: [vicarValues(entity, type).shift().index] | |
Handle<Object> argument = Object::New(); | |
Handle<v8::Value> customValue = newCustomValue(type); | |
if (!customValue->IsUndefined()) { | |
Handle<Array> a = Array::New(); |
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
<?php | |
function transform_name($name) { | |
// Always remove .php. | |
$name = str_replace('.php', '', $name); | |
// Replace any non alphanumeric characters with '-'. | |
$name = preg_replace("[^a-zA-Z0-9", "-", $name); | |
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
Specifics: | |
spaces.module: | |
arg(2) is unnecessary since the hook_menu item is passing the $lid as an argument | |
(406) | |
Don't invoke global $user above this: _check_owe | |
Since you're doing it inside the func anyways | |
Remove the argument and just call it _check_owe(); |
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
function _get_open_close($date,&$open,&$close, $lid){ | |
$day_of_week = strtolower(date('l',$date)); | |
$times = db_fetch_array(db_query(" | |
SELECT open_$day_of_week as open, close_$day_of_week as close | |
FROM spaces_locations | |
WHERE lid = %d", $lid | |
)); | |
$open = strtotime($times['open']); |
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
// array = [ | |
// "#{value.candidates[0]}:#{value.index}" | |
// value.argTypes.map (argType) -> {V: [newCustomValue argType]} | |
// ] | |
array->Set(0, String::New((value.candidates[0] + ":" + value.index).toAscii())); | |
Handle<Array> args = Array::New(); | |
for (int i = 0; i < value.argTypes.length(); i++) { | |
Handle<Array> a = Array::New(); |
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
Man: | |
Hey! HEY! Will you help me?! | |
Decide: Will you help him? | |
No: | |
Man: | |
:(... |