This file contains hidden or 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
addToDo.setOnKeyListener( new View.OnKeyListener() { | |
public boolean onKey(View V, int keyCode, KeyEvent event) { | |
if( event.getAction() == KeyEvent.ACTION_DOWN ) { | |
if( (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) || (keyCode == KeyEvent.KEYCODE_ENTER)) { | |
String newItem = addToDo.getText().toString(); | |
onNewItemAddedListener.onNewItemAdded(newItem); | |
addToDo.setText(""); | |
return true; | |
} |
This file contains hidden or 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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
JAVA_HOME=/usr/local/java/jdk1.7.0-openjdk-amd64 | |
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin | |
JRE_HOME=/usr/local/java/jre1.7.0-openjdk-amd64 | |
PATH=$PATH:$HOME/bin:$JRE_HOME/bin | |
export JAVA_HOME | |
export JRE_HOME | |
export PATH |
This file contains hidden or 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
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" | |
JAVA_HOME=/usr/local/java/jdk1.7.0-openjdk-amd64 | |
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin | |
JRE_HOME=/usr/local/java/jre1.7.0-openjdk-amd64 | |
PATH=$PATH:$HOME/bin:$JRE_HOME/bin | |
export JAVA_HOME | |
export JRE_HOME | |
export PATH |
This file contains hidden or 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
f.select :channel_type, options_for_select( [['Message', 'Message'],['Auto-respond', 'Respond'],['API', 'API']]), class: "form-control" |
This file contains hidden or 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
# Easily install vim plugins from a source control checkout (e.g. Github) | |
# | |
# alias vim-install=rake -f ~/.vim/rakefile-vim-install | |
# vim-install | |
# vim-install uninstall | |
require 'ftools' | |
require 'fileutils' | |
task :default => :install |
This file contains hidden or 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
/* See LICENSE file for license details. */ | |
#define _XOPEN_SOURCE 500 | |
#if HAVE_SHADOW_H | |
#include <shadow.h> | |
#endif | |
#include <ctype.h> | |
#include <errno.h> | |
#include <pwd.h> | |
#include <stdarg.h> |
This file contains hidden or 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
/* lock.c --- handling the password dialog for locking-mode. | |
* xscreensaver, Copyright (c) 1993-2011 Jamie Zawinski <[email protected]> | |
* | |
* Permission to use, copy, modify, distribute, and sell this software and its | |
* documentation for any purpose is hereby granted without fee, provided that | |
* the above copyright notice appear in all copies and that both that | |
* copyright notice and this permission notice appear in supporting | |
* documentation. No representations are made about the suitability of this | |
* software for any purpose. It is provided "as is" without express or | |
* implied warranty. |
NewerOlder