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
<!DOCTYPE html> | |
<html ng-app=""> | |
<head> | |
<title>Banner Onclick Code</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script> | |
<script> | |
function bannerCode($scope) { | |
$scope.programs=[ | |
{name:'Appellate'}, |
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
Create project from archetype | |
mvn archetype:generate –DarchetypeCatalog |
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
crontab -e Edit your crontab file, or create one if it doesn’t already exist. | |
crontab -l Display your crontab file. | |
crontab -r Remove your crontab file. | |
crontab -v Display the last time you edited your crontab file. (This option is only available on a few systems.) |
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
source ~/.bashrc |
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
View | |
git config --get core.excludesfile | |
Set | |
git config --global core.excludesfile ~/.gitignore_global |
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
Get-Content -Path "C:\scripts\test.txt" -Wait |
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
ex. dir | clip |
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
git checkout master |
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
If the deletion has not been committed, the command below will restore the deleted file in the working tree. | |
$ git checkout -- <file> | |
You can get a list of all the deleted files in the working tree using the command below. | |
$ git ls-files --deleted | |
If the deletion has been committed, find the commit where it happened, then recover the file from this commit. | |
$ git rev-list -n 1 HEAD -- <file> | |
$ git checkout <commit>^ -- <file> |
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
$.ajax({ | |
type: 'POST', | |
url: 'http://kyleschaeffer.com/feed/', | |
data: { postVar1: 'theValue1', postVar2: 'theValue2' }, | |
beforeSend:function(){ | |
// this is where we append a loading image | |
$('#ajax-panel').html('<div class="loading"><img src="/images/loading.gif" alt="Loading..." /></div>'); | |
}, | |
success:function(data){ | |
// successful request; do something with the data |
NewerOlder