When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
This script performs the following actions:
This obviously assumes that your domain's DNS is hosted on Route 53. It also uses the AWS credentials and region for the environment it is executed in.
$(".im_dialog_wrap .im_dialog_badge.ng-hide").each(function(index, el){$(el).parents("li.im_dialog_wrap").addClass("ng-hide");}); |
const mailgun = require('mailgun-js')({apiKey: api_key, domain: domain}); | |
const twilio = new require('twilio')(accountSid, authToken); | |
export default function notify (to, msg, options) { | |
if (Array.isArray(to)) { | |
to.forEach((toSingle) => notify(toSingle, msg, options)); | |
return; | |
} | |
if (to.includes("@")) { |
class conditional_decorator(object): | |
def __init__(self, dec, condition): | |
self.decorator = dec | |
self.condition = condition | |
def __call__(self, func): | |
if not self.condition: | |
# Return the function unchanged, not decorated. | |
return func | |
return self.decorator(func) |
0815.ru | |
0815.ru0clickemail.com | |
0815.ry | |
0815.su | |
0845.ru | |
0clickemail.com | |
0-mail.com | |
0wnd.net | |
0wnd.org | |
10mail.com |
#!/bin/bash | |
function list_include_item { local list="$1"; local item="$2"; if [[ $list =~ (^|[[:space:]])"$item"($|[[:space:]]) ]] ; then result=0; else result=1; fi; return $result;}; | |
bases="alpine:latest nginx:1.11.3-alpine" | |
delete= | |
# append latest tag to each image | |
for item in $(docker images --format "{{.Repository}}:{{.Tag}}@{{.ID}}") | |
do | |
export IFS=' ' | |
IFS='@'; arr=($item); unset IFS; |
# Install chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads | |
import os | |
from optparse import OptionParser | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
CHROME_PATH = '/usr/bin/google-chrome' |
from __future__ import print_function # Python 2/3 compatibility | |
import boto3 | |
import json | |
import decimal | |
from boto3.dynamodb.conditions import Key, Attr | |
# Helper class to convert a DynamoDB item to JSON. | |
class DecimalEncoder(json.JSONEncoder): | |
def default(self, o): | |
if isinstance(o, decimal.Decimal): |
This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.
Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,