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
escape ^A^A | |
term screen-256color | |
vbell off | |
startup_message off | |
defscrollback 10000 | |
hardstatus off | |
hardstatus alwayslastline | |
# hardstatus string "%{kG}%50>%-w%{ky}%n %t%{-}%+w%{-} %>%=%{ky}Ctrl-A ?%{-} for help" | |
#hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W} %c %{g}]' | |
hardstatus string '%{= kG}[%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W} %c %{g}]' |
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
var myClosure = function() { | |
var date = new Date(); | |
var nested = function() { | |
return date.getMilliseconds(); | |
}; | |
return { | |
foo: nested | |
}; | |
}; |
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
// Wanted to check out the example from Frontend Masters by David Crockford | |
var template = '<table border="{border}">' + // | |
'<tr><th>Last</th><td>{last}</td></tr>' + // Hold table format in var template | |
'<tr><th>First</th><td>{first}</td></tr>' + // | |
'</table>'; // | |
var data = { // values to be replaced with RegEx | |
first: "Carl", // | |
last: "Jose", // |
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 | |
#The limit is 30% now | |
limit=10 | |
[email protected] | |
tmp_file=/tmp/diskusage | |
hostname=`hostname` | |
#Now the script will calculate the current disk usage | |
disk=$(df -h | awk 'FNR == 2 {print $5}' | sed 's/%//') |
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<stdio.h> | |
#include<strings.h> | |
int main(void) | |
{ | |
/* Looping Variables */ | |
int i = 0, j = 0; | |
int num_states = 4; | |
char *states[]= {"California","Oregon","Washington","Texas"}; |
NewerOlder