Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
<!DOCTYPE html> | |
<!-- | |
Stuart Powers | |
http://sente.cc/ | |
http://twitter.com/stuartpowers | |
--> | |
<html> | |
<head> |
<?php | |
/** | |
* QR Code + Logo Generator | |
* | |
* http://labs.nticompassinc.com | |
*/ | |
$data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com'; | |
$size = isset($_GET['size']) ? $_GET['size'] : '200x200'; | |
$logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE; |
avrdude -p m644 -c usbasp -t | |
avrdude> write eeprom 0x00 0x00 0x20 0x41 0x00 0x00 0x80 0x3f 0x00 0x00 0x40 0x40 0x00 0x00 0x35 0x43 | |
avrdude> dump eeprom 0 15 |
#!/bin/bash | |
# | |
# Litecoin CPU Mining setup on Ubuntu Server | |
# | |
sudo apt-get update; | |
# install prerequisit software/libs | |
sudo apt-get -y install make automake build-essential libcurl4-openssl-dev htop |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
<?php | |
// (string) $message - message to be passed to Slack | |
// (string) $room - room in which to write the message, too | |
// (string) $icon - You can set up custom emoji icons to use with each message | |
public static function slack($message, $room = "engineering", $icon = ":longbox:") { | |
$room = ($room) ? $room : "engineering"; | |
$data = "payload=" . json_encode(array( | |
"channel" => "#{$room}", | |
"text" => $message, |
<?php | |
class Paypal | |
{ | |
/** | |
* API Version | |
*/ | |
const VERSION = 51.0; | |
/** |
-- You could setup global vars: | |
for k,v in ipairs{3,10,4,9,2,1,nil,nil,nil,11,12,nil,6,7,5,8,0} do _G['GPIO'..k-1]=v end | |
-- and use them like this: | |
gpio.mode(GPIO2, gpio.OUTPUT) | |
gpio.write(GPIO2, gpio.WRITE) |
Waveguide theory
Circular waveguide cutoff frequency equation for TE11 mode
fc = 1.8412 c / 2 pi a = 1.8412 c / pi D
Here’s how to make animations like this one. It requires intermediate Unix command-line knowledge, to install some tools and to debug if they don’t work. You’ll need these utilities:
curl
(or you can translate to wget
)convert
and montage
, part of ImageMagickffmpeg
, plus whatever codecsparallel
, for iteration that’s nicer than shell for loops or xargs
zsh
for leading 0s in numerical ranges to work