view image sizes in quicklook: brew cask install qlimagesize mdimagesizemdimporter
webp quicklook preview brew cask install WebPQuickLook
markdown quicklook brew cask install qlmarkdown
quicklook json
// String utils | |
// | |
// resources: | |
// -- mout, https://github.com/mout/mout/tree/master/src/string | |
export function unPluralize(str = "") { | |
// @SCOPE: if a string ends in a 's' we simple remove the 's' | |
if (!str) return; | |
str = str?.toLowerCase(); |
// Based on https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js | |
// and https://tailwindcss.com/components | |
export const borderWidths = { | |
px: '1px', | |
'0': '0', | |
'2': '2px', | |
'4': '4px', | |
'8': '8px', | |
} |
# Editors | |
.vscode/ | |
.idea/ | |
# Vagrant | |
.vagrant/ | |
# Mac/OSX | |
.DS_Store |
from flask import Flask, render_template, request, redirect, url_for | |
app = Flask(__name__) # instantiate flask application | |
app.route('/') # listens for requests on the index route. | |
def index(): # index route handler | |
return "Hello World" |
#!/bin/sh | |
export ENV='dev' | |
export FLASK_APP=app.py | |
export FLASK_DEBUG=true | |
python3 -m venv venv | |
source venv/bin/activate | |
flask run --reload |
{ | |
"Ansi 3 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Blue Component" : 0, | |
"Red Component" : 0.73333334922790527 | |
}, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Sign In with Auth0</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
</head> | |
<style> |
function JSONToCSVConvertor(JSONData, ReportTitle, ShowLabel) { | |
// http://jsfiddle.net/d7n0hj6k/1/ | |
//If JSONData is not an object then JSON.parse will parse the JSON string in an Object | |
var arrData = typeof JSONData != 'object' ? JSON.parse(JSONData) : JSONData; | |
var CSV = ''; | |
//Set Report title in first row or line | |
CSV += ReportTitle + '\r\n\n'; |
FROM gitpod/workspace-full | |
RUN ["apt-get", "update"] | |
RUN ["apt-get", "install", "-y", "zsh"] | |
USER gitpod | |
RUN sudo apt-get update && \ | |
sudo apt-get install -y zsh |
view image sizes in quicklook: brew cask install qlimagesize mdimagesizemdimporter
webp quicklook preview brew cask install WebPQuickLook
markdown quicklook brew cask install qlmarkdown
quicklook json