This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
width: 970px; | |
margin: 0 auto; |
<?php | |
/** | |
* Template part for displaying posts. | |
* | |
* @link https://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package KAMUPI_THEME | |
*/ | |
?> |
import Foundation | |
import Alamofire | |
public enum Router:URLRequestConvertible { | |
public static let baseUrlString:String = "http://testapi.example.com" | |
case Upload(fieldName: String, fileName: String, mimeType: String, fileContents: NSData, boundaryConstant:String); | |
var method: Alamofire.Method { | |
switch self { | |
case Upload: |
http://blog.joefallon.net/2013/10/install-mysql-on-mac-osx-using-homebrew/ |
install PostgreSQL 9 in Mac OSX via Homebrew | |
Mac OS X Snow Leopard | |
System Version: Mac OS X 10.6.5 | |
Kernel Version: Darwin 10.5.0 | |
Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
sh-3.2# brew install postgresql |
-> http://codepen.io/abujupaj/pen/zvgMQL | |
HTML | |
-------------------------------------------- | |
<link href='https://fonts.googleapis.com/css?family=Playfair+Display:400,900,700' rel='stylesheet' type='text/css'> | |
<div id="top"> | |
<div class="perspective"> | |
<div class="card"> |
const path = require('path'); | |
exports.createPages = ({ graphql, actions }) => { | |
const { createPage } = actions; | |
return new Promise((resolve, reject) => { | |
const postTemplate = path.resolve('src/templates/post.jsx'); | |
const tagPage = path.resolve('src/pages/tags.jsx'); | |
const tagPosts = path.resolve('src/templates/tag.jsx'); |
import React, { useState, useEffect} from 'react' | |
import { UnControlled as CodeMirror } from 'react-codemirror2' | |
// import * as cm from "codemirror" | |
import 'codemirror/lib/codemirror.css' | |
import 'codemirror/theme/neo.css' | |
if (typeof navigator !== `undefined`) { | |
require('codemirror/mode/markdown/markdown') | |
require('codemirror/mode/javascript/javascript') | |
require('codemirror/mode/jsx/jsx') |
// console.log(value[1]._d.toString().match(/\d{4}|\d{4}\-\d{4}/)[0]) | |
// const startYear = value[0]._d.toString().match(/\d{4}|\d{4}\-\d{4}/)[0]; | |
// const endYear = value[1]._d.toString().match(/\d{4}|\d{4}\-\d{4}/)[0]; |