Write a simple 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
# Description: | |
# TensorFlow camera demo app for Android. | |
load("@build_bazel_rules_android//android:rules.bzl", "android_binary") | |
package(default_visibility = ["//visibility:public"]) | |
licenses(["notice"]) # Apache 2.0 | |
exports_files(["LICENSE"]) |
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
<div data-live="true" | |
data-ratio="0.5625" | |
class="flowplayer fixed-controls"> | |
<video data-title="Live stream"> | |
<source type="application/x-mpegurl" | |
src="http://waaarplive05-lh.akamaihd.net/i/stemi_1@66843/master.m3u8"> | |
</video> | |
</div> |
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> | |
<script> | |
function myFunction(){ | |
var iframe = document.getElementById('youtube'); | |
iframe.src = iframe.src; | |
} | |
</script> | |
</head> |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
# | |
# Copyright © 2014 martinku <martinku@ss-martin-ku> | |
# | |
# Distributed under terms of the MIT license. | |
""" | |
Generate issue links for release note. |
pip uninstall scikit-learn
(if previous version is installed)- download/install scikit-learn
- download/install pylab
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
Dim queryFolderFullPath As String | |
Public Const queryFolderRelativePath = "Microsoft Query" 'Relative to the workbook | |
Sub LoadMSQueries() | |
Dim queryFiles() As String | |
Dim i As Integer | |
queryFiles = ListQueryFiles() | |
For Each conn In ActiveWorkbook.Connections | |
For i = LBound(queryFiles) To UBound(queryFiles) | |
If conn.Name = RemoveFileExtension(queryFiles(i)) 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
:: -U, user name | |
:: -P, password | |
:: -h-1 [removes column name headers from the result] | |
:: -s"," [sets the column seperator to ,] | |
:: -w 1000 [sets the row width to 1000 chars (need to be as wide as the longest row or it will wrap to the next line)] | |
:: -W [remove trailing spaces from each individual field] | |
:: set nocount on; set ansi_warnings off; [in SQL file to remove additional messages] > | |
:: extract source file | |
sqlcmd -S %SERVER% -d %DB_NAME% -U %ARG1% -P %ARG2% -h-1 -s"," -W -w 1000 -i "%SQL_FILE%" -o "%RAW_FILE%" |
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
# Plot multiple time series at one time | |
# Trick 1: use cut to rotate label values of y-axis | |
# Trick 2: use auto.key=list(space="inside") to make the legend be inside the panel. | |
ratings <- read.csv("Chinese_Weekday_Drama.csv", fileEncoding="utf-8") | |
xyplot(ts(ratings),superpose=TRUE,strip=FALSE,cut=1, | |
ylab="Rating",type="b",lwd=2,main="TV Rating Actual Data", | |
auto.key=list(space="inside")) |
NewerOlder