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
# Run TF | |
docker run -p 8888:8888 -p 6006:6006 tensorflow/tensorflow | |
# Get the link for running Jupyter | |
docker exec $(docker ps -q) jupyter notebook list | |
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 | |
git config --global user.email "devtest@samsaodev.com" | |
git config --global user.name "Sam Sao" | |
git config --global push.default simple | |
mkdir -p ~/.ssh | |
echo '' > ~/.ssh/config | |
echo 'Host *' | |
echo ' StrictHostKeyChecking no' >> ~/.ssh/config |
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
# https://developer.android.com/training/wearables/apps/bt-debugging.html | |
Host: disconnected | |
Target: connected | |
adb forward tcp:4444 localabstract:/adb-hub | |
adb connect 127.0.0.1:4444 | |
Host: connected | |
Target: disconnected |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Testing JS and JQ </title> | |
<meta content="text/html; charset=utf-8" http-equiv="content-type"> | |
<script src="jquery.js"></script> |
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
# Find all executable files from this point on | |
find . -perm +0111 -type f | |
# create symbolic link | |
ln -s source dest |
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
// Constant | |
byte[] b = {10, 20, 30}; |
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
import java.io.*; | |
import java.util.Arrays; | |
import java.util.Date; | |
public class LearningJavaIOFile { | |
/** | |
* Java File is an abstraction for a file pathname. It is NOT the file itself. | |
* It is just a reference to a file that may or may not exist. | |
*/ |
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 this if you want to use toString method to print the array | |
import java.util.Arrays; | |
public class LearningArray { | |
public static void main(String[] args) { | |
// Creating a reference to an Array of integers | |
int[] iArray; | |
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
// This is a comment | |
/* | |
This is a | |
multiline | |
comment | |
*/ | |
/** | |
* If they start with two stars, |
NewerOlder