Skip to content

Instantly share code, notes, and snippets.

View ahmednuaman's full-sized avatar
💭
I'm hiring! https://firemind.io/careers

Ahmed Nuaman ahmednuaman

💭
I'm hiring! https://firemind.io/careers
View GitHub Profile
@ahmednuaman
ahmednuaman / angular-require-controller.coffee
Created April 17, 2013 08:02
AngularJS controller on RequireJS in CoffeeScript
define [
'config'
'angular'
], (cfg, A) ->
class AController
@$inject = ['$scope']
constructor: (@$scope) ->
app = A.module cfg.ngApp
@ahmednuaman
ahmednuaman / library.php
Last active December 15, 2015 20:41
Codeigniter Library
<?php
class Library {
private $CI;
public function __construct() {
$this->CI =& get_instance();
}
}
@ahmednuaman
ahmednuaman / model.php
Last active December 15, 2015 20:41
Codeigniter Model
<?php
class Model extends CI_Model {
public function __construct() {
parent::__construct();
}
}
@ahmednuaman
ahmednuaman / controller.php
Last active December 15, 2015 20:41
Codeigniter Controller
<?php
class Controller extends CI_Controller {
public function __construct() {
parent::__construct();
}
}
@ahmednuaman
ahmednuaman / .bowerrc
Created April 4, 2013 13:29
Basic Bower config file
{
"directory": "assets/vendor",
"json": "component.json",
"endpoint": "https://bower.herokuapp.com"
}
@ahmednuaman
ahmednuaman / package.json
Created April 4, 2013 09:33
Basic package.json
{
"version": "0.0.1",
"name": "",
"description": "",
"dependencies": {
},
"devDependencies": {
}
@ahmednuaman
ahmednuaman / bbh-labs-feed.php
Created April 4, 2013 09:05
Testing BBH labs RSS feed
<?php echo file_get_contents('http://bbh-labs.com/feed/'); ?>
@ahmednuaman
ahmednuaman / index.html
Last active December 14, 2015 16:29
Samsung 2012 wrapper
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<script src="$MANAGER_WIDGET/Common/af/2.0.0/loader.js"></script>
<script src="$MANAGER_WIDGET/Common/API/Widget.js"></script>
<style>
html,
body {
@ahmednuaman
ahmednuaman / error.txt
Created February 11, 2013 16:50
PHP crypto error read out
<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: file_get_contents() [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: SSL: crypto enabling timeout in file.php on line <i>32</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0051</td><td bgcolor='#eeeeec' align='right'>647480</td><td bgcolor='#eeeeec'>{main}( )</td><td title='file.php' bgcolor='#eeeeec'>../file.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' a
@ahmednuaman
ahmednuaman / timecode-data.js
Created January 21, 2013 19:54
Sample timecode data
var data = {
'1234': {
type: 'start',
data: 'hellos'
},
'5678': {
type: 'stop'
},
'9101': {
type: 'start',