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
// Reverse Unicode Linebreaks | |
block = block.replace(/\uffff/g, '\n'); |
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 semver = require("semver"); | |
var blocks = [{group:"", name:"", version:""},{group:"", name:"", version:""}] | |
// sort by group ASC, name ASC, version DESC | |
blocks.sort(function(a, b) { | |
var nameA = a.group + a.name; | |
var nameB = b.group + b.name; | |
if (nameA === nameB) { | |
if (a.version === b.version) |
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
/** | |
* Detect and return OS specific line ending. | |
* | |
* @returns {String} | |
*/ | |
function detectLineEnding() { | |
if ( os.platform() === 'win32' ) | |
return '\r\n'; | |
if ( os.platform() === 'darwin' ) |
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
/** | |
* Detect and return OS specific line ending. | |
* | |
* @returns {String} | |
*/ | |
function detectLineEnding() { | |
if ( os.platform() === 'win32' ) | |
return '\r\n'; | |
if ( os.platform() === 'darwin' ) |
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 apiData = JSON.stringify(blocks, null, 2); | |
apiData = apiData.replace(/(\r\n|\n|\r)/g, app.options.lineEnding); |
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
react-native start --reset-cache |
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
------------- uggly solution | |
if(num es multiplo de 3){ | |
if(num es multiplo de 5){ | |
//FizzBuzz | |
} else { | |
// Fizz | |
} | |
}else if(multiplo de 5){ | |
// buzz |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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
package anyp; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Properties; | |
import java.util.Set; | |
import org.codehaus.jackson.JsonGenerationException; | |
import org.codehaus.jackson.map.JsonMappingException; | |
import org.codehaus.jackson.map.ObjectMapper; |
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
<h1>Hello world, foobar,</h1> | |
<h2>test</h2> | |
dvera@sunset.com dvera@sunset.com | |
http://hello.com | |
http://hello-aaaa.com |