Skip to content

Instantly share code, notes, and snippets.

View collegeimprovements's full-sized avatar
💭
☀️

Arpit Shah collegeimprovements

💭
☀️
View GitHub Profile
@collegeimprovements
collegeimprovements / how_to_install_tmux_on_centos
Created November 9, 2015 07:25 — forked from ekiara/how_to_install_tmux_on_centos
HOW TO: Install tmux on Centos release 6.5
# Install tmux on Centos release 6.5
# http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff
#
# READ THIS FIRST!!!
# MAKE SURE YOU HAVE BUILD TOOLS/COMPILERS TO BUILD STUFF FROM SOURCES
# yum groupinstall "Development Tools"
# CD TO TEMPORARY DIRECTORY
@collegeimprovements
collegeimprovements / gist:2f01917af0e3bec0b511
Created November 16, 2015 13:11
Select Text in Preview/Quicklook mode of Mac.
defaults write com.apple.finder QLEnableTextSelection -bool TRUE; killall Finder
@collegeimprovements
collegeimprovements / .bash_aliases
Created December 24, 2015 08:46 — forked from chrisbloom7/.bash_aliases
A portion of my alias entries and some other useful snippets for Bash
#!/bin/sh
# GENERAL COMMANDS
alias l='ls -AHhlp'
alias c='clear'
alias cx='chmod +x'
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
alias reload='source ~/.bash_profile'
alias release='xattr -d com.apple.quarantine'
alias flushdns='sudo discoveryutil udnsflushcaches'

Pixie-Wan Kenobi

Glowing Tatooine sun, stars fading in out, parallax background layers, BB-8 animated rolling (still working on BB-8)

A Pen by Laura Sage on CodePen.

License.

class Todos
attr_accessor :priority, :urgency, :title, :description, :quadrant
def initialize(priority = 1, urgency = 1)
@priority, @urgency = priority, urgency
end
def quadrant
# case (@priority, @urgency)
# puts "is_imp ==> #{is_imp}"
if is_imp == "Imp" && is_urgent == "Urgent"
{
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 2,
"caret_style": "solid",
"wide_caret": false,
"color_scheme": "Packages/Colorcoder/cobalt2 (Colorcoded).tmTheme",
"font_size": 12,
"highlight_line": true,
@collegeimprovements
collegeimprovements / harryPotterAliases
Created June 28, 2016 11:55 — forked from graceavery/harryPotterAliases
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@collegeimprovements
collegeimprovements / brew-java-and-jenv.md
Created December 8, 2016 15:03 — forked from tomysmile/brew-java-and-jenv.md
How To Install Java 8 on Mac

Install HomeBrew first

brew update
brew tap caskroom/cask
brew install brew-cask

If you get the error "already installed", follow the instructions to unlink it, then install again:

ember cdv:build --environment=production --release --codeSignIdentity="iPhone Developer"
ember cdv:build --platform=android --environment=production --release