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 prompt = require("prompt-sync")(); | |
let rowsQuantity; | |
let columnsQuantity; | |
let matrix = []; | |
function getRowAndColumn(){ | |
rowsQuantity = parseInt(prompt('how many rows does your matrix have? ')); | |
columnsQuantity = parseInt(prompt('how many columns does your matrix have? ')); |
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
you either rule yourself for your own passion, | |
or there is someone out there who will rule you | |
for his own passion. | |
That's up to YOU! |
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
import com.google.gson.Gson; | |
import java.io.DataOutput; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.net.Socket; | |
public class Client { | |
public static void main(String[] args) throws IOException { | |
Socket socket = new Socket("localhost",5000); |
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 how you pass arguments when assigning a callback in React | |
*/ | |
const callback = (event,argument) => { | |
console.log(argument) //will print yess | |
} | |
<div onClick={this.callback.bind(this,"yes")}> | |
hello world! | |
</div> |
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
heroku ps:scale web=0 | |
heroku ps:scale web=1 | |
or | |
heroku maintenance:on | |
heroku maintenance:off | |
# http://stackoverflow.com/questions/2811453/how-to-stop-an-app-on-heroku |
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
xdotool selectwindow | |
#type in the number you get from the previous command instead of <window id> | |
xdotool windowminimize <window id> |
Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux
Although I highly recommend using a snap
sudo snap install postman
tar -xzf Postman-linux-x64-5.3.2.tar.gz
find the extension you want from the website for example: https://extensions.gnome.org/extension/771/proxy-switcher/
the number behind the name of the extension inside the url is the id of this extension. note it down.
run this command with the id of your extension
OlderNewer