An implementation of the iOS 7 Frosted Glass Blur in HTML5 with the Ionic Framework.
This file contains 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
function FindProxyForURL(url, host) { | |
// If the hostname matches, send direct. | |
if (dnsDomainIs(host, "intranet.domain.com") || | |
shExpMatch(host, "(*.abcdomain.com|abcdomain.com)")) | |
return "DIRECT"; | |
// If the protocol or URL matches, send direct. | |
if (url.substring(0, 4)=="ftp:" || | |
shExpMatch(url, "http://abcdomain.com/folder/*")) |
This file contains 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
Parse.Cloud.httpRequest({ | |
method: 'POST', | |
url: 'https://android.googleapis.com/gcm/send', | |
headers: { | |
'Authorization': 'key=' + GCM_API_KEY, | |
'Content-Type': 'application/json' | |
}, | |
body: { | |
registration_ids: gcmRegIds, | |
data: { |
This file contains 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
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
public class ScreenReceiver extends BroadcastReceiver { | |
public static boolean screenOff; | |
@Override | |
public void onReceive(Context context, Intent intent) { |
This file contains 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
/* | |
* set an ACL on object with no permissions | |
*/ | |
exports.lockDown = function(object) { | |
acl = new Parse.ACL(); | |
console.log("removing all access"); | |
object.setACL(acl); | |