Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 );
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 / ReportBuilderDataPull.cs
Created April 7, 2015 21:05
How I currently pull user data in ReportBuilder
foreach (UserRoleChart userChart in m_chart.UserRoleCharts)
{
User p_user = userChart.UserRole.User;
String fNameText = p_user.DisplayFirstName;
String lNameText = p_user.DisplayLastName;
PdfPage newPage = pdfDoc.AddPage(pdfPageSize, pdfPageMargins, pdfPageOrientation);
float xPos = 100;
var express = require('express'),
user = require('./routes/users'),
story = require('./routes/story'),
photos = require('./routes/photos'),
sms = require('./routes/sms'),
manager = require('./routes/manager');
var app = express();
app.configure(function () {
var dbName = "photoArchiving",
collectionName = "photos",
subfolderName = "mainPhotos/";
var mongo = require('mongodb'),
sprintf = require('sprintf').sprintf,
fs = require('fs'),
moment = require('moment'),
aws = require('../awsConnections/awsTest.js');
<?xml version="1.0" encoding="UTF-8"?>
<users>
<user Section="200" CourseNum="5001-200-20151" FullName="Adrian Aizensat Aizenstat" FirstName="Adrian Aizensat" LastName="Aizenstat" UserIdentifier="AAizenstat16" PreferredFName="Adrian Aizensat" Entry_Term="20151" Cluster="2016S" Hometown="Miami" Country="United States" Email="[email protected]" UndergraduateDegree="Bachelor of Science" UndergraduateMajor="Finance (Honors)" UndergraduateCollege="University Of Florida" DegreeYear1="2007" UndergraduateDegree2="Master of Business Administration" UndergraduateMajor2="" UndergraduateCollege2="University Of Florida" DegreeYear2="2016" Company="Wells Fargo Bank, N.A." Title="Relationship Manager" Division="" Industry="Diversified Financial Services" PrevCompany2="LASA, Inc." Title2="Managing Principal" Division2="" Industry2="Real Estate" PrevJobStartDate3="2007-10-01" Statement="&lt;p&gt;Adrian Aizenstat is a Relationship Manager at Wells Fargo Bank, where he&amp;rsquo;s been directly involved in the ori
.background {
background-image: url(https://i.imgur.com/YjVLuto.jpg);
}
.progressBar {
background-color: rgb(238, 255, 65);
}
.watermark {
width: 600px;
height: 600px;
}
class PAPhotograph {
private static let DEFAULT_UID = ""
private static let DEFAULT_TITLE = ""
private static let DEFAULT_LONG_DESCRIPTION = ""
private static let DEFAULT_DATE_UPLOADED = Date()
private static let DEFAULT_THUMB_URL = ""
private static let DEFAULT_MAIN_URL = ""
private static let DEFAULT_DATE_TAKEN = Date()
private static let DEFAULT_DATE_CONF : Float = 0.0