Skip to content

Instantly share code, notes, and snippets.

View beeant's full-sized avatar
🎯
Focusing

₿ryant Teja beeant

🎯
Focusing
View GitHub Profile
@aksonov
aksonov / rnrf.md
Last active February 17, 2025 09:47
Proposal for lightning talk at ReactiveConf 2017: What is RNRF (react-native-router-flux)?

What is RNRF (react-native-router-flux)?

React Native is great product but lacks for stable, intuitive and easy navigation API during many years. Every year we see new, better API: Native Navigator, ex-Navigator, NavigationExperimental, ex-Navigation, wix native navigation, airbnb native navigation, ReactNavigation...

Once I've started React Native development, in 2015, I created RNRF - simple API for easy navigation. It was clear that better navigation instruments will come later but I didn't want to change my code again and again to switch for better API. Every new major version of RNRF is based on different navigation framework and mostly preserves own API.

Another goal was to represent all navigation flow within one place in clear, human-readable way - similar to iOS Storyboards concept. This way other engineers could understand your app flow faster.

@bsodmike
bsodmike / README.md
Last active April 30, 2025 11:27
OC Nvidia GTX1070s in Ubuntu 16.04LTS for Ethereum mining

Following mining and findings performed on EVGA GeForce GTX 1070 SC GAMING Black Edition Graphics Card cards.

First run nvidia-xconfig --enable-all-gpus then set about editing the xorg.conf file to correctly set the Coolbits option.

# /etc/X11/xorg.conf
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
// routes.js
const routes = [
{
path: '/',
component: Home,
exact: true
},
{
path: '/gists',
component: Gists
@KazWolfe
KazWolfe / Pokemon GO Data Dump.txt
Last active November 18, 2024 12:50
A data dump of a lot of cool Pokemon GO facts
###########
# Pokemon GO Data Dump (in no order)
# By Kaz Wolfe (@KazWolfe on gaming.stackexhange.com)
# Dump version 3.3, pulled from 0.29.0
#
# Feel free to use this dump in anything, but please link back to it!
# This ensures that people can see and use the source of the data
# (which updates regularly), and find out new things.
#
# Thanks Anonymous for some data: https://gist.github.com/anonymous/077d6dea82d58b8febde54ae9729b1bf
@dbasedow
dbasedow / WebViewResizing.js
Last active September 26, 2022 18:55
Resize WebView to content height in react-native
'use strict';
var React = require('react');
var ReactNative = require('react-native');
var {AppRegistry, Text, WebView, View, Dimensions} = ReactNative;
var WebViewResizing = React.createClass({
getInitialState: function () {
return {
webViewHeight: 100 // default height, can be anything
@maxant
maxant / market.js
Last active November 15, 2024 16:58
Files for creating a trading engine with Node.js.
// /////////////////////////////////////////////////
// this file contains all the classes related to a
// market.
// /////////////////////////////////////////////////
var log4js = require('log4js');
var logger = log4js.getLogger(require('path').basename(__filename, '.js'));
require('es6-collections');
var _ = require('underscore');
/**
@allaniftrue
allaniftrue / countdown.js
Last active August 29, 2015 14:05 — forked from dleatherman/countdown.js
Deprecation updates for moment.js v2.8.1
$(document).ready(function(){
countdown();
setInterval(countdown, 1000);
function countdown () {
var now = moment(), // get the current moment
// May 28, 2013 @ 12:00AM
then = moment([2014, 9, 20]),
// get the difference from now to then in ms
ms = then.diff(now, 'milliseconds', true);
// If you need years, uncomment this line and make sure you add it to the concatonated phrase
@jtadeulopes
jtadeulopes / block.sh
Created February 24, 2014 16:18
Iptables rules
# sudo sh block.sh
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.yahoo.com" --algo kmp -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.fcmrktplace.com" --algo kmp -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.creafi-online-media.com" --algo kmp -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ib.reachjunction.com" --algo kmp -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "www.indeed.com" --algo kmp -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ib.adnxs.com" --algo kmp -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ad.tagjunction.com" --algo kmp -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ad.globe7.com" --algo kmp -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.clicksor.com" --algo kmp -j DROP
@bendo01
bendo01 / php56 macports
Last active July 30, 2025 04:41
php macports
sudo port install php56 +fastcgi fcgi apache-ant php56-cgi php56-mbstring php56-curl php56-mcrypt php56-imagick php56-xdebug php56-iconv php56-mongo php56-oauth php56-openssl php56-esmtp php56-pop3 php56-tidy php56-uploadprogress php56-pcntl php56-sockets php56-soap php56-ssh2 php56-big_int php56-gd php56-svm php56-html_parse php56-http php56-mysql php56-pdflib php56-pear php56-peb php56-posix php56-pspell php56-rar php56-redis php56-snmp php56-stomp php56-svn php56-wddx php56-xmlrpc php56-yaml php56-zip php56-dbase php56-excel php56-gdchart php56-imap php56-xsl php56-redis
sudo port install postgresql94 postgresql94-server postgresql94-doc postgresql_autodoc php56-postgresql phppgadmin postgresql-jdbc phpmyadmin maven3 maven-ant-tasks postgis2 +postgresql94 git qgis re2c json-c
sudo port install nginx +flv +geoip +gzip_static +mail +mp4 +ssl +status +substitution +upload +upload_progress +xslt +zip
var obj = {};
var arr = [];
for(var i=0; i < 1280000; i++) {
obj[i] = "a";
arr.push("a");
}
var start = process.hrtime();