Skip to content

Instantly share code, notes, and snippets.

View limafelipe's full-sized avatar

Felipe Lima limafelipe

View GitHub Profile
@limafelipe
limafelipe / pratice.cfg
Created August 25, 2019 17:08
CS GO pratice config.
// Config for server
sv_cheats 1
sv_infinite_ammo 1
ammo_grenade_limit_total 5
mp_warmup_end
mp_freezetime 0
mp_roundtime 60
mp_roundtime_defuse 60
sv_grenade_trajectory 1
sv_grenade_trajectory_time 10
@limafelipe
limafelipe / r-mode
Created March 9, 2017 14:40
function to calculate Mode in R
Mode <- function(x) {
ux <- unique(x)
ux[which.max(tabulate(match(x, ux)))]
}
[
{ "key": "cmd+r", "command": "workbench.action.debug.start", "when": "!inDebugMode" },
{ "key": "cmd+r", "command": "workbench.action.debug.continue", "when": "inDebugMode" },
{ "key": "cmd+e", "command": "workbench.action.debug.stepOver", "when": "inDebugMode" },
{ "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" },
{ "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" },
{ "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" },
{ "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" },
{ "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" },
{ "key": "cmd+6", "command": "workbench.action.openEditorAtIndex6" },
@limafelipe
limafelipe / .zshrc
Created January 16, 2017 02:26
open visual studio from command line
function code {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code"
else
local argPath="$1"
[[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}"
open -a "Visual Studio Code" "$argPath"
fi
}