I hereby claim:
- I am jayproulx on github.
- I am jayproulx (https://keybase.io/jayproulx) on keybase.
- I have a public key whose fingerprint is B461 166B 5873 7378 844D 366C 461B 3427 E86B 0EC6
To claim this, I am signing this object:
for(int i = 0; i < 4; i++) { | |
pinMode(leds[i], OUTPUT); | |
} |
Note 1: The following CQ curl commands assumes a admin:admin username and password. | |
Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command. | |
Example: -F"":operation=delete"" | |
Note 3: Quotes around name of package (or name of zip file, or jar) should be included. | |
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console) | |
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle" | |
Install a bundle | |
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F |
// http://help-aircanada.com/aircanada-help/js/aircanada_11112013.js | |
//This function is used to validate email address : Returns true if email is valid | |
function isEmailValid(emailToValidate){ | |
//var regex1=/^([_A-Za-z0-9-/&]+(\.[_A-Za-z0-9-/&]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.(([A-Za-z]{2,3})|(aero|coop|info|museum)))?$/ | |
//return regex1.test(emailToValidate); | |
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,17})+$/.test(emailToValidate)) | |
{ | |
return (true); |
re = /^([\w]+)([\+\-\.\w]*)@([\-\.\w]+)(\.[\w]{2,17}){1,2}$/; |
#!/bin/bash | |
# run this as a script in your-phonegap-project/hooks | |
hooks=(after_build after_compile after_docs after_emulate after_platform_add after_platform_rm after_platform_ls after_plugin_add after_plugin_ls after_plugin_rm after_plugin_search after_plugin_install after_prepare after_run after_serve before_build before_compile before_docs before_emulate before_platform_add before_platform_rm before_platform_ls before_plugin_add before_plugin_ls before_plugin_rm before_plugin_search before_plugin_install before_plugin_uninstall before_prepare before_run before_serve pre_package); | |
for hook in ${hooks[@]} | |
do | |
mkdir "${hook}" | |
script="1_identify_hook.js" |
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<workspaceFilter version="1.0"> | |
<!-- Design/style --> | |
<filter root="/etc/designs/myproject"/> | |
</workspaceFilter> |
.col-ms-1, | |
.col-ms-2, | |
.col-ms-3, | |
.col-ms-4, | |
.col-ms-5, | |
.col-ms-6, | |
.col-ms-7, | |
.col-ms-8, | |
.col-ms-9, | |
.col-ms-10, |
// 0. Override these in your MainViewController.m | |
// 1. your .startPage is http://www.google.com for example, set in your AppDelegate.m | |
// 2. don't forget to add that url in your whitelist | |
static BOOL isExternalUrlHack = NO; | |
- (NSString*) pathForResource:(NSString*)resourcepath; | |
{ | |
if ([self.startPage isEqualToString:resourcepath] && [self.startPage hasPrefix:@"http://"]) { | |
isExternalUrlHack = YES; | |
// return non-nil so it doesn't fail |
/* | |
* Normalized hide address bar for iOS & Android | |
* (c) Scott Jehl, scottjehl.com | |
* MIT License | |
*/ | |
(function( win ){ | |
var doc = win.document; | |
// If there's a hash, or addEventListener is undefined, stop here | |
if( !location.hash && win.addEventListener ){ |