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
### Add this code to your .zshrc or .bash_profile | |
function gacp() { | |
local files=() | |
local commit_message="" | |
while [[ "$#" -gt 0 ]]; do | |
case $1 in | |
-m) | |
shift |
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
#!/bin/bash | |
#author: [email protected] | |
#ffmpeg command from : https://gist.github.com/kurlov/32cbe841ea9d2b299e15297e54ae8971 | |
NOCOLOR='\033[0m'; | |
RED='\033[0;31m'; | |
GREEN='\033[0;32m'; | |
[ -d added ] || mkdir added |
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 touchstartX = 0; | |
var touchstartY = 0; | |
var touchendX = 0; | |
var touchendY = 0; | |
var gesuredZone = document.getElementById('gesuredZone'); | |
gesuredZone.addEventListener('touchstart', function(event) { | |
touchstartX = event.screenX; | |
touchstartY = event.screenY; |
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
const array=[[1,2,[3]],4]; | |
array.flat(Infinity) | |
//Array(4) [ 1, 2, 3, 4 ] |
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
.App { | |
text-align: center; | |
} | |
.App-logo { | |
animation: App-logo-spin infinite 20s linear; | |
height: 40vmin; | |
pointer-events: none; | |
} |
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
[ | |
{ | |
"date": "2010-01-04", | |
"open": "25.436282332605284", | |
"high": "25.835021381744056", | |
"low": "25.411360259406774", | |
"close": "25.710416", | |
"volume": "38409100", | |
"split": "", | |
"dividend": "" |
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
#!/bin/bash | |
if ! which axel > /dev/null; then | |
while true; do | |
read -p "Axel not found,Do you wish to install this program?" yn | |
case $yn in | |
[Yy]* ) sudo apt-get install axel; break;; | |
[Nn]* ) exit;; |
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
#!/bin/sh | |
####################################### | |
#NimaHKH | |
####################################### | |
#COLORS | |
# Reset | |
Color_Off='\033[0m' # Text Reset |
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){function t(t,n){var e=t.find("tr:has(td)"),o=String.fromCharCode(11),a=String.fromCharCode(0),r='"'+e.map(function(t,n){return $(n).find("td").map(function(t,n){return $(n).text().replace(/"/g,'""')}).get().join(o)}).get().join(a).split(a).join('"\r\n"').split(o).join('","')+'"';if(window.Blob&&window.URL){var i=new Blob([r],{type:"text/csv;charset=utf-8"}),c=URL.createObjectURL(i);$(this).attr({download:n,href:c})}else{var d="data:application/csv;charset=utf-8,"+encodeURIComponent(r);$(this).attr({download:n,href:d,target:"_blank"})}}$(".export").on("click",function(n){var e=[$("#dvData>table"),"export.csv"];t.apply(this,e)})}); | |
</script> | |
<style> | |
a.export, | |
a.export:visited { | |
display: inline-block; | |
text-decoration: none; |