[image:6E48B749-35FA-4630-AE46-7FA971642DA7-67025-000062C07B0AE2E3/download (1).png]
Monday 02 January
- Most check-ins for a month
- Worst steps for 8 days
- /Event:/ Drove 10 hours from News Orleans to Tulsa, OK with fiancee. Checkout the wedding page.
| FROM ubuntu:18.04 | |
| ENV DEBIAN_FRONTEND noninteractive | |
| ENV DEBCONF_NONINTERACTIVE_SEEN true | |
| ## Timezone Data | |
| RUN echo "tzdata tzdata/Areas select Europe" > /tmp/preseed.txt; \ | |
| echo "tzdata tzdata/Zones/Europe select Berlin" >> /tmp/preseed.txt; \ | |
| debconf-set-selections /tmp/preseed.txt && \ | |
| apt-get update && \ |
| from resizeimage import resizeimage | |
| from PIL import Image | |
| image_path = './dog.jpeg' | |
| new_max_width = 1800 | |
| new_filename = './dog-1800.jpeg' | |
| with open(image_path, 'r+b') as f: | |
| with Image.open(f) as image: | |
| # Resize |
| var TDB = new TelegraphDB("my-project-key", "us-east") | |
| // Access Collection | |
| var users = TDB.collection("users") | |
| // Insert Data | |
| users.insert([{ | |
| "info": { | |
| "first_name": "Jack", | |
| "last_name": "Dorsey" |
| #!/usr/bin/env python | |
| import asyncio | |
| import websockets | |
| async def hello(websocket, path): | |
| name = await websocket.recv() | |
| print(name) | |
| await websocket.send(name) |
| from textblob.classifiers import NaiveBayesClassifier | |
| from textblob import TextBlob | |
| train = [ | |
| ('what did I miss', 'show-notifications'), | |
| ('what happen while I was gone', 'show-notifications'), | |
| ('any new events', 'show-notifications'), | |
| ('clear all', 'clear-notifications'), | |
| ('delete all','clear-notifications') | |
| ] |
| #!/bin/sh | |
| FILES=`git diff --cached --name-only -- '*.php' '*.inc' '*.module'`; | |
| if [ "$FILES" != "" ] | |
| then | |
| echo "Running Code Sniffer..." | |
| command_result=`phpcs --standard=~/bm-core/docroot/sites/ruleset.xml --extensions=php,inc,module --encoding=utf-8 -n -p $FILES` | |
| if [[ $command_result =~ ERROR ]] | |
| then |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <style> | |
| * { | |
| transform-origin: 20% 80%; | |
| transition: transform 30s linear; | |
| } |