Skip to content

Instantly share code, notes, and snippets.

@kerryboyko
kerryboyko / README.md
Last active April 26, 2023 16:08
VueJS Best Practices Guide

Deverus Vue.js Style Guide

Guide for developing Vue.js applications.

v. 0.0.1

Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.

However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.

@mschoebel
mschoebel / main.go
Created March 6, 2014 20:02
Snippet: login/logout (Golang)
package main
import (
"fmt"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
"net/http"
)
// cookie handling
@dorajistyle
dorajistyle / google_blogger_index_page
Created December 11, 2013 15:02
구글 블로거에 목차 페이지를 생성해 주는 스크립트입니다. 새 페이지를 생성해서 아래 코드를 넣으시면 됩니다. Google blogger index page from labels. This template generate a index page with post's labels. Create new page in blogger. And then copy and paste this code into page.
<div id="index_category"></div>
<div id="index_main"></div>
<script src="http://codeorigin.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
// categories 변수에 원하는 label을 넣으세요.
// 부모 카테고리 : [자식 카테고리 0..n]
// The categories should contain category labels that you want to display in index page.
// parent_category : [child_categories 0..n]
@dorajistyle
dorajistyle / font-awesome-ie7.min.css
Created November 14, 2013 05:24
Font Awesome 4.0.3 Internet explorer 7 support. Font Awesome not support IE7 officially. But sometimes we need to support IE7.
.fa-lg{font-size:1.3333333333333333em;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;vertical-align:middle;}
.nav [class^="fa-"],.nav [class*=" fa-"]{vertical-align:inherit;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;}.nav [class^="fa-"].fa-lg,.nav [class*=" fa-"].fa-lg{vertical-align:-25%;}
.nav-pills [class^="fa-"].fa-lg,.nav-tabs [class^="fa-"].fa-lg,.nav-pills [class*=" fa-"].fa-lg,.nav-tabs [class*=" fa-"].fa-lg{line-height:.75em;margin-top:-7px;padding-top:5px;margin-bottom:-5px;padding-bottom:4px;}
.btn [class^="fa-"].pull-left,.btn [class*=" fa-"].pull-left,.btn [class^="fa-"].pull-right,.btn [class*=" fa-"].pull-right{vertical-align:inherit;}
.btn [class^="fa-"].fa-lg,.btn [class*=" fa-"].fa-lg{margin-top:-0.5em;}
a [class^="fa-"],a [class*=" fa-"]{cursor:pointer;}
.fa-glass{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf000;');}
.fa-music{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf001;');}
.fa-se
@ddesilva
ddesilva / ga-tracking-helper.js
Created July 9, 2012 23:24
Require.js Module for the Google Analytics API
define(['require', 'exports'], function(require, exports) {
exports.GATrackingHelper = function(settings) {
// MEMBERS & DEFAULTS
var urchinId = settings.gaqId || false,
devId = settings.devId || 'UA-3172639-5',
page = settings.page || null,
trackingLabel = settings.label || false,
domainName = settings.domainName || '.defencejobs.gov.au',