Skip to content

Instantly share code, notes, and snippets.

View andipyk's full-sized avatar
🏠
Working from home

Andi Syafrianda andipyk

🏠
Working from home
View GitHub Profile
@andipyk
andipyk / README.md
Last active December 13, 2019 22:23

Aplikasi ATM ( Tugas 0 - OSG08 )

Aplikasi ATM sederhana yang dapat dijalankan melalui Terminal atau Command Prompt (CMD) menggunakan bahasa Dart.

Ketentuan:

  1. Minimal terdapat 2 akun atau lebih.
  2. Login menggunakan PIN.
  3. Jika PIN salah kembali ke login awal.
  4. Jika PIN benar masuk ke halaman utama.
  5. Di halaman utama terdapat minimal 3 menu (Tarik Tunai, Setor Tunai, Cek Saldo)
@andipyk
andipyk / unfollow-everyone-on-instagram.js
Last active January 26, 2021 18:53 — forked from clins1994/unfollow-everyone-on-instagram.js
Unfollow Everyone on Instagram
// HOW TO RUN IT ON GOOGLE CHROME
// 1. OPEN INSTAGRAM
// 2. OPEN LIST OF FOLLOWERS
// 3. OPEN DEVELOPER TOOLS
// 4. COPY EVERYTHING HERE CTRL + A
// 5. PASTE EVERYTHING IN DEVELOPER TOOLS CONSOLE
// 6. CLICK ENTER
// THERE YOU WILL SOON HAVE NO FRIENDS
const FOLLOWING_BUTTON_TEXT = 'Following' //'フォロー中' // CHANGE THIS TO YOUR LANGUAGE
@andipyk
andipyk / instagramunfollowers.js
Created May 17, 2020 22:10 — forked from Acesmndr/instagramunfollowers.js
Get Instagram Unfollowers: Get a list of people whom you follow but who do not follow you back on Instagram as well as the list of people who follow you but whom you don't follow back!
// Gist by acesmndr@gmail.com Rev 2.1.2 May 15, 2019
// go to your insta profile page (not the home page). It looks something like this: https://instagram.com/YOUR_PROFILE
// Open javascript console "Ctrl + Shift + i" in Windows/Linux and "Cmd + option + i" in Mac.
// Paste the entire code below to the console and hit enter
// You will get the list of people whom you follow but who don't follow you back and viceversa as well as the entire list of followers and following
var following = [],
followers = [],
followersCount = 0,
followingCount = 0,
var count = 0;
setInterval(function() {
var heart = document.querySelector('.wpO6b');
var arrow = document.querySelector('a.coreSpriteRightPaginationArrow');
if (heart) {
heart.click();
count++;
console.log(`You have liked ${count} photos`);
}
@andipyk
andipyk / tes.go
Created August 5, 2020 19:54
rest-api go
package main
import (
"encoding/json"
"github.com/gorilla/mux"
"log"
"net/http"
"strconv"
)
@andipyk
andipyk / client.go
Created August 6, 2020 00:52
tugas 04 - parkir api
package main
import (
"bytes"
"encoding/json"
"fmt"
"github.com/gorilla/mux"
"log"
"net/http"
"time"
@andipyk
andipyk / DemoApplication.java
Created September 1, 2020 02:37
Demo Spring Boot 1
package com.andipyk.spring01.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
@RestController
‎‎​
<?php
interface Formatter {
public function format(string $input): string;
}
trait DefaultFormatter {
#[\Override]
public function format(string $input): string {
// Default formatter simply returns the input as is.
return $input;
<?php
class BaseClass {
public function showMessage() {
return "Base message";
}
}
class DerivedClass extends BaseClass {
#[\Override]
public function showMessage() {