Skip to content

Instantly share code, notes, and snippets.

View kazemihabib's full-sized avatar

Habib Kazemi kazemihabib

View GitHub Profile
@kazemihabib
kazemihabib / .vimperatorrc
Created April 19, 2016 07:09
.vimperatorrc
"3.10.1 (created: 2015/08/25 00:41:59)
highlight CmdLine background: white; color: black; transition: all 0.25s; font-size:16px
highlight Hint font-family: monospace; font-size: 10px; font-weight: bold; text-transform: uppercase; color: white; background-color: red; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 1px 0px 1px; font-size:15px;
nnoremap l gt
nnoremap h gT
nnoremap j 15j
nnoremap k 15k
nnoremap ,p :emenu<Space>File.New<Space>Private<Space>Window<Return>
nnoremap ,o :open<Space>about:preferences#advanced<Return>
name: "TypeScript"
scopeName: "source.ts"
fileTypes: [
"ts"
]
uuid: "ef98eb90-bf9b-11e4-bb52-0800200c9a66"
patterns: [
{
include: "#expression"
}
@kazemihabib
kazemihabib / directory.js
Created August 20, 2016 15:43 — forked from danherbert-epam/directory.js
Cross-Platflorm node.js directory node module, which includes mkdir and mkdirSync utilities which behave like the UNIX command "mkdir -p" which can be given a path with lots of non-existent nested directories and create any that are missing. One thing missing here that could be added in the future is the optional 'mode' argument, which exists in…
var fs = require('fs');
var pathSep = require('path').sep;
var directory = module.exports = {};
directory.mkdirSync = function __directory_mkdirSync__(path) {
var dirs = path.split(pathSep);
var root = "";
@kazemihabib
kazemihabib / PatternEditableBuilder.java
Created April 16, 2017 22:53 — forked from nesquena/PatternEditableBuilder.java
PatternEditableBuilder - Easy way to create colored clickable spans within a TextView!
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.TextPaint;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.View;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.regex.Matcher;
@kazemihabib
kazemihabib / Using Git to Manage a Live Web Site.md
Last active January 6, 2019 12:42 — forked from Nilpo/Using Git to Manage a Live Web Site.md
Using Git to Manage a Live Web Site

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents

@kazemihabib
kazemihabib / ExpandCollapseButton.kt
Created May 1, 2020 16:46 — forked from pt2121/ExpandCollapseButton.kt
Android Jetpack Compose caret animation
/*
* Copyright 2020 Prat Tana. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and