Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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=" ")