CLICK ME
yes, even hidden code blocks!
print("hello world!")
import random | |
from enum import Enum, IntEnum | |
class BRAIN(str, Enum): | |
SMALL = "small" | |
MEDIUM = "medium" | |
GALAXY = "galaxy" | |
def __str__(self) -> str: |
########################################################### | |
# How to NEVER use lambdas. An inneficient and yet educa- # | |
# tonal [sic] guide to the proper misuse of the lambda # | |
# construct in Python 3.x. [DO NOT USE ANY OF THIS EVER] # | |
# original by (and apologies to): e000 (13/6/11) # | |
# now in Python 3 courtesy of: khuxkm (17/9/20) # | |
########################################################### | |
## Part 1. Basic LAMBDA Introduction ## | |
# If you're reading this, you've probably already read e000's |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
// 1. You need to implement function that return array of powers for the number (10min) | |
const getPowersOfNumber = (number, until) => { | |
return 'not implemented'; | |
}; | |
// test | |
const answer = [1, 3, 9, 27]; | |
console.log( |
// your react component | |
import * as React from 'react' | |
import Dropzone from 'react-dropzone' | |
// apply your own styling and stuff, should probably also show the files when uploaded | |
const Upload = () => { | |
return (<Dropzone data-cy="drag-and-drop">Drag and Drop here</Dropzone>) | |
} | |
export default Upload |
# -*- coding: utf-8 -*- | |
import os | |
import uuid | |
from flask import Flask, render_template, redirect, url_for, request | |
from flask_uploads import UploadSet, configure_uploads, IMAGES, patch_request_class | |
from flask_wtf import FlaskForm | |
from flask_wtf.file import FileField, FileRequired, FileAllowed | |
from wtforms import SubmitField |
NOTE: this gist is outdated, refer to this repository instead - https://github.com/ghaiklor/iterm-fish-fisher-osx
import exifread | |
# based on https://gist.github.com/erans/983821 | |
def _get_if_exist(data, key): | |
if key in data: | |
return data[key] | |
return None |