Skip to content

Instantly share code, notes, and snippets.

{
"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"
<input type="checkbox" name="checkboxG4" id="checkboxG4" class="css-checkbox" />
<label for="checkboxG4" class="css-label">Option 1</label>
@mizanRahman
mizanRahman / composer.rb
Created April 8, 2014 18:56
rails app composer: my stable version
# >---------------------------------------------------------------------------<
#
# _____ _ _
# | __ \ (_) | /\
# | |__) |__ _ _| |___ / \ _ __ _ __ ___
# | _ // _` | | / __| / /\ \ | '_ \| '_ \/ __|
# | | \ \ (_| | | \__ \/ ____ \| |_) | |_) \__ \
# |_| \_\__,_|_|_|___/_/ \_\ .__/| .__/|___/
# | | | |
# |_| |_|
@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;">
angular.module('relitagApp')
.controller('AssetInventoryCtrl', ['$scope', 'assetInventory', 'Grid',
function($scope, assetInventory, Grid) {
assetInventory.query({
from: 1,
to: 50
},
function(assets) {
$scope.myData = assets;
});
{
"atomic_save": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"detect_indentation": true,
"ensure_newline_at_eof_on_save": false,
"folder_exclude_patterns":
[
"node_modules",
".svn",

python

  • Object oriented
  • Dynamic typed (Duck typed)
  • Cross platform
  • scripting or mission critical servers
  • interpreteed but bytecode compiled
  • easy to read, learn, maintain
  • simple yet robust
  • battaries included
  • Reverse a String : Enter a string and the program will reverse it and print it out. sample input: "Hello" output: "olleH"

  • Count Vowels: Enter a string and the program counts the number of each vowels in the text. sample input: "This is a sample input" output: a=2, e=0, i=3, o=0, u=1

Here is some sample problems to practice. please note that, problems are typical but can be solved in a compact way with python. try to find a pythonic way with python list and string comprehensions.

  • Reverse a String : Enter a string and the program will reverse it and print it out. sample input: "Hello" output: "olleH"

    ''' def reverse(some_seq):

@mizanRahman
mizanRahman / plugins.md
Created January 13, 2015 04:37
sublime text plugins
  • AngularJs
  • grunt
  • htmlBeautify
  • jsbeautify
  • Git
  • GitGutter
  • Gist