Skip to content

Instantly share code, notes, and snippets.

/**
* $(document).ready()
**/
$(document).ready(function() {
// Handler for .ready() called.
});
$(function() {
// Handler for .ready() called.
});
NSUInteger lengthA = [a length];
NSUInteger lengthB = [b length];
NSUInteger keyLength = lengthA + lengthB + 1;
assert(keyLength * sizeof(unichar) < SOME_REASONABLE_MAXIMUM_FOR_STACK_ALLOCATION);
unichar cat[keyLength];
[a getCharacters:cat range:NSMakeRange(0, lengthA)];
cat[lengthA] = '.';
[b getCharacters:cat + lengthA + 1 range:NSMakeRange(0, lengthB)];
NSString *key = [[NSString alloc] initWithCharactersNoCopy:cat length:keyLength freeWhenDone:NO];
... [dict objectForKey:key];
test("Using a real child actor") {
val underTest = TestActorRef(new ParentActor(actorFactory => actorFactory.actorOf(Props[ChildActor])))
underTest ! "Go do some work"
// Can't test this but shows how to crate a ParentActor in production code
}
<?php
/*
* Plugin Name: EDD Double Pagination
*/
function pw_edd_duplicate_pagination() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
package ;
import cpp.Lib;
import haxe.Int64;
/**
* A square root approximator.
*
* @author lemon42
*/
cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="YOUR_FB_APP_ID" --variable APP_NAME="YOUR_APP_NAME"
Note: Tested in Elementary OS Luna
1- Download the firmware from: http://www.broadcom.com/support/802.11/linux_sta.php
2- Unzip a move to dir
3- make
4- Uninstall previous versions:
<?php
/**
* do the same than parse_str without max_input_vars limitation
* @param $string array string to parse
* @return array query parsed
**/
function my_parse_str($string) {
$result = array();
// find the pairs "name=value"
BEGIN {
FS = ","
bytes_created = 0
bytes_wrote = 0
bytes_deleted = 0
}
$4 == "createFile" {
bytes_field_length = length($10)
bytes_created += substr($10, 3, bytes_field_length-3)
1. Plug in external HD
2. In WHS Console go to "Server Storage" tab
3. Wait until you see the external HD appear in "Server Backup Hard Drives" section
4. In WHS Console go to "Computer & Backup" tab
5. Select "<whs> - Your home server" in the list of machines
6. Click "Backup Now"
7. Wait for backup to complete
8. Go back to "Server Storage" tab and
9. Disconnect external HD