Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| <?php | |
| /** | |
| * Quickly and easily backup your MySQL database and have the .tgz copied to | |
| * your Dropbox account. | |
| * | |
| * Copyright (c) 2012 Eric Silva | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| <form action="/"> | |
| <legend>A Sample Form Legend</legend> | |
| <label for="name">Name: </label> | |
| <input type="text" value="Name" name="Name" /> | |
| <label for="email">Email: </label> | |
| <input type="email" value="Email" name="Email" /> |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: znc | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: znc initscript | |
| # Description: This is the init-Script for znc. | |
| ### END INIT INFO | |
| # Author: Henner M. Kruse |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script> | |
| window.onload = function () { | |
| console.log(''+(+new Date)+': Onload fired'); | |
| }; | |
| document.onreadystatechange = function () { | |
| console.log(''+(+new Date)+': Ready state changed'); |
| <!-- 1. Take your Campaign Monitor subscribe form as generated from within your account: --> | |
| <form action="http://myaccount.createsend.com/t/r/s/aljhk/" method="post" id="subForm"> | |
| <div> | |
| <label for="name">Name:</label><br /><input type="text" name="cm-name" id="name" /><br /> | |
| <label for="aljhk-aljhk">Email:</label><br /><input type="text" name="cm-aljhk-aljhk" id="aljhk-aljhk" /><br /> | |
| <input type="submit" value="Subscribe" /> | |
| </div> | |
| </form> |
| // Add a getElementsByClassName function if the browser doesn't have one | |
| // Limitation: only works with one class name | |
| // Copyright: Eike Send http://eike.se/nd | |
| // License: MIT License | |
| if (!document.getElementsByClassName) { | |
| document.getElementsByClassName = function(search) { | |
| var d = document, elements, pattern, i, results = []; | |
| if (d.querySelectorAll) { // IE8 | |
| return d.querySelectorAll("." + search); |
| var fs = require('fs'), | |
| util = require('util'), | |
| Stream = require('stream').Stream; | |
| /** | |
| * Create a bandwidth limited stream | |
| * | |
| * This is a read+writeable stream that can limit how fast it | |
| * is written onto by emitting pause and resume events to | |
| * maintain a specified bandwidth limit, that limit can |