Skip to content

Instantly share code, notes, and snippets.

@AnoRebel
AnoRebel / custom_bottom_sheet.dart
Created June 17, 2020 13:55 — forked from drewpayment/custom_bottom_sheet.dart
Hack to fix Flutter not scrolling TextField and TextFormField into view to take viewInset of keyboard into account.
import 'package:flutter/material.dart';
class CustomBottomSheet {
static Future<T> showScrollingModalBottomSheet<T>({
@required BuildContext context,
bool isScrollControlled = true,
ShapeBorder shape,
double heightPercView = 0.95,
@AnoRebel
AnoRebel / bottom_sheet.dart
Created June 17, 2020 12:07 — forked from slightfoot/bottom_sheet.dart
Modal Bottom Sheet with Input Fields fix for Flutter (Fix issue with overlap with keyboard and fix for tapping to dismiss)
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
@AnoRebel
AnoRebel / README.md
Created February 21, 2020 12:36 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@AnoRebel
AnoRebel / stuns
Created February 17, 2020 17:19 — forked from zziuni/stuns
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@AnoRebel
AnoRebel / python-es6-comparison.md
Created February 12, 2020 22:34 — forked from revolunet/python-es6-comparison.md
# Python VS ES6 syntax comparison

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL

Imports

import math
#!/bin/bash
set -ex
cd /tmp
#pacman -S --needed --noconfirm base-devel
#git clone https://aur.archlinux.org/nosudo
#cd nosudo
#makepkg -o
#cp nosudo /bin/sudo
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@AnoRebel
AnoRebel / install_opencv_raspberry_pi_3b.sh
Created May 20, 2019 21:50 — forked from gaborvecsei/install_opencv_raspberry_pi_3b.sh
Install OpenCV easily on your Raspberry Pi 3 B
mkdir opecv
cd opencv
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install build-essential cmake pkg-config -y
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libxvidcore-dev libx264-dev -y
sudo apt-get install libgtk2.0-dev libgtk-3-dev -y
sudo apt-get install libatlas-base-dev gfortran -y
@AnoRebel
AnoRebel / file_downloader.py
Created May 16, 2019 11:23 — forked from nikhilkumarsingh/file_downloader.py
A file downloader with progress bar for terminal
from tqdm import tqdm
import requests
chunk_size = 1024
url = "http://www.nervenet.org/pdf/python3handson.pdf"
r = requests.get(url, stream = True)
total_size = int(r.headers['content-length'])
@AnoRebel
AnoRebel / element.html
Created May 16, 2019 10:43 — forked from agusmakmun/element.html
spfjs progress bar: https://github.com/youtube/spfjs (JS framework for fast navigation)
<html>
<head>
<link rel="stylesheet" href="/css/progress-bar.css">
</head>
<body>
<h1>Your element goes here...</h1>
<!-- Link disabled: static link, SPF ins disabled -->
<a href="/destination">Go!</a>