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
idleTime = 0 | |
@logOutUser = -> | |
$("#main-sign-out").click() | |
@cancelAutoLogOutTimer = -> | |
clearTimeout(window.autoLogOutTimerID) | |
timerIncrement = -> | |
idleTime = idleTime + 1 |
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
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Manage unicorn server | |
# Description: Start, stop, restart unicorn server for a specific application. | |
### END INIT INFO |
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
# User omniauth with the omniauth-basecamp strategy to authenticate. And, store the token that you receive. | |
# To connect to the API create an instance of the wrapper: | |
# @basecamp = Basecamp.new(token), at this point only .accounts will work, use that get the account | |
# id of the account you want to connect. After that, just passs the accout id to the connection, @basecamp = Basecamp.new(token, account_id) | |
# and feel free to call any method. | |
# | |
# By Javier Carballo, javier@javier.im. | |
class Basecamp | |
def initialize(token, account_id = nil, app = nil) | |
@token = token |
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
#!/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://gist.github.com/j7/5198553/hack.sh | sh | |
# |
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
gem 'twitter-bootstrap-raills' necesita estar fuera de group :assets. | |
Tendria que se algo asi en el Gemfile: | |
gem 'twitter-bootstrap-rails' | |
group :assets do | |
.. | |
end |