Skip to content

Instantly share code, notes, and snippets.

Rajesh Sharma broncha

Block or report user

Report or block broncha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View react-select-theme.json
{"borderRadius":4,"colors":{"primary":"#2684FF","primary75":"#4C9AFF","primary50":"#B2D4FF","primary25":"#DEEBFF","danger":"#DE350B","dangerLight":"#FFBDAD","neutral0":"hsl(0, 0%, 100%)","neutral5":"hsl(0, 0%, 95%)","neutral10":"hsl(0, 0%, 90%)","neutral20":"hsl(0, 0%, 80%)","neutral30":"hsl(0, 0%, 70%)","neutral40":"hsl(0, 0%, 60%)","neutral50":"hsl(0, 0%, 50%)","neutral60":"hsl(0, 0%, 40%)","neutral70":"hsl(0, 0%, 30%)","neutral80":"hsl(0, 0%, 20%)","neutral90":"hsl(0, 0%, 10%)"},"spacing":{"baseUnit":4,"controlHeight":38,"menuGutter":8}}
@broncha
broncha / invite.js
Last active Aug 29, 2015
Invite all friends at once
View invite.js
var f = document.getElementsByClassName("fbProfileBrowserListItem"); for(var i = 0; i < f.length; i++){ var _b = f.item(i).getElementsByClassName("uiButton"); if(_b.length) _b[0].click(); }
View assetic dumper
$assetFactory = new AssetFactory($themePath);
$assetFactory->setDebug(false);
$fm = new FilterManager();
$fm->set('cssrewrite', new CssRewriteFilter());
$assetFactory->setFilterManager($fm);
$am = new LazyAssetManager($assetFactory);
@broncha
broncha / prototype.html.twig
Last active Aug 29, 2015
Symfony prototype rendering macro
View prototype.html.twig
{% macro widget_prototype(widget, remove_text) %}
{% if widget.vars.prototype %}
{% set form = widget.vars.prototype %}
{% set name = widget.vars.name %}
{% else %}
{% set form = widget %}
{% set name = widget.vars.full_name %}
{% endif %}
<div data-content="{{ name }}">
View trello_burndown.gs
//TODO in this script
//1. Add board id in url used in TrelloAPI method (line xx
//2. Add your email in sendChartsByEmail
//3. Add your Trello keys from https://trello.com/1/appKey/generate to authorizeTrello
//4. Setup daily trigger in script editor that runs TrelloAPI()
//5. Run once in google apps script editor to authorize trello for access
//6. Lookup values and aggValues are hardcoded to the labels I use in Trello
//
//In the Trello board use scrum for trello syntax (http://scrumfortrello.com/)
//Example title: <name of task> (estimate hours) [work delivered in hours]
@broncha
broncha / syncedmulti.js
Created May 4, 2013
Synced multiselect with jQuery multiselect and sheepit
View syncedmulti.js
<script type="text/javascript">
Array.prototype.removeItem = function(val){
var index = this.indexOf(val);
if(index > -1) this.splice(index,1);
}
$(document).ready(function() {
var selc = [];
var sheepItForm = $('#sheepItForm').sheepIt({
separator: '',
allowRemoveLast: false,
View gitlabcent5.sh
#!/bin/bash
# Installer for GitLab on RHEL 5 (Red Hat Enterprise Linux and CentOS)
# mattias.ohlsson@inprose.com
#
# Only run this on a clean machine. I take no responsibility for anything.
#
# Submit issues here: github.com/mattias-ohlsson/gitlab-installer
# Exit on error
#set -e
View haproxy.cfg
global
maxconn 4096 # Total Max Connections. This is dependent on ulimit
nbproc 2
defaults
mode http
frontend all 0.0.0.0:80 accept-proxy
timeout client 5000
default_backend www_backend
@broncha
broncha / nodetail
Created Mar 28, 2012
pseudo tail in nodejs
View nodetail
var fs = require('fs');
var lastSize = 139658900;
var timer = setInterval(function(){
fs.stat("E:/wamp/logs/access.log",function(err,stats){
if(stats.size > lastSize){
var buf = fs.createReadStream("E:/wamp/logs/access.log",{start:lastSize,end:stats.size});
buf.setEncoding('utf8');
buf.on('data',function(data){
View x
/*
=skin=
@name Custom
@author You
@homepage http://www.yourpage.com
@email broncha.rajesh@gmail.com
@license MPL/LGPL/GPL
=/skin=
You can’t perform that action at this time.