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
You don't have to add "jpegtran-bin": "0.2.0" to package.json | |
Remove node_modules folder if necessary | |
Do npm install [email protected] | |
Do npm install | |
It worked for me. |
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
_ |
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
Syntax for Sublime Text | |
LESS | |
https://github.com/danro/LESS-sublime | |
------------------------------------------------------------------------------------- | |
SASS | |
https://sublime.wbond.net/packages/Sass | |
------------------------------------------------------------------------------------- |
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
// <select id="test1"> | |
// <option value="1">a</option> | |
// <option value="2">b</option> | |
// <option value="3">c</option> | |
// </select> | |
document.getElementById('test1').addEventListener('change', function(event){ | |
var that = this; // or event.target | |
// if option has no value attribute, the event value returns the label | |
console.log('value: ' + that.value + ' | label: ' + that.selectedOptions[0].label); |
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
Erklärung zu dem Problem: | |
http://stackoverflow.com/questions/1379934/large-numbers-erroneously-rounded-in-javascript | |
http://www.2ality.com/2012/04/number-encoding.html | |
What you're seeing here is actually the effect of two roundings. Numbers in ECMAScript are internally represented double-precision floating-point. When id is set to 714341252076979033 (0x9e9d9958274c359 in hex), it actually is assigned the nearest representable double-precision value, which is 714341252076979072 (0x9e9d9958274c380). When you print out the value, it is being rounded to 15 significant decimal digits, which gives 14341252076979100. | |
JavaScript uses double precision floating point values, ie a total precision of 53 bits, but you need |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Globals</string> | |
<key>scope</key> | |
<string></string> | |
<key>settings</key> | |
<dict> |
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[ | |
/** | |
* name: $TM_FULLNAME | |
* email: $TM_EMAIL | |
* filename: $TM_FILENAME | |
* @type {{}} | |
*/ | |
(function( ${1:namespace}, \$, undefined ) { |
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://blog.binarymist.net/2013/12/28/evaluation-of-angularjs-emberjs-backbonejs-marionettejs/ | |
https://egghead.io/lessons |
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://wbond.net/sublime_packages/alignment#Package_Settings | |
Usage | |
Make a multi-line selection, or multiple selections | |
Press ctrl+alt+a on Windows and Linux, or cmd+ctrl+a on OS X | |
When using with a multi-line selection, the lines will be indented consistently first. If the selected lines are consistently indented, the first = on each line will be aligned. The character to align to for mid-line alignment can be configured via the settings. | |
Example: | |
befor: |
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
To add a prefix to filenames in an folder. | |
1. open the command line window | |
2. go into the folder where are the files to add the "_prefix" | |
3. FOR /r "." %a in (*.*) DO REN "%~a" "prefix%~nxa" | |
You can also define which files should get prefixed | |
eg. only .txt files | |
FOR /r "." %a in (*.txt) DO REN "%~a" "prefix%~nxa" |
OlderNewer