This file contains hidden or 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
rm -rf dist/app dist/assets/images dist/maps dist/scripts dist/styles && gulp build && cd dist && firebase deploy && cd .. && gulp serve |
This file contains hidden or 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
[{ | |
"title": "Practice", | |
"practice": true, | |
"position": 1, | |
"random_questions": false, | |
"questions": [{ | |
"position": null, | |
"question": "money", | |
"answer": "duck", | |
"language": "en" |
This file contains hidden or 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
[{ | |
"title": "Practice", | |
"practice": true, | |
"position": 1, | |
"random_questions": false, | |
"questions": [{ | |
"position": null, | |
"question": "صديق", | |
"answer": "منزل", | |
"language": "ar" |
This file contains hidden or 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
// practice | |
[ | |
["money", "duck"], | |
["friend", "house"], | |
["clean", "socks"] | |
] | |
// non-practice | |
[ | |
["night", "fast"], |
This file contains hidden or 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
// function getParameterByName( name ){ | |
// name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | |
// var regexS = "[\\?&]"+name+"=([^&#]*)", | |
// regex = new RegExp( regexS ), | |
// results = regex.exec( window.location.href ); | |
// if( results == null ){ | |
// return ""; | |
// } else{ | |
// return decodeURIComponent(results[1].replace(/\+/g, " ")); | |
// } |
This file contains hidden or 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
python3 -m http.server |
This file contains hidden or 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
class Restaurant { | |
constructor( name, city ) { | |
this.name = name; | |
this.city = city; | |
console.log( this.name + ' in ' + this.city ); | |
} | |
} | |
let r = Reflect.construct(Restaurant, ["Pepper Palace", "Peoria"]); |
This file contains hidden or 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
class Foo extends Array {} | |
let arr = Foo.from(['zero','one','two','three']) | |
console.log( arr instanceof Foo ) | |
// true |
This file contains hidden or 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
function fadeIn(id,speed) { | |
var element = document.getElementById(id); | |
var op = 0.1; // initial opacity | |
element.style.visibility = 'visible'; | |
element.style.opacity = op; | |
var timer = setInterval(function () { | |
if (op >= 1){ | |
clearInterval(timer); | |
} | |
element.style.opacity = op; |