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
Portal m_tempPortal = new Portal(); | |
UserCollection m_instructors = m_tempPortal.Instructors; | |
foreach (User u in m_instructors) | |
{ | |
String newStatus = (newSetting ? "Inactive" : "Active"); | |
u.Status = new UserStatus(newStatus); |
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
#include <stdio.h> | |
#include <sqlite3.h> | |
#include <string.h> | |
#define BUFFERSIZE | |
int checkIfFileExists( char* fileName ); | |
int countColumnsInLine( char* line ); | |
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
#include <stdio.h> | |
#include <sqlite3.h> | |
#include <string.h> | |
#define MAXSTRING 200 | |
// Function prototypes | |
void closeStatement( sqlite3_stmt *statement ); | |
void closeConnection( sqlite3 *connection ); |
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
#include <stdio.h> | |
#include <sqlite3.h> | |
#include <string.h> | |
#define MAXSTRING 200 | |
// Function prototypes | |
void closeStatement( sqlite3_stmt *statement ); | |
void closeConnection( sqlite3 *connection ); |
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 ) | |
{ | |
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
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
$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 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
# | |
# Function definitions | |
# | |
function updateFileNames($pathToUse) | |
{ | |
$pathToFiles = $pathToUse | |
$firstRange = getRanges 1 | |
$secondRange = getRanges 2 |