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
/** | |
* $(document).ready() | |
**/ | |
$(document).ready(function() { | |
// Handler for .ready() called. | |
}); | |
$(function() { | |
// Handler for .ready() called. | |
}); |
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
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]; |
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
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 | |
} |
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 | |
/* | |
* Plugin Name: EDD Double Pagination | |
*/ | |
function pw_edd_duplicate_pagination() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { |
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
package ; | |
import cpp.Lib; | |
import haxe.Int64; | |
/** | |
* A square root approximator. | |
* | |
* @author lemon42 | |
*/ |
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
cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="YOUR_FB_APP_ID" --variable APP_NAME="YOUR_APP_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
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: |
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 | |
/** | |
* 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" |
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
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) |
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. 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 |