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
<h1>Hello world, foobar,</h1> | |
<h2>test</h2> | |
dvera@sunset.com dvera@sunset.com | |
http://hello.com | |
http://hello-aaaa.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
#!/usr/bin/env bash | |
# usage: hook.sh ./**/*.ext "echo 'hello world when this file changes'" | |
inotify-hookable -f $1 -c "$2" |
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 root = "./assets"; | |
var publicPath = "./public/assets"; | |
var cssPath = publicPath + "/css/"; | |
var jsPath = publicPath + "/js/"; | |
var htmlDevelopmentFiles = ['./app/views/**/*.html']; | |
var sass = { | |
source: root + '/css/', | |
dest: cssPath, | |
pattern: "**/*.scss" |