Skip to content

Instantly share code, notes, and snippets.

Avatar

Siddiq Mhmd codesbandit

View GitHub Profile
View keybase.md

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 / lat_return_value.js
Created Sep 3, 2019
Basic JavaScript: Return a Value from a Function with Return
View lat_return_value.js
//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;
View gist:c7fc4903fef03a47686280b05a41dca0
Verifying my Blockstack ID is secured with the address 1EFkmx24Jvoxm6fQBThmX1kSD98EkcZqgG https://explorer.blockstack.org/address/1EFkmx24Jvoxm6fQBThmX1kSD98EkcZqgG
@codesbandit
codesbandit / add.js
Last active Jun 4, 2021
Auto Add Friend FB
View add.js
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
View 3.xml
<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"
View 2.xml
<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"
View 1.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 / folllow.js
Created Oct 1, 2018
Auto Follow Twitter
View folllow.js
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 / pascal.py
Last active Sep 23, 2018
Assalamualaikum ini pascal nya
View pascal.py
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=" ")