Skip to content

Instantly share code, notes, and snippets.

View cybrox's full-sized avatar
☠️
Tinkering

Sven Gehring cybrox

☠️
Tinkering
View GitHub Profile
@cybrox
cybrox / Cynum.class.cs
Last active August 29, 2015 13:57
Simple class for converting numbers without crashing the program for educational stuff.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace CyLib {
/**
* @class Cynum
@cybrox
cybrox / m4tr1x.cs
Created March 13, 2014 09:37
Matix, cuz matrix.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace m4trx {
class Program {
static bool x0tkr = false;
static Random x0ur = new Random();
@cybrox
cybrox / Cystring.class.cs
Last active August 29, 2015 13:57
Handle Read and write access
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Text.RegularExpressions;
@cybrox
cybrox / PushHandler.class.php
Last active August 29, 2015 13:59
PHP Push notifications handler for mobile devices
<?php
/**
* PHP mobile push notification handler
* Supports: Windows Phone
*
* Written and copyrighted 2014+
* by Sven Marc 'cybrox' Gehring
* Licensed under CC-BY
@cybrox
cybrox / newchan.css
Last active August 29, 2015 14:01
Custom 4chan style
/* Global elements style */
html, body { height: 100%; }
body {
margin: 0;
padding: 0;
background: #1a1a1a;
}
a, a:visited {
@cybrox
cybrox / EmberChartComponent.js
Created June 5, 2014 12:39
Use Chart.js as a simple Ember.js component
/**
* This is a very simple example of an ember component to integrate
* nnick/chart.js in an ember.js application. Basically, it is simply
* using the components hook to create a ChartJS canvas element.
* Additionally, it supports an update property that allows you to
* let the chart re-rendet if your data or options change. Chart.js
* doesn't support updating its data so this will just create a new
* chart on the given canvas.
*
* Example usage in a handlebars template:
@cybrox
cybrox / hbscssconventions.md
Last active August 29, 2015 14:04
Hummingbird SCSS conventions

Since we needed to clean up our scss files anyways, here are a few conventions that all style files should follow. This appends to any file stored in app/assets/stylesheets

ToDo-List

[] Split up layout into multiple sections (maybe)

Structure

/base Core style files
/modules Variable declarations and globally used modules
/partials Styles used on a specific part of the site

@cybrox
cybrox / oo-c.c
Last active August 29, 2015 14:11
Simple, object oriented implementation in native C (very basic object handling)
/**
* Simple example of object oriented implementation in native C
* Compiled using the Visual Studio 2013 C/C++ compiler.
*
* Written 2014 by Sven Marc 'cybrox' Gehring
* This is an open example, use it however you want.
*/
#include <stdio.h>
/**
* @file sketch.ino
* @author Sven Marc 'cybrox' Gehring
* @date 2015-02-20
* @brief Pathetic guitar hero implementation for RKAG Matrix
*/
#include "Matrix_RKAG.h"
#include "SPI.h"
#include "Wire.h"
@cybrox
cybrox / cdoc.js
Created March 3, 2015 22:16
C Documentation Generator in Javascript
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript">
/**
* Javascript based C-Auto documentation generator
*
* This script generates an array with documentary information about every function
* present in the given input file. The output can be processed via lambda.
*
* Known Bugs: