Skip to content

Instantly share code, notes, and snippets.

function fill(cols){
new Array(cols.length).fill(null).forEach(()=>document.querySelector('.actions button').click())
document.querySelector('.actions button').click()
document.querySelectorAll('.nsn-i-delete').forEach((elm)=>elm.click())
new Array(cols.length).fill(null).forEach((_,index)=>{
cols[index].forEach((number)=>{
document.querySelectorAll('.cs-body > .column-number:nth-of-type('+number+')')[index].click()
})
var getNightClubs = function(done){
console.log('%c Klüplere bakılıyor.','background: black; color: white')
$.ajax({
type: "GET",
url: 'https://www.thecrims.com/api/v1/nightclubs',
success: function(res){
done(res.favorites.length > 0 ? res.favorites : res.nightclubs)
}
});
}
@gokselpirnal
gokselpirnal / gang.js
Last active April 27, 2020 18:30
thecrims-bot
var getRobberies = function(done){
console.log('%c Soygun seçiliyor.','background: black; color: white')
$.ajax({
type: "GET",
url: 'https://www.thecrims.com/api/v1/robberies',
success: function(res){
done(res.single_robberies
.filter(robbery => robbery.successprobability == 100)
.sort((a, b) => b.difficulty - a.difficulty)
.find((x, index) => index == 0))
/**
* Created by gokselpirnal on 23/08/16.
*/
public class FlatColors {
public static final int SOFT_RED_10 = 0x10EC644B;
public static final int SOFT_RED_20 = 0x20EC644B;
public static final int SOFT_RED_30 = 0x30EC644B;
public static final int SOFT_RED_40 = 0x40EC644B;
public static final int SOFT_RED_50 = 0x50EC644B;
public static final int SOFT_RED_60 = 0x60EC644B;
@gokselpirnal
gokselpirnal / ReactLogoView.java
Last active July 19, 2016 05:13
React logo with Android Canvas
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
// Göksel Pırnal
// result screenshot: http://i.hizliresim.com/jn7YY9.jpg
@gokselpirnal
gokselpirnal / CircularPercentView.java
Last active April 27, 2016 12:17
CircularPercentView
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
public class CircularPercentView extends View {
private Paint backgroundPaint;