Skip to content

Instantly share code, notes, and snippets.

View y0n3r's full-sized avatar

Yonas Hassen y0n3r

  • Warner Bros. Discovery
  • Washington, D.C.
  • X @yonas
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1DDWEm3xvbLBGb8UWrbb7eYqApMqFJMfcS https://explorer.blockstack.org/address/1DDWEm3xvbLBGb8UWrbb7eYqApMqFJMfcS
@y0n3r
y0n3r / iife.sublime-snippet
Created March 16, 2015 17:18
Snippet for creating an IIFE code block with jQuery passed in as a parameter.
<snippet>
<content><![CDATA[
(function( \$ ) {
${1}
})( jQuery );
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>iife</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<button>Click me.</button>
@y0n3r
y0n3r / svn-merge.sh
Last active December 21, 2015 21:58
How to roll back a file from the latest working copy back to a previous revision in SVN.
svn merge -r [latest revision]:[previous revision] [filename]
svn ci -m "Commit message" [filename]
@y0n3r
y0n3r / fnr-fonts.css
Created August 27, 2013 21:43
A partial font list used by FNR.
/*
Font: Franklin Gothic
Style: Book
URL: http://www.youworkforthem.com/product.php?sku=T0987
Foundry: URW++
Foundry: http://www.youworkforthem.com/designer/204/urw
Copyright: Copyright 2010 URW++ Design & Development
Version: 1.1
Created: September 06, 2012
License: http://www.youworkforthem.com/font-license
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CSS: source.css
if (!window._AIM) window._AIM = {};
$.extend(window._AIM, {
config: {
aimContextRoot: "/aim",
aimHost: "aim.foodnetwork.com",
contactUsUrl: "http://www.foodnetwork.com/about/viewer-relations",
janrainAppId: "N/A",
janrainAppUrl: "https://login.dev1-foodnetwork.com",
loginURL: "https://mysecure.foodnetwork.com/aim/rest/login",
registerURL: "https://mysecure.foodnetwork.com/aim/rest/register",
@y0n3r
y0n3r / aim-viewport.html
Last active December 18, 2015 18:10
Viewport <meta> tag that is used for Mobile AIM project.
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
@y0n3r
y0n3r / gist:5769045
Created June 12, 2013 20:57
Vector image HTML example snippet.
<object data="path/to/img.svg" type="image/svg+xml">
<!--[if lte IE 8 ]-->
<img src="path/to/img.gif">
<!--![endif]-->
</object>
@y0n3r
y0n3r / jQuery Ready Sublime Text 2 Snippet
Last active December 17, 2015 02:09
Just a simple Sublime Text 2 snippet that shortcuts to jQuery's ready callback. Note the escape character in <content>!
<snippet>
<content><![CDATA[
\$(function() {
${1}
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jready</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>