Skip to content

Instantly share code, notes, and snippets.

View hardfire's full-sized avatar
🥑
avoca-do-ing

अभिनाश (Avinash) hardfire

🥑
avoca-do-ing
View GitHub Profile
@hardfire
hardfire / MY_Parser.php
Created August 30, 2012 06:56
Parser for Bonfire
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* MY Parser
*
* @package Bonfire
* @subpackage Libraries
* @category Parser
* @author Avinash Kundaliya
* @link http://cibonfire.com
@hardfire
hardfire / module.sh
Created September 1, 2012 16:59
create base files for a bonfire module
#! /bin/bash
# create base files for a bonfire module
u=$(tr '[a-z]' '[A-Z]' <<< ${1:0:1})
className="${u}${1:1}"
mkdir $1
mkdir "$1/assets"
mkdir "$1/config"
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Bonfire
*
* An open source project to allow developers get a jumpstart their development of CodeIgniter applications
*
* @package Bonfire
* @author Bonfire Dev Team
* @copyright Copyright (c) 2011 - 2012, Bonfire Dev Team
* @license http://guides.cibonfire.com/license.html
@hardfire
hardfire / dabblet.css
Created August 15, 2013 17:03
ACM Logo in CSS, challange accepted
/**
* ACM Logo in CSS, challange accepted
*/
#acm-logo{
width:200px;
height:200px;
position:relative;
}
#diamond{
@hardfire
hardfire / dabblet.css
Created August 19, 2013 05:26 — forked from anonymous/dabblet.css
Untitled
body{
background:#ddd;
margin:0;
font-family:arial;
font-size:44px;
font-weight:bold;
text-shadow:1px 1px 1px #aaa;
}
#bg1{
margin:200px 0px;
@hardfire
hardfire / backbone-delay-context.js
Last active December 29, 2015 04:59
backbone delay context
_(function() {
this.trigger("awesome:event");
}).chain().bind(this).delay(500);
// Other ways of doing it in the github page
//https://github.com/jashkenas/underscore/issues/494
/* HTML Element
<div class="group awesome" id="new">Test</div>
*/
//js
var classes = document.getElementById('new').classList;
console.log(classes);
/* console output
0: group
@hardfire
hardfire / 0_reuse_code.js
Created July 9, 2014 10:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am hardfire on github.
  • I am avk (https://keybase.io/avk) on keybase.
  • I have a public key whose fingerprint is CD06 A8C0 F9D7 B214 FA34 F2F3 08C9 0234 6F12 1797

To claim this, I am signing this object:

CLONING INTO 'LARGE-REPOSITORY'...
REMOTE: COUNTING OBJECTS: 20248, DONE.
REMOTE: COMPRESSING OBJECTS: 100% (10204/10204), DONE.
ERROR: RPC FAILED; CURL 18 TRANSFER CLOSED WITH OUTSTANDING READ DATA REMAINING
FATAL: THE REMOTE END HUNG UP UNEXPECTEDLY
FATAL: EARLY EOF
FATAL: INDEX-PACK FAILED