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
// | |
// Run this in Lambda for as long as is required to get through your pool. If you re-run it'll need to skip the keep records, | |
// but there should be less the second time around | |
// | |
import { CognitoIdentityClient, ListIdentitiesCommand, DeleteIdentitiesCommand } from "@aws-sdk/client-cognito-identity"; | |
// Initialize the Cognito Identity Client | |
const client = new CognitoIdentityClient({ region: "<IDENTITY POOL REGION e.g. us-east-1>" }); |
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 'dart:math'; | |
import 'package:lightmeterv2/models/shutter.dart'; | |
class EV | |
{ | |
static double luxToFC = 10.763910417; | |
static double calc(double f, int iso, Shutter sec) | |
{ | |
double EV = (((log(f * f) / log(2.0)) - (log(sec.getValue()) / log(2.0))) - (log(iso / 100) / log(2.0))); |
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
const puppeteer = require('puppeteer'); | |
const moment = require("moment"); | |
let baseLayout = require('./layout_base.json'); | |
const exec = require('child_process').execSync; | |
let sleep = function (ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
}; |
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
... | |
{ | |
"type": "Video", | |
"position": "absolute", | |
"top": "0dp", | |
"left": "0dp", | |
"source": "<my file>", | |
"id": "counter", | |
"autoplay": "false", |
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
{ | |
"grid": { | |
"values": [ | |
[ 2, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], | |
[ 1, 2, 4, 4, 5, 6, 7, 8, 9, 10 ], | |
[ 1, 1, 3, 4, 5, 6, 7, 8, 9, 10 ], | |
[ 2, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], | |
[ 1, 2, 4, 4, 5, 6, 7, 8, 9, 10 ], | |
[ 1, 1, 3, 4, 5, 6, 7, 8, 9, 10 ], | |
[ 2, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], |
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
... | |
let spriteCommands = []; | |
for (...) { | |
... | |
spriteCommands.push({ | |
"type": "SetPage", | |
"componentId": "b", |
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
module.exports = { | |
animate: function (componentId, count = 7, delay = 20, jump = 1, reverse = true) { | |
let commands = []; | |
for (let i = 0; i < count; i += jump) { | |
commands.push({ | |
"type": "ScrollToIndex", | |
"componentId": componentId, | |
"index": i, |
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
const RequestHandler = { | |
process(handlerInput) { | |
//log our request | |
console.log("REQUEST ENVELOPE = " + JSON.stringify(handlerInput.requestEnvelope)); | |
//required function taken from Alexa SDK | |
function trimOutputSpeech(speechOutput) { | |
if (!speechOutput) { | |
return ''; |
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
if (file('signing.gradle').exists()) { | |
apply from: 'signing.gradle' | |
} | |
android{ | |
... | |
buildTypes { | |
debug{ | |
versionNameSuffix " Debug" | |
minifyEnabled false | |
shrinkResources true |
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
... | |
if(BuildConfig.DEBUG) { | |
Log.i("Key", SigningKey.getCertificateMD5Fingerprint(this)); | |
} | |
... |
NewerOlder