Skip to content

Instantly share code, notes, and snippets.

View matiskay's full-sized avatar

Edgar Marca matiskay

View GitHub Profile

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@matiskay
matiskay / Gemfile
Created January 4, 2012 17:54 — forked from vangberg/README
Deploying a Sinatra app to Heroku
source 'http://rubygems.org'
gem 'sinatra'
gem 'dm'
@matiskay
matiskay / kernels.mkd
Last active September 17, 2019 15:52
Seleção para o Mestrado e Doutorado em Estatística
@matiskay
matiskay / widget-skeleton.php
Created December 14, 2011 19:22
Wordpress Widget Skeleton
<?php
class Widget_Name extends WP_Widget {
function Widget_Name() {
$widget_opts = array(
'classname' => 'your-awesome-class',
'description' => 'Your awesome Description',
);
@matiskay
matiskay / new-gist
Created September 27, 2018 17:02
gist
gist
import dataset
class DatasetPipeline(object):
def __init__(self, dataset_uri, dataset_table):
self.dataset_uri = dataset_uri
self.dataset_table = dataset_table
@classmethod
def from_crawler(cls, crawler):
@matiskay
matiskay / wp-snippets.php
Created September 20, 2011 20:39
Wordpress Snippets
<?php
// http://johnford.is/programmatically-pull-attachments-from-wordpress-posts/
// http://www.wprecipes.com/how-to-show-wordpress-post-attachments
// get all of the images attached to the current post
function _get_images($size = 'thumbnail') {
global $post;
$photos = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') );
SESSION_PAGE="https://streamza.com/api/sessions/_login"
COOKIE_FILE="wget-cookies.txt"
USERNAME="USERNAME"
PASSWORD="PASSWORD"
FILE_URL="FILE_TO_DOWNLOAD"
if [[ ! -f $COOKIE_FILE ]]; then

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets