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
// | |
// PNBarChart.h | |
// PNChartDemo | |
// | |
// Created by kevin on 11/7/13. | |
// Copyright (c) 2013年 kevinzhow. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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
# Function definitions | |
function getDates | |
{ | |
#Prompt the user to enter the date range | |
$startDate = Read-Host "Enter the start date for the date range in the format M/d/YYYY" | |
$endDate = Read-Host "Enter the end date for the date range in the format M/d/YYYY" |
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
# Function definitions | |
function getUserData | |
{ | |
Do { | |
$rootPath = Read-Host "Enter the path to the folder containing video files (NOT /userid)" | |
# $rootPath = "C:\Users\muengrcerthospkinect\Desktop\testing" | |
$pathTest = Test-Path $rootPath | |
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
# | |
# Function Name: getUserData | |
# | |
# Inputs: None | |
# | |
# Output: | |
# -$userData: A dictionary containing the entries... | |
# - "start" -> A dateTime object that marks the start of the date range | |
# - "end" -> A dateTime object that marks the end of the date range | |
# - "folderPath"-> A path (string) object containing the folderPath to the folder containing the subfolder "KinectData" |
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
# | |
# Function definitions | |
# | |
function updateFileNames($pathToUse) | |
{ | |
$pathToFiles = $pathToUse | |
$firstRange = getRanges 1 | |
$secondRange = getRanges 2 |
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
# | |
# Function definitions | |
# | |
function deleteAVIFilesInPath($path) | |
{ | |
if((Test-Path $path) -ne $true) | |
{ | |
$errMessage = "The path given was not valid" |
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
$convertMessage = ("Converting video with argument list " + $ArgumentList) | |
Write-Host $convertMessage | |
Start-Process -FilePath "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -ArgumentList $ArgumentList -Wait -NoNewWindow; | |
} | |
} |
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
function updateFilesInRange($range) | |
{ | |
$pathToFiles = $range.folderPath | |
# Selection all items within the $pathToFiles directory that meet the following conditions... | |
# 1. It is not a directory | |
# 2. It was created after the start of the date range | |
# 3. It was created before the end of the date range |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'gollum/app' | |
gollum_path = File.expand_path(File.dirname(__FILE__)) # CHANGE THIS TO POINT TO YOUR OWN WIKI REPO | |
Precious::App.set(:gollum_path, gollum_path) | |
Precious::App.set(:default_markup, :markdown) # set your favorite markup language | |
Precious::App.set(:wiki_options, {:universal_toc => false}) | |
run Precious::App |
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( sqlite3_prepare_v2(conn, select, -1, &statement, 0) == SQLITE_OK) | |
{ | |
numCol = sqlite3_column_count( statement ); | |
printf("\n"); | |
while( sqlite3_step( statement) == SQLITE_ROW ) | |
{ | |
OlderNewer