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
syncFolders() { | |
printf "%s" "Target Folder: " | |
read localFolder | |
printf "%s" "Destination Folder: " | |
read remoteFolder | |
printf "%s" "Excluded Folders (separated by space): " | |
read excludedFolders | |
array=($(echo "$excludedFolders" | tr ' ' '\n')) | |
# if [ -z "${excludedFolders[@]}" ]; then |
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
git branch -m master main | |
git fetch origin | |
git branch -u origin/main main | |
git remote set-head origin -a |
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
# Originally created by Lin JungHsuan: https://medium.com/@linjunghsuan/create-a-simple-image-classifier-using-tensorflow-a7061635984a | |
import tensorflow as tf, sys | |
image_path = sys.argv[1] | |
# Read in the image_data | |
image_data = tf.gfile.FastGFile(image_path, 'rb').read() | |
# Loads label file, strips off carriage return | |
label_lines = [line.rstrip() for line |
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
//********************************************************* | |
// Quick and dirty way to detect event loop blocking | |
//********************************************************* | |
var lastLoop = Date.now(); | |
function monitorEventLoop() { | |
var time = Date.now(); | |
if (time - lastLoop > 1000) console.error('Event loop blocked ' + (time - lastLoop)); | |
lastLoop = time; | |
setTimeout(monitorEventLoop, 200); |
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 { Injectable } from '@angular/core'; | |
import { Subject, Subscription, Observable } from 'rxjs/Rx'; | |
@Injectable() | |
export class EventBusService { | |
subject = new Subject<any>(); | |
constructor() { } |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<!--<link rel="stylesheet" href="styles.css">--> | |
</head> | |
<body> | |
<h1>Hello world!</h1> | |
<!--<script src="script.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
<html ng-app="app"> | |
<body> | |
<div ng-controller="CustomersController"> | |
Name: <input type="text" ng-model="searchText" /> {{ searchText }} | |
<br /> | |
<ul> | |
<li ng-repeat="person in people | filter:searchText | orderBy:'name' track by person.id"> | |
{{ ::person.name }} - {{ ::person.city }} | |
</li> |
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
##Dust helpers not loading | |
Removed Dust.js functionality but leaving this in for future reference. | |
Inside the dustjs-helpers folder in your node_modules, you will notice dustjs-linkedin is version 2.3.5, | |
while in the node_modules folder of your app there is another version of dustjs-linkedin which is 2.4.0. | |
I deleted the older version and then everything works well. | |
https://github.com/krakenjs/kraken-js/issues/236 |
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 connect = require('connect'); | |
connect.createServer( | |
connect.static(__dirname) | |
).listen(9000); | |
console.log('Listening on port 9000'); |
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
.slide-animation.ng-enter, .slide-animation.ng-leave { | |
-webkit-transition: 0.5s linear all; | |
-moz-transition: 0.5s linear all; | |
-o-transition: 0.5s linear all; | |
transition: 0.5s linear all; | |
position:relative; | |
height: 1000px; | |
} | |
.slide-animation.ng-enter { |