Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| # source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide | |
| yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
| mkdir ~/ffmpeg_sources | |
| cd ~/ffmpeg_sources | |
| curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
| tar xzvf yasm-1.2.0.tar.gz | |
| cd yasm-1.2.0 |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| package com.demo; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| public class DemoDateUtil { | |
| //static DateUtil du = new DateUtil(); | |
| /** | |
| * @param args |
| /* tested on PhantomJS 1.6 */ | |
| var page = require('webpage').create(), loadInProgress = false, fs = require('fs'); | |
| var htmlFiles = new Array(); | |
| // console.log(fs.workingDirectory); | |
| // console.log(phantom.args[0]); | |
| var curdir = phantom.args[0] || fs.workingDirectory; | |
| var curdirList = fs.list(curdir); |
| # modified API url to align with changes to bit.ly requirements - @claylevering | |
| # find the .alfredextension here: http://cl.ly/EEUK | |
| declare -r API='https://api-ssl.bitly.com/v3/shorten' | |
| declare -r LOGIN='yourlogin' | |
| declare -r API_KEY='yourapi' | |
| # add http scheme to URL if none is provided | |
| longURL=$(printf "{query}" | sed -E -e 's|^.|http://&|' -e 's|^http://([a-zA-Z\-\.\+]+://)|\1|') | |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| # -- coding: utf-8 | |
| require "pp" | |
| require "rubygems" | |
| require 'sinatra' | |
| require 'sinatra/base' | |
| module Sinatra | |
| module Helpers | |
| class Stream |