Note that becase these links are copied from browser history, they're essentially in bottom to top order
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
git remote prune origin - to remove a deleted remote branch. | |
git rebase -i - interactive rebase with options to pick, squash, discard and reorder commits. | |
git update-index --assume-unchanged | |
Undoing a merge: | |
$ git pull $REMOTE $BRANCH | |
# uh oh, that wasn't right | |
$ git reset --hard ORIG_HEAD | |
# all is right with the world |
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> | |
<meta charset="UTF-8"> | |
<title>AWS IoT Pub/Sub Demo</title> | |
</head> | |
<body> | |
<h1>AWS IoT Pub/Sub Demo</h1> | |
<form> | |
<button type="button" id="connect">connect!</button> |
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
#count of items | |
aws dynamodb scan --table-name baskets --select COUNT | |
#item by key | |
aws dynamodb get-item --table-name baskets --key '{"Id":{"S": "195eaf9c-50e6-4524-81e0-22403e46b6df"}}' |
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
Shader "CustomShaders/BareBoneShader" | |
{ | |
//Properties | |
Properties | |
{ | |
_Color("Main Color", Color) = (1,1,1,1) | |
} | |
//Subshaders | |
SubShader |
Mobile Application that allows you to handle your car expenses. This application is made with React Native.
- React Native
- React
- ESLint
- eslint-config-airbnb as plugin for helping us to follow the airbnb code style guide.
- Jest
- React Native Vector Icons
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 strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
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 Foundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
// CHANGE THIS TO TRUE FOR the lock queue to be used | |
let useLocks = false | |
var counter : Int = 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
{ | |
"name": "serverless-typescript-demo", | |
"version": "1.0.0", | |
"description": "Basic demo mixing Serverless and TypeScript", | |
"main": "handler.ts", | |
"scripts": { | |
"lint": "tslint *.ts", | |
"test:local": "mocha --compilers ts:ts-node/register,tsx:ts-node/register tests.ts", | |
"test:remote": ". ./helpers/endpoint.sh; mocha remote/tests.js", | |
"deploy:cicd": "mkdir .build; serverless deploy --stage cicd | tee .build/deploy.out" |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "es6", | |
"lib": [ "es6", "dom" ], | |
"moduleResolution": "node", | |
"rootDir": "./", | |
"sourceMap": true, | |
"allowJs": true, | |
"noImplicitAny": true, |
OlderNewer