Skip to content

Instantly share code, notes, and snippets.

@meongx
meongx / .inputrc
Last active January 7, 2016 05:22
linux configuration
"\eOD": backward-word
"\e[1;5D": backward-word
"\eOC": forward-word
"\e[1;5C": forward-word
"\e[1~": beginning-of-line
"\e[4~": end-of-line
@meongx
meongx / jade-bootstrap-form-input-column.sublime-snippet
Created January 7, 2016 02:01
Sublime Text Snippet for Bootstrap in Jade
<snippet>
<content><![CDATA[
.col-md-${5:2}.col-label
label.control-label(for="in-${1:name}") ${2:label}
.col-md-${6:3}
if hasWriteAccess
input#in-${1:name}.form-control(name="${1:name}" placeholder="${4}" value=(oldInput.${1:name} || data${3}.${1:name}))
else
p.form-control-static= data${3}.${1:name}
]]></content>
@meongx
meongx / youtube-api_pause-after-time.js
Created October 6, 2015 04:22
YouTube iframe API, play and then pause at specified time
(function() {
var stopPlayAt = 10, // Stop play at time in seconds
stopPlayTimer; // Reference to settimeout call
// This code loads the IFrame Player API code asynchronously.
var tag = document.createElement("script");
tag.src = "//www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName("script")[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
@meongx
meongx / httpd-vhosts.conf
Created February 10, 2015 02:11
Cross Domain Proxy
# Laravel App1
Listen 81
NameVirtualHost *:81
<VirtualHost *:81>
DocumentRoot "D:\0m\src\www\yop\core-optic\public"
<Directory "D:\0m\src\www\yop\core-optic\public">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
@meongx
meongx / gulpfile.js
Created February 7, 2015 08:03
Laravel5 Elixir + Gulp to upload changed files to SFTP
var gulp = require('gulp');
var watch = require('gulp-watch');
var sftp = require('gulp-sftp');
var elixir = require('laravel-elixir');
var credentials = {
host: '',
port: 22,
user: '',