Skip to content

Instantly share code, notes, and snippets.

View Davenchy's full-sized avatar

Davenchy Davenchy

View GitHub Profile
@Davenchy
Davenchy / [PYTHON]
Created November 18, 2017 20:23 — forked from dreadpiratesr/[PYTHON]
Facebook Reset Code 0day Python Version
#Facebook Reset Code 0day Python Version
#If you want to edit this script you are free i don't give a fuck cause it tooks 2 minutes to write xD \!/
#As a temporarily solution, use requesocks Module
#How to install?
#with pip : pip install requesocks
#with easy_install : easy_install requesocks
import urllib2 ,sys ,re
import os
import ssl
this.colliders = [];
var loader = new THREE.ObjectLoader();
loader.load('models/school/scene.json', function (obj) {
me.scene.add(obj);
player = new THREE.Object3D();
player.add(me.camera);
me.scene.add( player );
@Davenchy
Davenchy / API.js
Last active September 26, 2018 02:30
Simple Fetch API Function
/*
==============================
API 1.0.10
Created By Davenchy
==============================
// DOCS:
xhr -> XMLHTTPRequest Object
@Davenchy
Davenchy / respo-grid.css
Last active September 23, 2018 17:38
Responsive Grid CSS Stylesheet
/* respo-grid v 2.0.1 */
/* created by davenchy */
.row { display: table; width: 100%; padding: 0; margin: 0; box-sizing: border-box; }
.row.center, .row .center { text-align: center; }
.flex { display: flex; }
.col { padding: 0; margin: 0; box-sizing: border-box; float: left; width: 100%; display: table-cell; }
.group .col { display: inline-block; flex: 1; }
.col.right { float: right; }
@Davenchy
Davenchy / alpantom_managa_downloader_script.js
Last active February 25, 2019 10:20
simple script to download stories from that website http://manga.alphantom.com
/*
* by Davenchy
* you need to modify the code to download your story
*/
const http = require('http')
const fs = require('fs')
const path = require('path')
// get the page url
const getURL = (c, p, isJPG) => `http://manga.alphantom.com/uploads/manga/ao-haru-ride/chapters/${c}/${fixPageNumber(p)}.${isJPG ? 'jpg' : 'png'}`;
@Davenchy
Davenchy / Timer.js
Last active April 11, 2019 16:18
Simple timer class
class Timer {
constructor () {
this.timerId = null;
this.isPlaying = false;
this.onTick;
this.onPlay;
this.onStop;
this.onReset;
this.onSetTick;
this.onRemoveTick;
@Davenchy
Davenchy / cordova_run_android.sh
Last active April 12, 2019 17:19
build and run the android app using cordova and adb
# 1. replace the variables values
# 2. add the script in the root directory of your cordova project
# Notes:
# make sure that cordova installed globaly
# make sure that adb is installed
# variables
PACKAGENAME='me.davenchy.myapp'
ACTIVITYNAME='MainActivity'
@Davenchy
Davenchy / Matrix.js
Created April 15, 2019 00:05
Javascript Matrix Class
/*
Matrix Class
Created By Davenchy
twitter: @fadi_davenchy
*/
const Matrix = (function() {
class Matrix {
constructor(r=3, c=3, i=0) {
// create matrix
@Davenchy
Davenchy / AI.js
Last active June 11, 2019 02:11
Javascript Simple AI
/*\
|*|-------------------------|
|*| AI.js |
|*| Created by Davenchy |
|*|-------------------------|
\*/
const AI = (function () {
function AI() {
this.locale = {};
import 'package:flutter/material.dart';
class CustomRangeSlider extends StatefulWidget {
final double width;
final double height;
final double markerWidth;
final double markerHeight;
final double sliderWidth;
final int divisions;
final double start;