Skip to content

Instantly share code, notes, and snippets.

View ExByt3s's full-sized avatar
🎯
Focusing

ExByt3s

🎯
Focusing
  • nothing
  • caracas/venezuela
View GitHub Profile

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'

@ExByt3s
ExByt3s / nginxproxy.md
Created July 14, 2016 20:48 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@ExByt3s
ExByt3s / murmurhash2.rb
Created September 2, 2016 16:00 — forked from gentooboontoo/murmurhash2.rb
Ruby version of Murmurhash 2 digest
# Found at http://toblog.bryans.org/2010/12/14/pure-ruby-version-of-murmurhash-2-0
# Ruby 1.8/1.9 compatible
module Digest
def self.murmur_hash2( string, seed )
# seed _must_ be an integer, but I do try to enforce that.
# m and r are mixing constants generated offline.
# They are not really magic, they just happen to work well.
raise "seed isn't an integer, and I can't convert it either." unless
seed.is_a?( Integer ) or seed.respond_to?( 'to_i' )
@ExByt3s
ExByt3s / aatree.c
Created September 30, 2016 23:12 — forked from siritori/aatree.c
AA tree by C
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
#include "aatree.h"
static aanode* new_aanode(const int key, void *val, aanode *nullnode) {
aanode *n = (aanode*)malloc(sizeof(aanode));
if(n == NULL) return NULL;
n->key = key;
@ExByt3s
ExByt3s / google-dorks
Created April 23, 2018 03:49 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@ExByt3s
ExByt3s / web-servers.md
Created July 15, 2018 23:02 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@ExByt3s
ExByt3s / starUML.md
Created July 27, 2018 07:22 — forked from trandaison/starUML.md
Get full version of StarUML

StarUML

Download: StarUML.io

Crack

Source: jorgeancal

After installing StartUML successfully, modify LicenseManagerDomain.js as follow:

/**