Skip to content

Instantly share code, notes, and snippets.

@Arc0re
Arc0re / .nvimrc
Created July 7, 2015 02:25
NeoVim personal dotfile
"Arc's nvimrc.
"Made in love and suffering
"For the best text editor
"NeoVim, I guess
""""""""""""""""""""
"""" Colors & themes
""""""""""""""""""""
" enables syntax highlighting
@Arc0re
Arc0re / ball.js
Created July 21, 2015 09:59
A bouncing ball.
var canvas = document.getElementById('canvas');
var context;
var x = 100;
var y = 200;
var ix = 5;
var iy = 5;
function init()
{
context = canvas.getContext('2d');
@Arc0re
Arc0re / Preferences.sublime.settings
Created August 7, 2015 23:55
Sublime Text user settings
{
"caret_style": "phase",
"color_scheme": "Packages/Predawn Twilight Theme/Predawn Twilight.tmTheme",
"ensure_newline_at_eof_on_save": true,
"fold_buttons": false,
"font_size": 10,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
@Arc0re
Arc0re / MySQL.php
Created August 12, 2015 23:33
EPSI classe et méthodes pour MySQL
<?php
class SqlRequest
{
private static $fh_db;
private function __construct()
{
}
public static function createItem($table, $data)
@Arc0re
Arc0re / .emacs
Last active August 29, 2015 14:27
Emacs bindings for mac ++ spacemacs style bindings (evil)
;; remap fn to ctrl on mac
(setq ns-function-modifier 'control)
;; remap alt to option and meta to command
(setq mac-option-key-is-meta nil)
(setq mac-command-key-is-meta t)
(setq mac-command-modifier 'meta)
(setq mac-option-modifier nil)
;; Evil stuff
@Arc0re
Arc0re / Makefile
Last active October 4, 2022 13:44
Basic C Makefile for mac, using SDL2 (should work on any UNIX with a few modifications)
CC:= gcc-5
SOURCES:= $(wildcard src/*.c)
OBJECTS:= $(addprefix obj/,$(notdir $(SOURCES:.c=.o)))
CFLAGS:= -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -isystem /usr/local/include/SDL2 -Iinclude
LDFLAGS:= -L/usr/local/lib
LDLIBS:= -lSDL2 -lSDL2_image
EXECUTABLE:= game
@Arc0re
Arc0re / ascii.lua
Created January 18, 2016 17:57 — forked from inmatarian/ascii.lua
vim autocomplete friendly enumeration of CP437 ascii characters
local ascii = {}
ascii.null = 0
ascii.empty_smiley = 1
ascii.smiley = 2
ascii.heart = 3
ascii.diamond = 4
ascii.club = 5
ascii.spade = 6
ascii.dot = 7
ascii.inverse_dot = 8
-Wall -Wtraditional -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wconversion -pedantic -std=iso9899:1999
@Arc0re
Arc0re / .vimrc
Created March 18, 2016 06:33
Windows (mswin) vimrc
behave mswin
set tabstop=4 "4 tabs/columns
set shiftwidth=4 "same for indentation
set number
set cursorline
set encoding=utf8
set hlsearch
set nobackup
set nowb
set noswapfile
@Arc0re
Arc0re / .emacs
Last active April 22, 2016 21:33
Basic .emacs (should be multiplatform). Put it in $HOME (on mswin define $HOME as a user env variable)
;; Loading plugins and shit
(add-to-list 'load-path "~/elisp")
(add-to-list 'custom-theme-load-path "~/elisp/themes/")
(require 'php-mode)
;; MELPA repo
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)