-
cd ..
Change to the parent directory -
cd -
Change to the previous directory -
open .
Open current folder in Finder
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
var soap = require('soap'); | |
var url = 'http://example.org/MyWebService.svc?wsdl'; | |
var soapOptions = { | |
forceSoap12Headers: true | |
}; | |
var soapHeader = { | |
'wsa:Action': 'http://tempuri.org/MyBinding/MyOperation', |
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
outputLocation="/myDrive/myWorkingDirectory" && | |
cd "$outputLocation" && | |
for dir in $(find -type d) | |
do | |
cat "$dir"/*.txt >> "$outputLocation"/${dir##*/}.txt | |
done | |
############################################################ | |
# for a folder structure like this # | |
# myRootDirectory # |
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 configuration | |
aws configure list | |
#Get profile credentials | |
aws configure get myprofile.aws_access_key_id | |
aws configure get myprofile.aws_secret_access_key | |
#List all s3 buckets | |
aws s3 ls --profile myprofile |
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
Show tips | |
Ctrl + . | |
Peak view | |
Alt + F12 | |
Show Solution Explorer | |
Ctrl + Alt + L | |
Display quick info |
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
Computer management | |
compmgmt.msc | |
Control panel | |
control | |
Device manager | |
devmgmt.msc | |
Disk cleanup |
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
Initialize a new git repository \ | |
`git init` | |
Stage files \ | |
`git add .` | |
Commit messages \ | |
`git commit -m <commit message>` | |
Clone remote repository \ |
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
Service info | |
sc queryex servicename | |
Kill service | |
taskkill /f /pid mypid | |
System file checker | |
sfc /scannow | |
Available physical memory |
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
# The following code fetches the most recent 1000 mentions of 'python'. | |
from tweepy import Stream | |
from tweepy import OAuthHandler | |
from tweepy.streaming import StreamListener | |
import tweepy | |
import time | |
ckey ='x' | |
csecret = 'x' |
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
imputer = Imputer(missing_values='NaN', strategy='mean', axis=0) | |
# imputer = Imputer(missing_values='NaN', strategy='median', axis=0) | |
# imputer = Imputer(missing_values='NaN', strategy='most_frequent', axis=0) | |
# imputer = Imputer(missing_values=0, strategy='mean', axis=0) | |
X_train = imputer.fit_transform(X_train) | |
X_test = imputer.transform(X_test) |
OlderNewer