This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; --------------------- | |
;;; dot emacs | |
;;; Pratul Kalia (lut4rp) | |
;;; --------------------- | |
;;; | |
;; Mac full screen mode | |
(defun mac-toggle-max-window () | |
(interactive) | |
(set-frame-parameter nil 'fullscreen (if (frame-parameter nil 'fullscreen) nil 'fullboth)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### | |
# lut4rp's zshrc | |
# "You could've been anywhere in the world, but you're here with us... And we appreciate that." | |
#### | |
# Aliases | |
alias ls='ls -hG' | |
alias ll='ls -lh' | |
alias la='ls -ah' | |
alias sl=ls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 4 8 15 16 23 42 | |
export PS1="\n\[$(tput setaf 7)\]\w\n\`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\\\\\*\ \(.+\)$/\(\\\\\\\\\1\)\/\`>: \[$(tput sgr0)\]" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gradle | |
gradlew* | |
.gradle | |
local.properties | |
.DS_Store | |
build/ | |
# Legacy | |
.classpath | |
.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There’s a lot of problems with simple motivation: | |
Motivation is fleeting. Motivation comes and goes however it wants. It might not last to the end of the week, end of the day, | |
or even the end of blog post you just read. It’s fleeting. | |
Motivation is situational. Motivation is based on your current situation. How do you feel? If you don’t feel like doing it, | |
then you’re off the hook. You don’t have to do it – because you don’t feel like it! But then you don’t do it and you just feel | |
worse and more stuck than ever. | |
Motivation is everywhere. Everywhere you go, you see people trying to get motivated to do something, to make a change. They’ll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<code_scheme name="GoogleAndroid"> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="INDENT_SIZE" value="4" /> | |
<option name="CONTINUATION_INDENT_SIZE" value="4" /> | |
<option name="TAB_SIZE" value="4" /> | |
<option name="USE_TAB_CHARACTER" value="false" /> | |
<option name="SMART_TABS" value="false" /> | |
<option name="LABEL_INDENT_SIZE" value="0" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SortedListAdapter extends IntegerListAdapter { | |
private SortedList<Integer> sortedList; | |
public SortedListAdapter() { | |
this.sortedList = new SortedList<>(Integer.class, new SortedListAdapterCallback<Integer>(this) { | |
@Override public int compare(Integer item1, Integer item2) { | |
return item1.compareTo(item2); | |
} | |
@Override public boolean areContentsTheSame(Integer oldItem, Integer newItem) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getVersionCode = { -> | |
try { | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine 'git', 'rev-list', '--first-parent', '--count', 'origin/master' | |
standardOutput = stdout | |
} | |
return Integer.parseInt(stdout.toString().trim()) * 100 | |
} | |
catch (ignored) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getVersionName = { -> | |
try { | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine 'git', 'describe', '--dirty' | |
standardOutput = stdout | |
} | |
return stdout.toString().trim() | |
} | |
catch (ignored) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22:13 no_mind : so why not make a presentation cretor/manager based on SVG | |
22:13 lut4rp : web based? | |
22:13 no_mind : SVG provides you will all the features that you need in a slide including animation | |
22:14 no_mind : plus SVG will auto scale | |
22:14 lut4rp : Hmmm... | |
22:14 no_mind : same slide will work on desktop and web without any changes | |
22:14 PiyushK : html5++ | |
22:14 lut4rp : I like it so far | |
22:14 lut4rp : :) | |
22:14 no_mind : any SVG viewer can be used |