Skip to content

Instantly share code, notes, and snippets.

@qwerty12
qwerty12 / rain.ahk
Created October 16, 2011 12:26
AutoHotkey script to hide Rainmeter widget
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
DisableRainmeterSkin()
{
Envget, APPDATA, APPDATA
RainmeterINI = %APPDATA%\Rainmeter\Rainmeter.ini
VDMSection = Visions+\VDM Controller
VDMActiveKey = Active
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active January 12, 2024 03:46
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@gnuanu
gnuanu / 01.step1.md
Last active January 24, 2024 08:20
Creating a simple Hello World application Using Android NDK with C++

Prerequisites

  1. I am using GNU/Linux
  2. My IDE is IntelliJ IDEA
  3. The project is Ant based.
  4. My working directory is $JNI
  5. My C++ IDE is QtCreator (I'll mention the build steps inline).
  6. NDK should be installed and ndk-build should be available in $PATH
  7. javah should be available in $PATH

Step 1 - Create The Android Project

@eyecatchup
eyecatchup / colors_material.xml
Last active June 27, 2021 23:18
Android L Material Color Specs
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@KeyMaster-
KeyMaster- / PhysBody.hx
Created April 4, 2015 22:16
Luxe rectangles physics engine (WIP, and very basic)
package ;
import luxe.Component;
import luxe.Rectangle;
import luxe.Vector;
class PhysBody {
public var rect:Rectangle;
public var vel:Vector;
public var acc:Vector;
@dgellow
dgellow / triangle.nim
Last active February 10, 2018 13:59 — forked from allj/triangle.nim
A colorful triangle in nim OpenGL.
import os
import opengl
import glfw/wrapper as glfw
var
win: GLFWwindow
vaoID: GLuint
vboID: GLuint
cboID: GLuint
vertexShaderID: GLuint
@anissen
anissen / Perlin.hx
Last active April 12, 2016 13:33
Animated perlin noise example
class Perlin {
public var repeat :Int;
public function new(repeat :Int = -1) {
this.repeat = repeat;
}
public function OctavePerlin(x :Float, y :Float, z :Float, octaves :Int, persistence :Float) {
var total :Float = 0;
var frequency :Float = 1;
@anissen
anissen / Test.hx
Created March 7, 2016 20:44
Diamond-square algorithm for generating realistic terrain
class Heightmap {
var size :Int;
var tiles :Array<Array<Null<Float>>>;
var d :Int;
public function new() {
}
@josuigoa
josuigoa / Accelerometer.hx
Last active June 21, 2017 21:12
Getting accelerometer values with Luxe engine
package;
import luxe.Input;
typedef AccelEvent = {
timestamp:Float,
value:Float,
axis:Int
}
@zacharycarter
zacharycarter / wclwn.md
Last active July 6, 2024 06:26
Binding to C Libraries with Nim