Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ciriac on github.
  • I am ciriac (https://keybase.io/ciriac) on keybase.
  • I have a public key ASCWQyRvXHxpO7GcdLEX6f3D765KMtL1W-lfpI88VPb7DAo

To claim this, I am signing this object:

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@ciriac
ciriac / gist:9229207
Created February 26, 2014 13:09
Bootstrap: Media object
<div class="media">
<a class="pull-left" href="#">
<img class="media-object" src="" alt="">
</a>
<div class="media-body">
<h4 class="media-heading">Media heading</h4>
</div>
</div>
@ciriac
ciriac / gist:9229199
Created February 26, 2014 13:09
Bootstrap: Media list
<ul class="media-list">
<li class="media">
<a class="pull-left" href="#">
<img class="media-object" src="" alt="">
</a>
<div class="media-body">
<h4 class="media-heading">Media heading</h4>
</div>
</li>
</ul>
@ciriac
ciriac / gist:4520584
Last active December 11, 2015 00:59
CSS: Reset
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@ciriac
ciriac / gist:3784041
Last active October 11, 2015 01:48
HTML: Starter template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="Author" content="Ciriac Tromp">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Project title</title>
<link rel="stylesheet" href="css/style.css">
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
@ciriac
ciriac / gist:3783994
Created September 25, 2012 19:43 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}