Skip to content

Instantly share code, notes, and snippets.

@forsythetony
forsythetony / PNBarChart.h
Created February 7, 2014 03:33
Modified Files for PNChart
//
// PNBarChart.h
// PNChartDemo
//
// Created by kevin on 11/7/13.
// Copyright (c) 2013年 kevinzhow. All rights reserved.
//
#import <UIKit/UIKit.h>
# 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"
# 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
#
# 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"
#
# Function definitions
#
function updateFileNames($pathToUse)
{
$pathToFiles = $pathToUse
$firstRange = getRanges 1
$secondRange = getRanges 2
#
# Function definitions
#
function deleteAVIFilesInPath($path)
{
if((Test-Path $path) -ne $true)
{
$errMessage = "The path given was not valid"
$convertMessage = ("Converting video with argument list " + $ArgumentList)
Write-Host $convertMessage
Start-Process -FilePath "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -ArgumentList $ArgumentList -Wait -NoNewWindow;
}
}
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
#!/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
@forsythetony
forsythetony / umadbro
Created November 20, 2014 02:42
Strong independent black woman
if( sqlite3_prepare_v2(conn, select, -1, &statement, 0) == SQLITE_OK)
{
numCol = sqlite3_column_count( statement );
printf("\n");
while( sqlite3_step( statement) == SQLITE_ROW )
{