Skip to content

Instantly share code, notes, and snippets.

14:35:50 D:\Projects\Games [master]> D:\Tools\cloc.exe .\Breakout\
35 text files.
35 unique files.
30 files ignored.
github.com/AlDanial/cloc v 1.90 T=0.10 s (235.4 files/s, 20617.1 lines/s)
-----------------------------------------------------------------------------------
Language files blank comment code
-----------------------------------------------------------------------------------
C++ 5 206 47 778
@Chrisso
Chrisso / devlog.sh
Last active October 16, 2019 08:18
devlog-docker
docker run --name devlog \
-p 8080:80 \
-v $(pwd):/app \
-w /app \
--rm \
--entrypoint dotnet \
mcr.microsoft.com/dotnet/core/aspnet:2.1 \
devlog.dll
/* Additional animation classes to be combined with other classes */
/* Works in browsers that support CSS3 Animations which includes all */
/* major browsers except MS Internet Explorer. */
/* CS, created 24-Sep-2012, Mozilla Firefox 15 */
/* CSS Animations */
@keyframes blinker
{
from { opacity : 1.0; }
@Chrisso
Chrisso / gist:4130086
Created November 22, 2012 08:59
HTML5 form validation styles
input:required:invalid, input:focus:invalid /* validator: -invalidparam */
{
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAeVJREFUeNqkU01oE1EQ/mazSTdRmqSxLVSJVKU9RYoHD8WfHr16kh5EFA8eSy6hXrwUPBSKZ6E9V1CU4tGf0DZWDEQrGkhprRDbCvlpavan3ezu+LLSUnADLZnHwHvzmJlvvpkhZkY7IqFNaTuAfPhhP/8Uo87SGSaDsP27hgYM/lUpy6lHdqsAtM+BPfvqKp3ufYKwcgmWCug6oKmrrG3PoaqngWjdd/922hOBs5C/jJA6x7AiUt8VYVUAVQXXShfIqCYRMZO8/N1N+B8H1sOUwivpSUSVCJ2MAjtVwBAIdv+AQkHQqbOgc+fBvorjyQENDcch16/BtkQdAlC4E6jrYHGgGU18Io3gmhzJuwub6/fQJYNi/YBpCifhbDaAPXFvCBVxXbvfbNGFeN8DkjogWAd8DljV3KRutcEAeHMN/HXZ4p9bhncJHCyhNx52R0Kv/XNuQvYBnM+CP7xddXL5KaJw0TMAF8qjnMvegeK/SLHubhpKDKIrJDlvXoMX3y9xcSMZyBQ+tpyk5hzsa2Ns7LGdfWdbL6fZvHn92d7dgROH/730YBLtiZmEdGPkFnhX4kxmjVe2xgPfCtrRd6GHRtEh9zsL8xVe+pwSzj+OtwvletZZ/wLeKD71L+ZeHHWZ/gowABkp7AwwnEjFAAAAAElFTkSuQmCC');
background-position: right top;
background-repeat: no-repeat;
-moz-box-shadow: none; /* validator: -warning-le
@Chrisso
Chrisso / App.config
Created January 30, 2012 09:57
Simple NLOG App.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
</configSections>
<nlog>
<targets>
<target name="console" type="Console" layout="${message}" />
<target name="debugger" type="Debugger" layout="${message}"/>
</targets>
@Chrisso
Chrisso / base64-encode.cs
Created December 13, 2011 12:52
C# Base64-Encoder
using System;
using System.IO;
public class Base64EncodeApp
{
public static void Main(string[] args)
{
if (args.Length < 1)
{
Console.WriteLine("usage: base64-encode.exe <filename>");
@Chrisso
Chrisso / mouseeye.cpp
Created November 10, 2011 15:34
Animated eyes following mouse movement
#define WIN32_LEAN_AND_MEAN
#define _USE_MATH_DEFINES
#include <windows.h>
#include <stdio.h>
#include <math.h>
POINT CalcEyePosition(HWND hWnd, RECT *rcClient)
{
POINT ptWindow;
ptWindow.x = rcClient->right / 2;
@Chrisso
Chrisso / Logging.cpp
Created November 8, 2011 15:19
C++ Logging-Implementation using ATL (subset of MFC)
/*
Copyright (c) 2011 Christoph Stoepel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Chrisso
Chrisso / Logging.h
Created November 8, 2011 15:18
C++ Logging using ATL (subset of MFC)
/*
Copyright (c) 2011 Christoph Stoepel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: