Skip to content

Instantly share code, notes, and snippets.

@mizanRahman
mizanRahman / Gruntfile.js
Created April 29, 2014 21:57
grunt file for static site generator with assemble + scss
/*
* Generated on 2014-02-21
* generator-assemble v0.4.9
* https://github.com/assemble/generator-assemble
*
* Copyright (c) 2014 Hariadi Hinta
* Licensed under the MIT license.
*/
'use strict';
COUNTRIES = [
"Afghanistan",
"Aland Islands",
"Albania",
"Algeria",
"American Samoa",
"Andorra",
"Angola",
"Anguilla",
"Antarctica",
angular.module('relitagApp')
.controller('AssetInventoryCtrl', ['$scope', 'assetInventory', 'Grid',
function($scope, assetInventory, Grid) {
assetInventory.query({
from: 1,
to: 50
},
function(assets) {
$scope.myData = assets;
});
@mizanRahman
mizanRahman / app.html
Last active August 29, 2015 13:59
Angularjs: backend query with $resource
<div class="row">
<div class="col-xs-24">
<div class="panel panel-blue">
<div class="panel-heading">
<span class="panel-title">Issues</span>
<a ng-href="#assets" class="btn btn-custom-orange pull-right"><small><span class="icon-expand">&nbsp</span></small>Expand</a>
</div>
<div class="panel-body">
<div ng-controller="MyCtrl1" style="color:#555;">
@mizanRahman
mizanRahman / cenos-script.md
Created April 10, 2014 09:41
developement tools installation script in centos

Install Node JS and NPM on CentOS 6.4

Login as root

su -

install the dependancy applications first

yum install gcc gcc-c++
yum install autoconf automake make
@mizanRahman
mizanRahman / composer.rb
Created April 8, 2014 18:56
rails app composer: my stable version
# >---------------------------------------------------------------------------<
#
# _____ _ _
# | __ \ (_) | /\
# | |__) |__ _ _| |___ / \ _ __ _ __ ___
# | _ // _` | | / __| / /\ \ | '_ \| '_ \/ __|
# | | \ \ (_| | | \__ \/ ____ \| |_) | |_) \__ \
# |_| \_\__,_|_|_|___/_/ \_\ .__/| .__/|___/
# | | | |
# |_| |_|
<input type="checkbox" name="checkboxG4" id="checkboxG4" class="css-checkbox" />
<label for="checkboxG4" class="css-label">Option 1</label>
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"detect_indentation": true,
"ensure_newline_at_eof_on_save": false,
"folder_exclude_patterns": [
"node_modules",
".svn",
".git",
".sass-cache",
".tmp"
@mizanRahman
mizanRahman / power-language.md
Last active December 20, 2015 21:28
notes for python

List Comprehensions

S = [x**2 for x in range(10)]
@mizanRahman
mizanRahman / consoleRunnableService.cs
Created June 19, 2013 11:49
snippet to run windows service from console
static void Main()
{
senTTRFservice service = new senTTRFservice();
if (Environment.UserInteractive)
{
service.OnStart(new string[]{""});
Console.WriteLine("Service Started. at {0}", DateTime.UtcNow);
Console.Read();
service.OnStop();