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
function blinkingAnimation(evt, el, o) { | |
var target = Ext.get(o.element || el); | |
var blink = { | |
run: function () { | |
target.fadeOut(100); | |
target.fadeIn(100); | |
}, | |
interval: 200, | |
repeat: o.repeat || 10 |
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
<form> | |
<div> | |
<label><input type="checkbox" /> Label text</label> | |
</div> | |
<div> | |
<label><input type="checkbox" /> http://stackoverflow.com/questions/306252/how-to-align-checkboxes-and-their-labels-consistently-cross-browsers</label> | |
</div> | |
</form> | |
<style type="text/css"> |
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
{ | |
"keys": ["super+shift+r"], | |
"command": "reveal_in_side_bar" | |
}, | |
{ | |
"keys": ["super+f", "super+i"], | |
"command": "open_dir", | |
"args": {"dir": "$file_path", "file": "$file_name"} | |
} |
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
Show hidden characters
{ | |
"predef":[ | |
"_" | |
], | |
"bitwise" : true, | |
"camelcase" : false, | |
"curly": false, | |
"eqeqeq": true, | |
"forin": true, |
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
;(function ($, window, document, undefined) { | |
'use strict'; | |
Foundation.libs.dropdownhover = $.extend({}, Foundation.libs.dropdown, { | |
name : 'dropdownhover', | |
version : '1.0.0', | |
init: function (scope, method, options) { | |
Foundation.inherit(this, 'throttle'); |
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
/** | |
* Get YouTube ID from various YouTube URL | |
* @author: takien | |
* @url: http://takien.com | |
* For PHP YouTube parser, go here http://takien.com/864 | |
*/ | |
function YouTubeGetID(url){ | |
var ID = ''; | |
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
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
function normalizeUrl(url) { | |
var protocol; | |
url = encodeURI(url); | |
protocol = url.match(/^https?/); | |
url = url.replace(/\/$/, ''); | |
url = url.replace(/^https?:\/\//, ''); | |
url = url.replace(/^www./, ''); | |
url = (protocol ? protocol[0] : 'http') + '://www.' + url; | |
return url; | |
} |
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
https?:\/\/ // Required scheme. Either http or https. | |
(?:[a-z0-9-]+\.)? // Optional subdomain. | |
vimeo\.com\/ // Domain name. | |
(?: // Group path alternatives. | |
moogaloop.swf\?clip_id= // Either moogaloop.swf?clip_id= | |
|video\/ // or video/ | |
)? // or nothing. End path alternatives. | |
(?: | |
channels\/ // channels/channel_name/ | |
[^\/]+\/ |
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
data['vm']['synced_folder'].each do |i, folder| | |
if folder['source'] != '' && folder['target'] != '' && folder['id'] != '' | |
nfs = (folder['nfs'] == "true") ? "nfs" : nil | |
config.vm.synced_folder "#{folder['source']}", "#{folder['target']}", id: "#{folder['id']}", type: nfs, | |
owner: "vagrant", | |
group: "www-data", | |
mount_options: ["dmode=775", "fmode=664"] | |
end | |
end |
OlderNewer