Skip to content

Instantly share code, notes, and snippets.

View arisawali2014's full-sized avatar
💢
Depressed

Muhamad Ari Sawali arisawali2014

💢
Depressed
View GitHub Profile
@arisawali2014
arisawali2014 / Waktu Sholat Arah Kiblat.md
Created October 4, 2017 14:43 — forked from siswadi/Waktu Sholat Arah Kiblat.md
Waktu Sholat & Arah Kiblat w/ HTTP/JSON API

Waktu Sholat & Arah Kiblat

Informasi Waktu

https://time.siswadi.com/
https://time.siswadi.com/Asia/Jakarta
https://time.siswadi.com/help
https://time.siswadi.com/?help
https://time.siswadi.com/?timezone=Asia/Jakarta
diff --git a/lib/py/setup.py b/lib/py/setup.py
index c196415..61f8c44 100644
--- a/lib/py/setup.py
+++ b/lib/py/setup.py
@@ -64,7 +64,7 @@ def run_setup(with_binary):
)
else:
extensions = dict()
-
+
diff --git a/lib/py/setup.py b/lib/py/setup.py
index c196415..61f8c44 100644
--- a/lib/py/setup.py
+++ b/lib/py/setup.py
@@ -64,7 +64,7 @@ def run_setup(with_binary):
)
else:
extensions = dict()
-
+
import flask
from flask import *
app = Flask(__name__)
@app.route('/')
def index():
return 'Cara Kode!'
if __name__ == '__main__':
<!DOCTYPE html>
<html>
<head>
<title>Python Flask - Cara Kode!</title>
</head>
<body>
<h1>Cara Kode!</h1>
<h2>Tempat asik belajar coding.</h2>
<a href='https://www.carakode.me/'>Cara kode!</a>
</body>
@arisawali2014
arisawali2014 / combine.py
Created April 28, 2018 06:56 — forked from glombard/combine.py
Merging 4 images into one with Python and PIL/Pillow
# Combine multiple images into one.
#
# To install the Pillow module on Mac OS X:
#
# $ xcode-select --install
# $ brew install libtiff libjpeg webp little-cms2
# $ pip install Pillow
#
from __future__ import print_function
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 300px;
margin: auto;
text-align: center;
font-family: arial;
}
.title {
color: grey;

Keybase proof

I hereby claim:

  • I am arisawali2014 on github.
  • I am arisawali2014 (https://keybase.io/arisawali2014) on keybase.
  • I have a public key ASC44SKcGs6rajkaguy8r2uLLFXY4XeLcoCnislLStzUEgo

To claim this, I am signing this object:

@arisawali2014
arisawali2014 / removeNode.js
Last active June 23, 2021 04:29
Removing object item from array in javascript
var data = [
{id: "1", name: "Snatch", type: "crime"},
{id: "2", name: "Witches of Eastwick", type: "comedy"},
{id: "3", name: "X-Men", type: "action"},
{id: "4", name: "Ordinary People", type: "drama"},
{id: "5", name: "Billy Elliot", type: "drama"},
{id: "6", name: "Toy Story", type: "children"}
];
function RemoveNode(id) {
@arisawali2014
arisawali2014 / RunScheduler.php
Created September 23, 2021 02:14 — forked from robbydooo/RunScheduler.php
Heroku Laravel Scheduler
<?php
/**
This Scheduler will run once every minute unlike the Heroku scheduler which only runs every 10 mintues.
To use this scheduler with Laravel 5.4+ add this file to /app/Console/Commands/RunScheduler.php
Register this file in app/Console/Kernel.php