Skip to content

Instantly share code, notes, and snippets.

View bkataru's full-sized avatar
⚒️
honing thy craft

Baalateja Kataru bkataru

⚒️
honing thy craft
View GitHub Profile
@bkataru
bkataru / heroku-remote.md
Created July 5, 2020 17:48 — forked from randallreedjr/heroku-remote.md
Add a Heroku remote to an existing git repo

Working with git remotes on Heroku

Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.

Adding a new remote

Add a remote for your Staging app and deploy

Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.

$ git remote add staging https://git.heroku.com/staging-app.git
@bkataru
bkataru / media-query.css
Created June 22, 2020 16:58 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@bkataru
bkataru / flask_upload_ajax
Created April 28, 2018 10:54 — forked from kholidfu/flask_upload_ajax
python flask upload file with ajax
<!-- source: http://stackoverflow.com/questions/18334717/how-to-upload-a-file-using-an-ajax-call-in-flask -->
<!-- yang perlu diingat, button yang untuk trigger dipisah dari form2 yang mau di-submit -->
<!-- html -->
<form id="upload-file" method="post" enctype="multipart/form-data">
<fieldset>
<label for="file">Select a file</label>
<input name="file" type="file">
</fieldset>
<fieldset>