Skip to content

Instantly share code, notes, and snippets.

@codesbandit
codesbandit / pascal.py
Last active September 23, 2018 14:07
Assalamualaikum ini pascal nya
for y in range(1,9):
for s in range(1,10-y):
print(" ", end="")
for x in range(1,y+1):
a[y][x] = 1
if (x==1 or y==x):
print(a[y][x],end=" ")
else:
f = a[y][x] = a[y-1][x-1]+ a[y-1][x]
print(f,end=" ")
@codesbandit
codesbandit / folllow.js
Created October 1, 2018 10:40
Auto Follow Twitter
a = setInterval(function () {
window.scrollTo(0,document.body.scrollHeight);
$('.not-following .user-actions-follow-button.js-follow-btn button.follow-text').click();
}, 1000);
@codesbandit
codesbandit / 1.xml
Created October 10, 2018 03:14
Tugas XML
<RelativeLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="#0000e0"
android:id="@+id/ben"
android:textColor="#ffffff"
@codesbandit
codesbandit / 2.xml
Created October 10, 2018 03:14
Tugas XML 2
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="centerCrop"
android:id="@+id/img"
@codesbandit
codesbandit / 3.xml
Created October 10, 2018 03:34
Tugas XML 3
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical">
<ImageView
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:scaleType="centerCrop"
android:layout_weight="9"
@codesbandit
codesbandit / add.js
Last active June 4, 2021 09:26
Auto Add Friend FB
javascript:var delayInput = prompt("Delay between actions (ms)", "1000");var stopAfter = prompt("Stop after how many friend requests are sent?", "5000");var workDelay = parseInt(delayInput, 10);var loading = document.createElement("div");loading.setAttribute("id", "noni_loading");loading.setAttribute("style", "position: fixed; background: rgba(255,255,255,0.8); top: 0; left: 0; width: 100%; 24px; z-index: 1000; padding: 12px;");document.body.appendChild(loading);document.getElementById("noni_loading").innerHTML = "No friends added.";var inputs = document.querySelectorAll('.FriendRequestAdd:not(.hidden_elem)');var i=0;var delay=0;var cont=true;var stopAfterNumber=0;if(parseInt(stopAfter, 10)>inputs.length) { stopAfterNumber=inputs.length;} else { stopAfterNumber=parseInt(stopAfter, 10);}function addFriends(max){ if(inputs.length<=0) { document.getElementById("noni_loading").setAttribute("style", "position: fixed; background: rgba(140,60,60,0.8); top: 0; left: 0; width: 100%; 24px; color: #fff; z-index: 1000; p
Verifying my Blockstack ID is secured with the address 1EFkmx24Jvoxm6fQBThmX1kSD98EkcZqgG https://explorer.blockstack.org/address/1EFkmx24Jvoxm6fQBThmX1kSD98EkcZqgG
@codesbandit
codesbandit / lat_return_value.js
Created September 3, 2019 13:48
Basic JavaScript: Return a Value from a Function with Return
//https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/return-a-value-from-a-function-with-return
function kali(args1,args2){
var result = args1 * args2;
return result;
}
function tambah(args1, args2){
var result = args1 + args2;

Keybase proof

I hereby claim:

  • I am codesbandit on github.
  • I am pandu0 (https://keybase.io/pandu0) on keybase.
  • I have a public key whose fingerprint is 121B EB26 0227 AD2D 91CC AD9D 5D53 25FF 84A6 F6C8

To claim this, I am signing this object:

@codesbandit
codesbandit / dogetweetold.sol
Last active July 10, 2022 08:33
Old DogeTweet SourceCode
/**
*Submitted for verification at BscScan.com on 2022-05-24
*/
/**
https://t.me/DogeTweet
🔅liquidity Fee: 1%
🔅Marketing: 5%