no Homebrew required
$ cd /usr/local/src
$ curl -OL http://nginx.org/download/nginx-1.12.2.tar.gz
$ tar -xvzf nginx-1.12.2.tar.gz && rm nginx-1.12.2.tar.gz
/* image rotate javascript */ | |
/* This script and many more are available free online at | |
The JavaScript Source!! http://javascript.internet.com | |
Created by: Benoit Asselin | http://www.ab-d.fr */ | |
function rotate(p_deg) { | |
if(document.getElementById('canvas')) { | |
/* | |
Ok!: Firefox 2, Safari 3, Opera 9.5b2 |
alias clean-rn="watchman watch-del-all && rm -fr $TMPDIR/npm* && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && yarn cache clean && rm -rf ios/build && rm -rf ios/Pods && rm -rf android/.gradle && rm -rf android/.idea && rm -rf android/build && rm -rf android/app/build && rm -rf android/app/app.iml && yarn" |
ffmpeg -i <inputFile> -f mpegts -acodec libfaac -vcodec libx264 \ -vpre roku -crf 15 -threads 0 ~/OneTransportStreamFile3200.ts |
const { spawn } = require("child_process"); | |
const COMMAND = "ls" | |
const ALLOWED_REBOOTS = 10 | |
async function main() { | |
console.log("Starting process"); | |
let counter = 0; | |
let failed = false; | |
let handle; |
import * as React from 'react' | |
// routing, etc. | |
import { Reset } from '~/ui/shared/Reset' | |
export class App extends React.Component { | |
public render() { | |
return ( | |
<div> | |
<title>Dashboard</title> |
# iTerm2 AppleScript Docs: https://www.iterm2.com/documentation-scripting.html | |
on run argv | |
set current_dir to item 1 of argv | |
tell application "iTerm2" | |
tell current window | |
set rails_session to current session | |
set current_tab to current tab | |
tell current session |
if (!Array.prototype.find) { | |
Array.prototype.find = function(predicate) { | |
if (this == null) { | |
throw new TypeError('Array.prototype.find called on null or undefined'); | |
} | |
if (typeof predicate !== 'function') { | |
throw new TypeError('predicate must be a function'); | |
} | |
var list = Object(this); | |
var length = list.length >>> 0; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
/* How to select a range of children | |
* (Here, 3rd-7th children, inclusive): | |
*/ | |
ul li:nth-child(n+3):nth-child(-n+7) { | |
outline: 1px solid #0f0; | |
} |
;; This is at: https://gist.github.com/8655399 | |
;; So we want a rhyming dictionary in Clojure. Jack Rusher put up | |
;; this code here: | |
;; | |
;; https://gist.github.com/jackrusher/8640437 | |
;; | |
;; I'm going to study this code and learn as I go. | |
;; | |
;; First I put it in a namespace. |