Skip to content

Instantly share code, notes, and snippets.

View cha0s's full-sized avatar
👌
Gettin' it

Ruben R cha0s

👌
Gettin' it
View GitHub Profile
$ 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
// argument = if (customValue = newCustomValue type)?
// V: [customvalue]
// else
// values = vicarValues entity, type
// I: [values[Object.keys(values)[0]].index]
// argument = if (customValue = newCustomValue type)?
// V: [customvalue]
// else
// values = vicarValues entity, type
// I: [values[Object.keys(values).shift()].index]
// 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()) {
// 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();
<?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);
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();
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']);
// 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();
@cha0s
cha0s / gist:3033492
Created July 2, 2012 14:20
Dialogue syntax
Man:
Hey! HEY! Will you help me?!
Decide: Will you help him?
No:
Man:
:(...