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
| // This #include statement was automatically added by the Particle IDE. | |
| #include <FastLED.h> | |
| FASTLED_USING_NAMESPACE; | |
| #define LED_PIN D2 | |
| #define CHIPSET NEOPIXEL | |
| #define NUM_LEDS 144 | |
| #define BRIGHTNESS 255 |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <RelativeLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent" | |
| android:background="@color/white"> | |
| <ImageView | |
| android:src="@drawable/launch_screen" | |
| android:layout_centerHorizontal="true" | |
| android:layout_centerVertical="true" |
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
| const aws = require('aws-sdk'); | |
| const ses = new aws.SES({ region: 'us-west-2' }); | |
| const MY_EMAIL = 'me@iamandrew.io'; | |
| exports.handler = async (event, context, callback) => { | |
| console.log('event: ', event); | |
| const response = { | |
| statusCode: 200, |
Abbreviated flags:
-ais--armorfor ascii armored output (allows output to be sent via the web, etc.)-ris--recipientfor specifying the recipient of the message (needs to use the name of an imported key)
This can be used for encrypting messages so only the person with the private key can read them
gpg --import ./path/to/public.key
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 numeral from 'numeral'; | |
| setInterval(() => { | |
| const { rss, heapTotal, heapUsed, external } = process.memoryUsage(); | |
| console.log('--------------------------------'); | |
| console.log('rss: ', numeral(rss).format('0.0 ib')); | |
| console.log('heapTotal: ', numeral(heapTotal).format('0.0 ib')); | |
| console.log('heapUsed: ', numeral(heapUsed).format('0.0 ib')); | |
| console.log('external: ', numeral(external).format('0.0 ib')); |
OlderNewer