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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
Select sites you want to compare | |
<form id="sites_form" action="sites" method="post"> | |
{% for each_site in sites_for_user %} |
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
package com.chocksaway; | |
import com.amazonaws.auth.PropertiesCredentials; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.regions.Regions; | |
import com.amazonaws.services.sns.AmazonSNS; | |
import com.amazonaws.services.sns.AmazonSNSClient; | |
import com.amazonaws.services.sns.model.*; |
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 boto3 | |
from boto3.dynamodb.conditions import Key, Attr | |
TABLE_NAME = 'int-mobileSubscriptionsTable' | |
dynamo_db = boto3.resource('dynamodb', endpoint_url='http://localhost:8090', region_name='us-east-1') | |
table = dynamo_db.Table(TABLE_NAME) | |
response = table.query( |
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
package com.example.milesd.atestapp; | |
import android.Manifest; | |
import android.content.Context; | |
import android.content.pm.PackageManager; | |
import android.os.Bundle; | |
import android.support.design.widget.FloatingActionButton; | |
import android.support.design.widget.Snackbar; | |
import android.support.v4.app.ActivityCompat; | |
import android.support.v4.content.ContextCompat; |
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 logging | |
import boto3 | |
def create_dynamo_table(table_name, key_schema, attribute_definitions, provisioned_throughput): | |
dynamodb = boto3.resource('dynamodb', region_name='eu-west-1') | |
try: | |
dynamodb.create_table( |
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
while true | |
do | |
echo "click" | |
cliclick m:+0,+0 | |
sleep 60 | |
done |
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
var gulp = require('gulp'), | |
gutil = require('gulp-util'); | |
// create a default task and just log a message | |
gulp.task('default', function() { | |
return gutil.log('Gulp is running!') | |
}); |
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
package com.chocksaway.util; | |
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient; | |
import com.amazonaws.services.dynamodbv2.document.*; | |
import com.amazonaws.services.dynamodbv2.document.spec.QuerySpec; | |
import com.amazonaws.services.dynamodbv2.document.spec.ScanSpec; | |
import com.amazonaws.services.dynamodbv2.document.utils.NameMap; | |
import com.amazonaws.services.dynamodbv2.document.utils.ValueMap; | |
import com.amazonaws.services.dynamodbv2.model.*; | |
import com.fasterxml.jackson.core.JsonFactory; |
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 java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Date; | |
import java.util.stream.Collectors; | |
public class FilterStartAndEndDate { | |
private SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); |
OlderNewer