Skip to content

Instantly share code, notes, and snippets.

View cybardev's full-sized avatar
:atom:
Learning...

Sheikh cybardev

:atom:
Learning...
View GitHub Profile
@profi200
profi200 / gbaEepromSaveFix.c
Last active March 30, 2023 20:23
A tool to fix wrong byte order GBA EEPROM saves as created by some emulators.
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// Compile with "gcc -std=c17 -O2 -fstrict-aliasing -ffunction-sections -Wall -Wl,--gc-sections gbaEepromSaveFix.c -o gbaEepromSaveFix"
int main(int argc, char *argv[])
{
int res = 0;
@oakes
oakes / project.clj
Last active October 17, 2021 22:57
Using Paravim with Leiningen
(defproject lein-paravim "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.1"]]
; since paravim is in the `:dev` profile,
; it will launch when you do `lein run`.
; if you don't want that behavior,
; just change `:dev` to something else.
; if you change it to `:paravim`, you can
; launch it by doing `lein with-profile paravim run`
:profiles {:dev {:dependencies [[paravim "RELEASE"]]
:main paravim.start
@ajay2611
ajay2611 / python-split-function.py
Created February 14, 2018 20:50
Python's split function implementation
def split(string, delimiter):
"""
Desc: Python's split function implementation
:param string: a string
:return: a list after breaking string on delimiter match
"""
result_list = []
if not delimiter:
raise ValueError("Empty Separator")
@daem-on
daem-on / pong.lua
Created May 1, 2017 11:45
Simple pong game in lua with LÖVE
ball = {}
ball.x = 300
ball.y = 200
ball.vel = {}
ball.vel.x = 3
ball.vel.y = 1
ball.height = 30
ball.width = 30
map = {}
@jasongilman
jasongilman / atom_clojure_setup.md
Last active January 11, 2024 09:13
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.