MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
// Original code: | |
// https://github.com/ariya/phantomjs/blob/master/examples/waitfor.js | |
// https://github.com/ariya/phantomjs/blob/master/examples/rasterize.js | |
/** | |
* Wait until the test condition is true or a timeout occurs. Useful for waiting | |
* on a server response or for a ui change (fadeIn, etc.) to occur. | |
* | |
* @param testFx javascript condition that evaluates to a boolean, | |
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> body { font-family: sans-serif; } </style> | |
<body> | |
<script src="require.js"></script> | |
<script> | |
require.config({ | |
paths: { | |
d3: "http://d3js.org/d3.v3.min" | |
} |
<?php | |
//https://github.com/laravel/framework/issues/2093#issuecomment-39154456 | |
use Illuminate\Database\Eloquent\Model as Eloquent; | |
use Illuminate\Database\Eloquent\Relations\Pivot; | |
class User extends Eloquent { | |
public function groups() { | |
return $this->belongsToMany('Group'); |
// Created by Max Luster (@maxluster) | |
// Usage instructions at https://bugsnag.com/blog/responsive-typography-with-chained-media-queries | |
// Requires SASS >= 3.3 | |
// Enhanced by Breakpoint 2.4.x and Compass 1.0 (alpha) | |
// For SASS 3.2.x support, use https://gist.github.com/maxluster/c9ecc6e4a6770e507c2c | |
// Provides a simplified syntax for chaining media queries across named or numeric breakpoints | |
@mixin responsive($properties, $default-value, $responsive-values){ | |
// No named breakpoints by default |
<?php | |
/** | |
* Plugin Name: Grunt Sitemap Generator | |
* Plugin URI: http://www.github.com/lgladdy | |
* Description: Generate a JSON list of every page on a site so it can be used with grunt and uncss. Create a folder in /wp-content called mu-plugins, and drop this code into that folder, as grunt-sitemap.php | |
* Author: Liam Gladdy | |
* Author URI: http://gladdy.co.uk | |
* Version: 1.0 | |
*/ | |
#!/usr/bin/env ruby | |
require "net/http" | |
require 'open-uri' | |
def download(url, acta) | |
File.open("presidente/#{acta}", "wb") do |saved_file| | |
# the following "open" is provided by open-uri | |
open(url, 'rb') do |read_file| | |
saved_file.write(read_file.read) |
@Grab('com.itextpdf:itextpdf:5.3.4') | |
@GrabConfig(systemClassLoader = true) | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import com.itextpdf.text.DocumentException; | |
import com.itextpdf.text.pdf.PdfContentByte; | |
import com.itextpdf.text.pdf.PdfReader; | |
import com.itextpdf.text.pdf.PdfStamper; | |
import com.itextpdf.text.pdf.PdfRectangle; |
<div id="the-basics"> | |
<input class="typeahead" type="text" placeholder="States of USA"> | |
</div> |