What happens if you tell GitHub it's JSON
{
"hello": "world" // I want my comments!
}
Just tell GitHub it's JavaScript
{
# remote list | |
git remote -v | |
# add heroku app remote | |
heroku git:remote --app brenda-kp | |
git remote -v | |
# heroku https://git.heroku.com/brenda-kp.git | |
# rename local remote |
https://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html | |
http://www.taimila.com/blog/ddd-and-testing-strategy/ |
# Timezone extension to Sidetiq | |
Sidetiq::Schedulable::ClassMethods.class_eval do | |
# Sets the time zone for the recurrence rules. | |
# | |
# Example: | |
# | |
# class MyWorker | |
# include Sidekiq::Worker | |
# include Sidetiq::Schedulable | |
# |
from django.template import Library | |
from django.template.defaulttags import URLNode, url | |
register = Library() | |
class AbsoluteURL(str): | |
pass | |
class AbsoluteURLNode(URLNode): | |
def render(self, context): |
module PaginateHelper | |
class PaginateJSLinkRenderer < WillPaginate::ActionView::LinkRenderer | |
def prepare(collection, options, template) | |
options[:params] ||= {} | |
options[:params]['_'] = nil | |
super(collection, options, template) | |
end | |
protected | |
def html_container(html) |
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var path = require('path'); | |
var folders = { | |
APP: path.resolve(__dirname, '../app'), | |
BUILD: path.resolve(__dirname, '../build'), | |
BOWER: path.resolve(__dirname, '../bower_components'), | |
NPM: path.resolve(__dirname, '../node_modules') | |
}; |
from flask import Flask, jsonify, Blueprint, current_app | |
import json | |
## REST api ################################################################### | |
api = Blueprint('api', __name__) | |
@api.route("/users") | |
def users(): | |
return jsonify(users=[ |
squoosh-cli --mozjpeg '{"quality":75,"baseline":false,"arithmetic":false,"progressive":true,"op timize_coding":true,"smoothing":0,"color_space":3,"quant_table":3,"trellis_multipass":false,"trel lis_opt_zero":false,"trellis_opt_table":false,"trellis_loops":1,"auto_subsample":true,"chroma_sub sample":2,"separate_chroma_quality":false,"chroma_quality":75}' actionvance-guy5aS3GvgA-unsplash.jpg |
# rotate | |
ffmpeg -i input.mp4 -map_metadata 0 -c copy -metadata:s:v rotate="180" output.mp4 | |
# extract subs from mp4 | |
# https://superuser.com/questions/393762/how-to-extract-subtitles-from-mp4-and-mkv-movies | |
ffmpeg -i video.mp4 subtitle.srt | |
# convert audio (using vbr) | |
ffmpeg -i input.mkv -c:a libopus -b:a 256k -vbr 1 -af "channelmap=channel_layout=5.1" output.mkv |
What happens if you tell GitHub it's JSON
{
"hello": "world" // I want my comments!
}
Just tell GitHub it's JavaScript
{