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
# aliases | |
alias l1="ls -ogh" | |
alias l2="ls -1Fsh --group-directories-first" | |
alias log="git log --no-merges" | |
alias untar="tar -xzvf" | |
# branch in prompt: TODO, make it werk in Mac. | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\h\[\033[00m\]:\[\033[00;31m\]\W\[\033[00m\]$(__git_ps1)\$ ' | |
# Z: z is the new j, yo. |
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
diff --git a/bash_profile b/bash_profile | |
index 260b8ce..b7e9b19 100644 | |
--- a/bash_profile | |
+++ b/bash_profile | |
@@ -1,39 +1,54 @@ | |
# aliases | |
-alias lls="ls -ogh" | |
+alias l1="ls -ogh" | |
+alias l2="ls -1Fsh --group-directories-first" | |
alias log="git log --no-merges" |
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
#include <iostream>; | |
using namespace std; | |
int main() { | |
int miVar, | |
*miPuntero; | |
miVar = 8; | |
miPuntero = &miVar; |
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
#include <iostream>; | |
using namespace std; | |
int main() { | |
int miVar, | |
*miPuntero; | |
miVar = 8; |
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
#include <iostream>; | |
using namespace std; | |
int main() { | |
int myVar, | |
*myPointer; | |
myVar = 8; | |
myPointer = &myVar; |
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
function palindromeChecker(stringList, stringLength) { | |
var isPalindrome = true, | |
invertedString = [], | |
i = stringLength - 1, | |
j = 0, | |
k = 0; | |
for (i; i >= 0; i--) { | |
invertedString[j] = stringList[i]; | |
j++; |
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
#ifndef CAMION_H | |
#define CAMION_H | |
#include "Orden.h"; | |
class Camion { | |
private: | |
Camion *prevCamion; | |
Camion *sigCamion; | |
String nombreChofer; |
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
#ifndef ORDEN_H | |
#define ORDEN_H | |
// La clase orden maneja los datos de cada orden | |
// para un camion. | |
class Orden { | |
private: | |
int numeroOrden; | |
String dueno; | |
long costo; |
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
log('== Ex. 1'); | |
// 1) Log to the console only those values that are considered truthy. | |
var q1Var1 = "hello", | |
q1Var2 = 0, | |
q1Var3 = true, | |
q1Var4 = "false", | |
q1Var5 = -1, | |
q1Var6 = undefined, | |
q1Var7 = null, | |
q1Var8; |
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
$(document).ready(function() { | |
fixNav(); | |
}); | |
function fixNav() { | |
var $catLinks = $('.reg-c1'), | |
catLinksWidth = 0, | |
doesItFit = false, | |
moreLinkWidth = $('.more-link').width(), | |
totalWidth = $('.fake-nav ul').width(); |