Skip to content

Instantly share code, notes, and snippets.

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);
@forsythetony
forsythetony / inbrain
Last active August 29, 2015 14:10
nothing
#include <stdio.h>
#include <sqlite3.h>
#include <string.h>
#define BUFFERSIZE
int checkIfFileExists( char* fileName );
int countColumnsInLine( char* line );
@forsythetony
forsythetony / fuckoff
Created November 20, 2014 03:48
dont wanna hear it
#include <stdio.h>
#include <sqlite3.h>
#include <string.h>
#define MAXSTRING 200
// Function prototypes
void closeStatement( sqlite3_stmt *statement );
void closeConnection( sqlite3 *connection );
@forsythetony
forsythetony / shit
Created November 20, 2014 03:12
fixurshit
#include <stdio.h>
#include <sqlite3.h>
#include <string.h>
#define MAXSTRING 200
// Function prototypes
void closeStatement( sqlite3_stmt *statement );
void closeConnection( sqlite3 *connection );
@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 )
{
#!/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
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
$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 definitions
#
function deleteAVIFilesInPath($path)
{
if((Test-Path $path) -ne $true)
{
$errMessage = "The path given was not valid"
#
# Function definitions
#
function updateFileNames($pathToUse)
{
$pathToFiles = $pathToUse
$firstRange = getRanges 1
$secondRange = getRanges 2