This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<% for (int ${1:i}=${2:start}; $1<${3:end}; $1++) { %> | |
${4:<!--code-->} | |
<% } %> | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>for</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>text.html.jsp</scope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class node_builder::build { | |
class { 'nodejs': | |
version => '0.10.5', | |
} | |
# Uses NPM provider from PuppetLabs Node.js project. | |
# https://github.com/puppetlabs/puppetlabs-nodejs | |
package { 'forever': | |
ensure => installed, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$config['views_paths'] = array( | |
APPPATH . 'views/' | |
); | |
$config['cache_path'] = APPPATH . 'cache/blade/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mac = /mac/i.test(navigator.appVersion); | |
var ios = /(iphone|ipad)/i.test(navigator.appVersion); | |
var win = /(win)/i.test(navigator.appVersion); | |
var wp = /windows phone/i.test(navigator.appVersion); | |
var unix = /(linux|x11)/i.test(navigator.appVersion); | |
var android = /android/i.test(navigator.appVersion); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint browser:true, devel:true*/ | |
/*global $*/ | |
$(document).on('click', '#dvcs-commits-tabpanel', function () { | |
// Wait for the commits to load... | |
setTimeout(function () { | |
var commits = {}; | |
$('.CommitHeader > a').each(function() { | |
var $this = $(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $frame = $('#ptifrmtgtframe'); | |
$frame.load(function () { | |
// If refresh button not found, don't continue | |
if ($frame.contents().find('#REFRESH_BTN').length === 0) { | |
$('#turbo-enabled').remove(); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS | |
.timerWrapper { | |
color: #fff; | |
left: 5px; | |
position: fixed; | |
top: 5px; | |
z-index: 9999; | |
} | |
.timer { | |
height: 15px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"version": "5.6.4", | |
"id": "178362" | |
}, | |
{ | |
"version": "5.6.3", | |
"id": "178179" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires Chrome and the Control Freak (https://chrome.google.com/webstore/detail/control-freak/jgnchehlaggacipokckdlbdemfeohdhc) extension | |
/* Libs: | |
- https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js | |
- https://cdnjs.cloudflare.com/ajax/libs/draggabilly/1.2.0/draggabilly.pkgd.min.js | |
- https://cdn.rawgit.com/meetselva/attrchange/d3f8524374b0ad11f320b51f7b188ae940314dba/js/attrchange.js | |
*/ | |
// Make dialogs draggable | |
$(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AJS.$(document).ajaxSuccess(function (e, xhr, settings) { | |
if (/\/dev-status\/.*dataType=repository/.test(settings.url)) { | |
xhr.done(function (data) { | |
var info = {}; | |
data.detail[0].repositories.forEach(function (repository) { | |
info[repository.name] = info[repository.name] || []; | |
info[repository.name] = _.pluck(repository.commits, 'id'); | |
}); |
OlderNewer