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
# include<iostream> | |
using namespace std; | |
int main(){ | |
for(int x=0;x<300;x++){ | |
for(int y=0;y<300;y++){ | |
cout<<(x+y-150 & x-y+150?" ":"#"); | |
} | |
cout<<endl; | |
} | |
return 0; |
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 . -name "*.zip" | xargs -P 5 -I fileName sh -c 'unzip -o -d "$(dirname "fileName")/$(basename -s .zip "fileName")" "fileName"' |
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
let add = (x, y) => { | |
console.log(x + y); | |
return new Promise((resolve, reject) => { | |
if (x < 0) { | |
reject("x should be greater than 0") | |
} | |
else | |
resolve(x + y) | |
}) | |
} |
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 Discord = require('discord.js') | |
const client = new Discord.Client() | |
const axios = require('axios') | |
client.on('message', msg => { | |
axios.get('https://translate.yandex.net/api/v1.5/tr.json/translate', { | |
params: { | |
key: 'YANDEX_KEY', | |
text: msg.content, | |
lang: 'en' | |
} |
NewerOlder