This file contains 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
/** | |
* @file CPosition.h file | |
*/ | |
/** | |
* @brief nonclassfunc | |
*/ | |
void nonclassfunc(int x, int y); | |
/** |
This file contains 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
/** | |
* @file sql.c sql queries | |
*/ | |
/*! | |
* @page sqltest SQL code test | |
* | |
* ~~~~~~~{.sql} | |
* CREATE PROCEDURE GetUser | |
* @LastName nvarchar(50), | |
* @FirstName nvarchar(50) |
This file contains 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
package main | |
import "fmt" | |
import "math/rand" | |
import "time" | |
func main() { | |
var resources = 3 | |
resource_totals := make([]int, resources) |
This file contains 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 <time.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
void printhelp(){ | |
printf("Get age of person.\n\n"); | |
printf("Usage: age -d <day> -m <month> -y <year>\n"); | |
printf("Arguments\n"); | |
printf(" -h\tprint this.\n"); |
This file contains 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
#ifndef _CONTROLLER_ | |
#define _CONTROLLER_ | |
#include <sstream> | |
/** | |
* Base controller for handling http requests. | |
*/ | |
class Controller{ |
This file contains 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
#!/bin/bash | |
randomimage=`ls $HOME/Pictures | grep ".png\|.jpg" | shuf -n 1` | |
cp $HOME/Pictures/$randomimage $HOME/.face |
This file contains 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/python | |
import sys | |
import gtk | |
import pygtk | |
import gnomeapplet | |
import random | |
import time | |
import threading |
This file contains 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 <time.h> | |
int main(int argc, char** argv){ | |
//Get current time | |
time_t now = time(0); | |
struct tm* now_tm = localtime(&now); | |
//Get midnight today | |
struct tm today; |