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
http://llizard.etherwork.net/cwc/charactmap.html |
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
numericField = function (elementId) { | |
var allowed = [0, 8]; | |
for (var i = 48; i < 58; i++) { | |
allowed.push(i); | |
} | |
$("#" + elementId).keypress(function(e){ | |
if (!(allowed.indexOf(e.which) >= 0)) { | |
e.preventDefault(); |
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
.panelNode-script { background-color: #EFEFE7; color: black; cursor: default; font-family: Monaco,Monospace,Courier New !important; font-size: 12px; } | |
.sourceRow.hovered { background-color: #EEEEEE; } | |
.sourceLine { background: none no-repeat scroll 2px 0 #EEEEEE; border-bottom: 1px solid #EEEEEE; border-right: 1px solid #CCCCCC; color: #888888; } | |
.sourceLine:hover { text-decoration: none; } | |
.scriptTooltip { background: none repeat scroll 0 0 LightYellow; border: 1px solid #CBE087; color: #000000; } | |
.sourceRow[exeline="true"] { background-color: lightgoldenrodyellow; outline: 1px solid #D9D9B6; } | |
.js-comment { color: gray; font-size: 11px; } | |
.whitespace { color: blue; } | |
.js-variable { color: #7C3A99; font-size: 11px; } | |
.js-punctuation { color: black; font-size: 11px; } |
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 arr = "123456789012341".match(/.{3,4}/g); | |
console.log(arr); // ["1234", "5678", "9012", "341"] |
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
http://www.microsoft.com/en-us/download/details.aspx?id=11575 |
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
$('#securityCode').bind('paste', function() { | |
var el = this; | |
setTimeout(function() { | |
el.value = el.value.replace(/\D/g, ''); | |
}, 0); | |
}); |
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
{ | |
"name": "themeswitch", | |
"version": "0.0.1", | |
"description": "Easily switch between your two predefined themes for Sublime Text.", | |
"dependencies": {}, | |
"devDependencies": { | |
"coffee-script": "^1.9.3", | |
"json-format": "0.0.1" | |
}, | |
"author": "Fatih Acet <fatih@fatihacet.com>" |
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
{ | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/One Dark Color Scheme/One Dark.tmTheme", | |
"detect_indentation": false, | |
"enable_tab_scrolling": false, | |
"ensure_newline_at_eof_on_save": true, | |
"env": | |
{ | |
"PATH": "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/share/npm/bin/" | |
}, |
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
$.ajax({ | |
type: 'GET', | |
dataType: 'xml', | |
url: '/feed', | |
success: function(xmlDocument) { | |
var rss = $(xmlDocument.firstChild); | |
console.log(rss.find('item')); | |
} | |
}); |