This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* HTML Element | |
<div class="group awesome" id="new">Test</div> | |
*/ | |
//js | |
var classes = document.getElementById('new').classList; | |
console.log(classes); | |
/* console output | |
0: group |
NewerOlder