Skip to content

Instantly share code, notes, and snippets.

View dislogical's full-sized avatar
💭
Be sure to smash that subscribe button

Colden Cullen dislogical

💭
Be sure to smash that subscribe button
View GitHub Profile
@dislogical
dislogical / update.sh
Last active October 23, 2019 22:29
AWS C Library Updater
#!/bin/bash
set -e
repos=(
s2n
common
checksums
event-stream
cal
@dislogical
dislogical / ctors.cpp
Last active January 7, 2016 01:18
Constructor Inheritance: clang v. msvc
// MSVC Version: 18.00.40629
// Command line: cl ctors.cpp
// Clang Version: 3.7.0
// Command line: clang++ ctors.cpp -std=c++11
struct A
{
A() = delete;
A(const A&) = delete;
A(A&&) = delete;
@dislogical
dislogical / get_doveralls.sh
Last active August 29, 2015 14:11
Install Doveralls on Travis
curl "https://api.github.com/repos/ColdenCullen/doveralls/releases" | jq '.[0].assets | .[] | select(.name == "doveralls_${TRAVIS_OS_NAME}_travis") | .browser_download_url' | xargs wget -O doveralls
chmod +x doveralls
@dislogical
dislogical / boxstarter.txt
Created October 29, 2014 20:51
Boxstarter Bootstrap Script
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Set-StartScreenOptions -EnableBootToDesktop
Enable-RemoteDesktop
cinst toolsroot
cinst DotNet3.5
cinst DotNet4.5
cinst javaruntime
cinst nodejs
@dislogical
dislogical / Brittish.h
Created April 3, 2013 17:30
Brittish C++
#define announce std::cout<<
#define perchance if
#define otherwise else
#define what_about switch
#define perhaps case
#define on_the_off_chance default
#define splendid break
@dislogical
dislogical / Dictionary.cs
Created April 19, 2012 19:04
Dictionary data structure *REQUIRES LIST*
using System;
using System.Collections;
using System.Collections.Generic;
namespace DictionaryTest
{
/// <summary>
/// Dictionary of objects, stored by key</summary>
/// <typeparam name="TKey">Type of objects used</typeparam>
/// <typeparam name="TValue">Type of objects stored</typeparam>
@dislogical
dislogical / QueueSaver.cs
Created March 13, 2012 01:21
Interface between List and Queue to hide certain methods.
namespace YOUR_PROJECT_NAMESPACE
{
/// <summary>
/// Class that hides List's methods from Queue</summary>
/// <typeparam name="T">
/// Type of Queue</typeparam>
/// <author>Colden Cullen</author>
abstract class QueueSaver<T> : List<T>
{
public override sealed void Add( T data ) { }
@dislogical
dislogical / Queue.cs
Created March 13, 2012 01:20
Queue Data Structure: FILO
using System;
namespace YOUR_PROJECT_NAMESPACE
{
/// <summary>
/// Queue class</summary>
/// <typeparam name="T">
/// Type of object stored in queue</typeparam>
/// <author>Colden Cullen</author>
class Queue<T> : QueueSaver<T>
@dislogical
dislogical / Stack.cs
Created March 13, 2012 01:05
Stack data structure: FIFO
using System;
namespace YOUR_PROJECT_NAMESPACE
{
/// <summary>
/// A node based implementation of a stack
/// Adapted from prior GSD2 material with many other authors
/// A lot of this code was written by Professor Schwartz</summary>
/// <typeparam name="T">
/// The data type the NodeStack holds</typeparam>
@dislogical
dislogical / List.cs
Created March 13, 2012 01:04
List data structure: Any Access
using System;
using System.Collections.Generic;
namespace CHANGE_ME
{
/// <summary>
/// Linked list of objects
/// </summary>
/// <typeparam name="T">Type of object stored in list</typeparam>
/// <author>Colden Cullen</author>