Skip to content

Instantly share code, notes, and snippets.

View achalaggarwal's full-sized avatar
🎯
Focusing

Achal Aggarwal achalaggarwal

🎯
Focusing
View GitHub Profile
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";
// istanbul ignore file
var AbortController;
if (typeof window === 'undefined') {
AbortController = require('abort-controller');
}
else if ('signal' in new Request('')) {
AbortController = window.AbortController;
}
@achalaggarwal
achalaggarwal / iterm2-solarized.md
Created March 16, 2017 07:30 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@achalaggarwal
achalaggarwal / UIViewController+Deselection.swift
Created June 3, 2016 19:53 — forked from ZevEisenberg/LICENSE
Smoothly deselect table and collection view cells on dismissal, including interactive dismiss and interactively-partially-dismiss-then-cancel-then-dismiss-again
extension UIViewController {
func rz_smoothlyDeselectRows(tableView tableView: UITableView?) {
let selectedIndexPaths = tableView?.indexPathsForSelectedRows ?? []
if let coordinator = transitionCoordinator() {
coordinator.animateAlongsideTransitionInView(parentViewController?.view, animation: { context in
selectedIndexPaths.forEach {
tableView?.deselectRowAtIndexPath($0, animated: context.isAnimated())
}
@achalaggarwal
achalaggarwal / osx-for-hackers.sh
Created December 21, 2015 19:12 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@achalaggarwal
achalaggarwal / macos-apps.sh
Created December 21, 2015 19:04 — forked from cstipkovic/install_my_env.sh
My Mac OS X setup script
#!/bin/sh
# homebrew-cask
brew tap phinze/homebrew-cask
brew install brew-cask
# browser
brew cask install firefox
# development
@achalaggarwal
achalaggarwal / gist:1ab4c45ac2ab818c62aa
Created March 16, 2015 13:47
Mobile TAF 16th March
// Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
var name : String? = "Achal"
var namex = name.map { "\($0)" }
@achalaggarwal
achalaggarwal / uncrustify.cfg
Last active August 29, 2015 14:16
Uncrustify Config
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.4.3 (252)
#
# Alignment
# ---------
## Alignment
@achalaggarwal
achalaggarwal / osx_lion_rail_setup.md
Created June 22, 2012 21:00 — forked from jpantuso/osx_lion_rail_setup.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL
@achalaggarwal
achalaggarwal / hack.sh
Created April 2, 2012 11:32 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#