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
| import requests | |
| from pyquery import PyQuery | |
| import settings | |
| if __name__ == '__main__': | |
| # Log in to Alarm.com page | |
| payload = { | |
| 'JavaScriptTest': '1', | |
| 'cookieTest': '1', |
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 com.example; | |
| import android.content.Context; | |
| import android.graphics.*; | |
| import android.graphics.drawable.Drawable; | |
| import android.graphics.drawable.NinePatchDrawable; | |
| import android.util.AttributeSet; | |
| import android.util.Log; | |
| import android.widget.ImageView; |
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
| public static String sha1(String s, String keyString) throws | |
| UnsupportedEncodingException, NoSuchAlgorithmException, | |
| InvalidKeyException { | |
| SecretKeySpec key = new SecretKeySpec((keyString).getBytes("UTF-8"), "HmacSHA1"); | |
| Mac mac = Mac.getInstance("HmacSHA1"); | |
| mac.init(key); | |
| byte[] bytes = mac.doFinal(s.getBytes("UTF-8")); | |
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
| /**********************************************/ | |
| /* | |
| /* IR_Black Skin by Ben Truyman - 2011 | |
| /* | |
| /* Based on Todd Werth's IR_Black: | |
| /* http://blog.toddwerth.com/entries/2 | |
| /* | |
| /* Inspired by Darcy Clarke's blog post: | |
| /* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| /* |
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
| /* | |
| * ATTENTION: | |
| * | |
| * This layout is now maintained in the `iosched' code.google.com project: | |
| * | |
| * http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java | |
| * | |
| */ | |
| /* |
NewerOlder