Skip to content

Instantly share code, notes, and snippets.

View leventebalogh's full-sized avatar

Levente Balogh leventebalogh

View GitHub Profile
@camilleriluke
camilleriluke / partyparrot.text
Created September 1, 2016 10:42
Party Parrot
:fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot:
:party-parrot-conga:                :party-parrot-conga-reverse:
:party-parrot-conga:      *PARTY PARROT Crew*      :party-parrot-conga-reverse:
:party-parrot-conga:                :party-parrot-conga-reverse:
:party-parrot-conga:        :party-parrot:        :party-parrot-conga-reverse:
:party-parrot-conga:                :party-parrot-conga-reverse:
:party-parrot-conga:                :party-parrot-conga-reverse:
:fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot::fast-parrot:
@wtfil
wtfil / index.js
Last active July 7, 2017 16:55
injection of redux's dispatch in react-router's onEnter hook
/*
* common react, redux staff here
*/
import {Router, createRoutes} from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import rawRoutes from './routes';
import store from './store';
function mixStoreToRoutes(routes) {
return routes && routes.map(route => ({

Bali top things to see/do

  1. Uluwatu
  2. Blue Point beach
  3. Kuta Beach
  4. Balangan Beach
  5. Padang-Padang Beach
  6. Tanah Lot
  7. Pasar Sukawati
  8. Nusa Ceningan
@coryvirok
coryvirok / gist:9478263
Last active September 6, 2016 12:07
Rollbar javascript notifier. Ignore uncaught errors that are *not* from www.mycompany.com.
function ignoreRemoteUncaught(isUncaught, args, payload) {
try {
var filename = payload.data.body.trace.frames[0].filename;
if (isUncaught && !filename.match(/^https?:\/\/www\.mycompany\.com/)) {
// Ignore uncaught errors that are not from www.mycompany.com.
return true;
}
} catch (e) {
// Most likely there was no filename or the frame doesn't exist.
}
@plentz
plentz / nginx.conf
Last active April 19, 2025 04:46
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@kendellfab
kendellfab / goto-sublime
Created August 1, 2013 20:53
Add mouse click `goto definition` in sublime text 3.
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User
[
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl"],
"press_command": "drag_select",
@tonious
tonious / hash.c
Last active June 21, 2024 00:57
A quick hashtable implementation in c.
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101
* 2017-12-05
*
* -- T.
*/
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>