I hereby claim:
- I am elct9620 on github.
- I am elct9620 (https://keybase.io/elct9620) on keybase.
- I have a public key whose fingerprint is 3226 80C8 03B2 577C F337 17D9 FEE6 45EC 5472 E299
To claim this, I am signing this object:
### | |
# Ruby Block | |
### | |
@buffer = "" | |
def test(description, &block) | |
if block_given? | |
puts "##{description}" | |
yield |
user = User.create() | |
user.logs << Log.new | |
user.send_logs << Log.new # join table "action" column will assign "send" as default | |
user.receive_logs << Log.new # join table "action" column will assign "receive" as default |
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// File System | |
var fs = require('fs') | |
// Cordova Lib | |
var cordovaLib = require('cordova-lib'), | |
CordovaError = cordovaLib.CordovaError, | |
cordova = cordovaLib.cordova, | |
events = cordovaLib.events; | |
var opts = { |
void descArray(int *arr, int size){ | |
int temp; | |
int loopRun = floor(size/2); | |
for(int i = 0; i < loopRun; i++){ | |
temp = arr[size - i]; | |
arr[size - i] = arr[i]; | |
arr[i] = temp; | |
} | |
} |
<?php | |
$array = array('type', 'apple'); | |
switch(true){ | |
case in_array('apple', $array): | |
echo 'Have Apple'; | |
case in_array('mango', $array): | |
echo 'Have Mongo'; | |
default: | |
} |