bower
ember-cli
ember-cli-windows
gitignore
jshint
swagger
editorconfig-cli
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 script uses Node.js | |
// the 'arrayFile.json' is in the same folder as where you're running this command. | |
// This is not a script, but just the commands. Run from the shell. | |
// Sample item from the JSON file: | |
// { "id": "1" , "name": "one" } | |
// Files are saved under the folder 'itemsFolder', each item is saved in a JSON file name '<id>.json'. | |
var itemsArray = require('./arrayFile.json'); | |
itemsArray.forEach( function (item) { item.writeFileSync('itemsFolder/' + item.id + '.json', JSON.stringify(item) ); } ); |
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
--- | |
-- Find out current branch | |
-- @return {false|git branch name} | |
--- | |
function get_git_branch() | |
for line in io.popen("git branch 2>nul"):lines() do | |
local m = line:match("%* (.+)$") | |
if m then | |
return m | |
end |
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 allposts = []; | |
function redirectToCorrectPage() { | |
{% for post in site.posts %} | |
allposts.push("{{ site.url }}{{ post.url }}"); | |
{% endfor %} | |
var url = window.location.toString(); | |
if (url.slice(-1) === "/") { | |
url = url.slice(0, -1); | |
} | |
var allpostsUpperCase = allposts.map(function(value) { |
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 is a modified version of the userstyle "Twitter Persian/Arabic Optimization" | |
https://userstyles.org/styles/119923/twitter-persian-arabic-optimization | |
This modification applies the Arabic font only on text with Arabic language while keeping | |
other languages with the default font | |
This is done using the :lang(ar) attribute | |
http://stackoverflow.com/a/15267560/463 | |
*/ | |
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
javascript:(function() | |
{ | |
var url = window.location; | |
if(url.origin.indexOf("www.youtube.com") == -1) | |
{ | |
alert("Sorry, this is not a YouTube page! URL: " + url.href); | |
} | |
else | |
{ | |
var width = "width=" + 600; |
NewerOlder