Skip to content

Instantly share code, notes, and snippets.

@Godoy
Godoy / rails_mailer_smtp.md
Last active March 11, 2024 19:01
Config Ruby on Rails with SMTPs - dreamhost outlook

Settings for rails smtp

config/environments/development.rb

Set raise_delivery_errors true on development

  config.action_mailer.raise_delivery_errors = true 

IMPORTANT

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 28, 2025 00:02
OS X Screencast to animated GIF

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:

@zenorocha
zenorocha / README.md
Last active February 10, 2025 07:42
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

macro _ {
case ( $def:lit ( $vars ... ) $ret ) => {
dis.op($def, function() {var $vars ...; return $ret;})
}
case ( $def:lit $ret ) => {
dis.op($def, function() {return $ret;})
}
}
var dis = require('./DAR4');
@tsenga
tsenga / README.markdown
Created November 11, 2012 18:44
Visualisation Exploration: D3: Timeline Experiment

An experiment within the Visualisation Exploration series.

Exploring, techniques and practices in the field of data visualisation.

See the output: http://bl.ocks.org/tsenga/4055833.

Key history of this experiment:

  • D3, the data driven visualisation enabler.
  • Initial prototype written in handcrafted SVG with handcrafted data
@thuytrinh
thuytrinh / MainActivity.java
Last active September 21, 2020 01:22
Create carousel view with ViewPager
package com.thuytrinh.cardselectordemo;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.app.Activity;
@axpence
axpence / gist:3896515
Created October 16, 2012 00:15
Working switch AND morse code!
.title "morse.asm"
;*******************************************************************************
; Project: morse.asm
; Author: Student Code
;
; Description: Outputs a message in Morse Code using a LED and a transducer
; (speaker). The watchdog is configured as an interval timer.
; The watchdog interrupt service routine (ISR) toggles the green
; LED every second and pulse width modulates (PWM) the speaker
; such that a tone is produced.
typedef struct Poly
{
int x, y, z, .. // etc values
struct Poly* next;
} Poly;
Poly* g_sortArray[MaxBuckets];
static void addPoly(Poly* poly, int z)
{
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@mbostock
mbostock / .block
Last active February 22, 2019 23:02
d3.time.scale nice
license: gpl-3.0