- Install Homebrew from https://brew.sh
$ brew install podman
$ brew install podman
#!/usr/bin/env node | |
const fs = require('fs') | |
const path = require('path') | |
const readline = require('readline') | |
const todo_dir = process.env.TODO_DIR | |
// TODO we could make this optionally count todo.txt too e.g. with a CLI flag | |
const done_file = path.join(todo_dir, 'done.txt') | |
const projregex = /(\+[A-Za-z0-9]+)(\s|$)/g | |
const ctxregex = /(@[A-Za-z0-9]+)(\s|$)/g | |
let counts = {} |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
// Make sure you are on the homepage | |
if($('#s-lg-index-list').length > 0) { | |
// Loop through all the subjects | |
$('#s-lg-index-cols').find('div.panel.panel-default').each(function() { | |
// Get the number of guides in this subject | |
var guides = $(this).find('.badge').text(); | |
// console.log('Number of guides: ' + guides); |
#![feature(collections)] | |
use std::io::prelude::*; | |
use std::fs::File; | |
use std::io::BufReader; | |
fn main() { | |
let args: Vec<String> = std::env::args().collect(); | |
let filename = args[1].clone(); |
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
do | |
npm -g install "$package" | |
done |
(psst... need a json viewer plugin?)