#Awesome Javascript A list of amazingly awesome Javascript libraries. ##Interface * ##Rich Text
- http://www.raptor-editor.com
- http://hallojs.org/ Hallo — distraction-free writing for the web
| notification : function(sUrl, sTitle, sContent, onDisplay, onClick, onClose) | |
| { | |
| if(window.webkitNotifications) { // Test si webkitNotifications de Chrome | |
| if (window.webkitNotifications.checkPermission() == 0) { // 0 is PERMISSION_ALLOWED | |
| var notif = window.webkitNotifications.createNotification( | |
| sUrl, // icon url - can be relative | |
| sTitle, // notification title | |
| sContent // notification body text | |
| ); |
| { | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme", | |
| "default_encoding": "Western (ISO 8859-1)", | |
| "detect_slow_plugins": false, | |
| "draw_minimap_border": true, | |
| "fallback_encoding": "Western (ISO 8859-1)", | |
| "font_face": "Source Code Pro", | |
| "font_size": 16, | |
| "highlight_line": true, |
| cd Packages/ | |
| git clone https://github.com/wbond/sublime_package_control.git "Package Control" | |
| cd "Package Control" | |
| git checkout python3 |
| objArray.sort(function(a, b) { | |
| var textA = a.DepartmentName.toUpperCase(); | |
| var textB = b.DepartmentName.toUpperCase(); | |
| return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; | |
| }); |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>.net mobile email tutorial</title> | |
| <style type="text/css"> | |
| /* Outlook link fix */ | |
| #outlook a {padding:0;} | |
| /* Hotmail background & line height fixes */ |
#Awesome Javascript A list of amazingly awesome Javascript libraries. ##Interface * ##Rich Text
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| CKEDITOR.replace('editor1', { | |
| on: { | |
| pluginsLoaded: function(event) { | |
| event.editor.dataProcessor.dataFilter.addRules({ | |
| elements: { | |
| a: function(element) { | |
| var attr = element.attributes; | |
| if(attr.href && attr.href.indexOf('#') === -1) { | |
| element.attributes.target = '_blank'; |
| // Get date string for today's date (e.g. '2011-01-01') | |
| function dateString () { | |
| var d = new Date(Date.now() - 5*60*60*1000); | |
| return d.getUTCFullYear() + '-' | |
| + (d.getUTCMonth() + 1) + '-' | |
| + d.getDate(); | |
| }; |