This gist contains lists of modules available in
in AWS Lambda.
| /** | |
| * Temporary wrapper for firebase functions until @sentry/serverless support is implemented | |
| * It currently supports wrapping https, pubsub and firestore handlers. | |
| * usage: https.onRequest(wrap((req, res) => {...})) | |
| */ | |
| import type {Event} from '@sentry/types'; | |
| import type {https} from 'firebase-functions'; | |
| import type {onRequest, onCall} from 'firebase-functions/lib/providers/https'; | |
| import type {ScheduleBuilder} from 'firebase-functions/lib/providers/pubsub'; | |
| import type {DocumentBuilder} from 'firebase-functions/lib/providers/firestore'; |
This gist contains lists of modules available in
in AWS Lambda.
| // Google Forms Slack Notification | |
| // Andy Chase <github.com/andychase> | |
| // License: CC0 1.0 Universal <creativecommons.org/publicdomain/zero/1.0> | |
| // Install 1: This code goes in ( tools > script editor... ) of your google docs form | |
| // Install 2: ( resources > current project triggers ) ( [onSubmit], [from Form], [On form submit] ) | |
| // Setup 1: Put your slack api url below | |
| var POST_URL = "https://hooks.slack.com/services/"; | |
| function onSubmit(e) { |
| # This is an example of the Stack Exchange Tier 1 HAProxy config | |
| # The only things that have been changed from what we are running are: | |
| # 1. User names have been removed | |
| # 2. All Passwords have been remove | |
| # 3. IPs have been changed to use the example/documentation ranges | |
| # 4. Rate limit numbers have been changed to randome numbers, don't read into them | |
| userlist stats-auth | |
| group admin users $admin_user | |
| user $admin_user insecure-password $some_password |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* | |
| # Print Map | |
| Usage: | |
| // option 1 | |
| .debug { | |
| @include print-map($map); | |
| } |
| [ | |
| { | |
| "keys": ["ctrl+w"], | |
| "command": "run_multiple", | |
| "args": { | |
| "commands": [ | |
| {"command": "find_under_expand", "args": null, "context": "window"}, | |
| {"command": "show_panel", "args": {"panel": "find"}, "context": "window"} | |
| ] | |
| } |
| import struct | |
| import SocketServer | |
| from base64 import b64encode | |
| from hashlib import sha1 | |
| from mimetools import Message | |
| from StringIO import StringIO | |
| class WebSocketsHandler(SocketServer.StreamRequestHandler): | |
| magic = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| .leaflet-div-icon { | |
| background: transparent; | |
| border: none; | |
| } | |
| .leaflet-marker-icon .number{ | |
| position: relative; | |
| top: -37px; | |
| font-size: 12px; | |
| width: 25px; |