Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
provider "heroku" { | |
email = "[email protected]" | |
api_key = "call heroku auth:token" | |
} | |
resource "heroku_app" "default" { | |
name = "herokutest" | |
region = "us" | |
config_vars { |
-d=postgresql | |
-T | |
--skip-coffee | |
ffprobe -v quiet -show_format -show_streams -pretty -print_format json ./video_file.mp4
Will output some lovely JSON to the console. Dump to a file with > json_file.json
or what-have-you.
// export json from trello board | |
const board = require('./path/to/trelloboard.json') | |
for(let list of board.lists){ | |
let listcards = board.cards.filter(c => c.idList === list.id ) | |
console.log(list.name) | |
for(let card of listcards){ | |
console.log(`\t${card.name} [${card.desc}]`) | |
} | |
} |
.vscode/ | |
tmp/ | |
# Packages # | |
############ | |
# it's better to unpack these files and commit the raw source | |
# git has its own built in compression methods | |
*.7z | |
*.dmg | |
*.gz |
const AWS = require('aws-sdk') | |
AWS.config.update({region: 'eu-west-1'}) | |
const ec2 = new AWS.EC2() | |
const inst = ec2.describeInstances().promise() | |
async function main(){ | |
const result = await inst |
import { useState } from "react"; | |
const App = () => { | |
const [onOffStatus, setOnOffStatus] = useState(false); | |
return ( | |
<div className="App" style={{ margin: "1rem" }}> | |
<header className="App-header"> | |
<h1>Seriously, this is a React App</h1> | |
</header> | |
<main> | |
<div |