Skip to content

Instantly share code, notes, and snippets.

@shimy
shimy / devices_20151217.json
Last active December 17, 2015 06:52
devices_20151217.json
{
"devices": [
{
"formFactor": "TABLET",
"name": "Apple iPad Mini 2",
"resolution": {
"width": 1536,
"height": 2048
},
"image": "NA",
{
"devices": [
{
"formFactor": "TABLET",
"name": "Apple iPad Mini 2",
"resolution": {
"width": 1536,
"height": 2048
},
"image": "NA",
{
"devices": [
{
"formFactor": "TABLET",
"name": "Apple iPad Mini 2",
"resolution": {
"width": 1536,
"height": 2048
},
"image": "NA",
@shimy
shimy / devices_20150727.json
Created July 27, 2015 14:03
aws devicefarm list-devices
{
"devices": [
{
"formFactor": "PHONE",
"name": "Samsung Galaxy Note II (AT&T)",
"resolution": {
"width": 1,
"height": 1
},
"image": "NA",
# -*- coding: utf-8 -*-
codes = {
32: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ],
33: [ 0x40, 0x40, 0x40, 0x40, 0x00, 0x40, 0x00, 0x00, ],
34: [ 0xa0, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ],
35: [ 0xa0, 0xe0, 0xa0, 0xa0, 0xe0, 0xa0, 0x00, 0x00, ],
36: [ 0x40, 0xe0, 0xc0, 0x60, 0xe0, 0x40, 0x00, 0x00, ],
37: [ 0x00, 0x80, 0x20, 0x40, 0x80, 0x20, 0x00, 0x00, ],
38: [ 0x40, 0xa0, 0x40, 0x60, 0xc0, 0xe0, 0x00, 0x00, ],
39: [ 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ],
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Cognito Sync</title>
<script src="aws-sdk.min.js" type="text/javascript"></script>
<script src="dist/amazon-cognito.min.js" type="text/javascript"></script>
</head>
<body>
<script>
<html>
<body>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.ajax({
url : 'js_backslash_test.xml',
dataType: 'xml',
success : function(xml){
var str = $('test',xml).text();