This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Clone de la fonction MessageBox de Win32. | |
* https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx | |
* | |
* NB : limitations | |
* -> doit être appellé uniquement APRES le le head, et depuis le PHP (forcément) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- | |
====================================================================== | |
Keen | |
====================================================================== | |
A Sublime Text 2 / Textmate theme. | |
Copyright (c) 2014 Dayle Rees. | |
Released under the MIT License <http://opensource.org/licenses/MIT> | |
====================================================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"keys": ["control+alt+;"], "command": "align_tab", | |
"args" : { | |
"user_input" : ":/f" | |
} | |
}, | |
{ | |
"keys": ["control+alt+="], "command": "align_tab", | |
"args" : { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin, time | |
last_change = time.time() | |
update_interval = 1.5 # s | |
class DisplayLineCount(sublime_plugin.EventListener): | |
def update_line_count(self, view): | |
line_count = view.rowcol(view.size())[0] + 1 | |
view.set_status("line_count", "{0} lines".format(line_count)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BeautifulSoup | |
import sys | |
import requests | |
def bin_image(url, filename): | |
f = open(filename, "wb") | |
f.write(requests.get(url).content) | |
f.close() | |
def get_jpgs(url): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef unsigned long u64; | |
/* Start here */ | |
typedef void enc_cfg_t; | |
typedef int enc_cfg2_t; | |
typedef __int128_t dcf_t; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
behave mswin | |
" Indentation style | |
"set tabstop=4 " columns per tab | |
"set softtabstop=4 " force tab use | |
"set shiftwidth=4 " columns per indentation | |
"set noexpandtab " prevent tab from inserting spaces | |
"set colorcolumn=81 " highlight 81st column | |
" Nethack C style indentation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc -I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks -framework SDL2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Loading plugins and shit | |
(add-to-list 'load-path "~/elisp") | |
(add-to-list 'custom-theme-load-path "~/elisp/themes/") | |
(require 'php-mode) | |
(require 'nyan-mode) | |
; MELPA repo | |
(require 'package) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) | |
(package-initialize) |