Skip to content

Instantly share code, notes, and snippets.

View Leandros's full-sized avatar

Arvid Gerstmann Leandros

View GitHub Profile
@Leandros
Leandros / Swizzles.h
Created February 15, 2018 16:38 — forked from NocturnDragon/Swizzles.h
Swizzles in Clang, GCC, and Visual c++
#include <stdio.h>
// #define CLANG_OR_GCC
// Compile with -O3 -std=c++11 for Clang version
#define VS
// Compile with -O3 -fms-compatibility -std=c++11 for VS version
#if defined(CLANG_OR_GCC)
typedef float float2 __attribute__((ext_vector_type(2)));

Core Coding Standard

Coding practices are a source of a lot of arguments among programmers. Coding standards, to some degree, help us to put certain questions to bed and resolve stylistic debates. No coding standard makes everyone happy. (And even their existence is sure to make some unhappy.) What follows are the standards we put together on the Core team, which have become the general coding standard for all programming teams on new code development. We’ve tried to balance the need for creating a common, recognizable and readable code base with not unduly burdening the programmer with minor code formatting concerns.

Table Of Contents

@Leandros
Leandros / 0_reuse_code.js
Created November 9, 2013 21:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Leandros
Leandros / HockeySender.java
Last active December 11, 2015 17:29 — forked from ashtom/HockeySender.java
Improved Gist
package net.hockeyapp.android.demo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.acra.ACRA;
import org.acra.collector.CrashReportData;
import org.acra.ReportField;
import org.acra.sender.ReportSender;