Skip to content

Instantly share code, notes, and snippets.

View const-g's full-sized avatar
🚀

Constantin Guay const-g

🚀
View GitHub Profile
@marfillaster
marfillaster / README.md
Last active February 1, 2023 10:07
WSL Desktop Launched i3wm

WSL Desktop Launched i3wm

Requirements VcXsrv, i3wm in wsl.

The three files below must be stored in the same directory (%UserProfile%\Desktop).

  • i3.vbs - This is the entrypoint script. It runs i3.bat in the background.
  • i3.bat - Runs VcXsrv using d0.xlaunch profile then starts i3
  • d0.xlaunch - VcXsrv in "One window without titlebar" mode at DISPLAY=:0
curl 'http://vim-bootstrap.com/generate.vim' --data 'langs=javascript&langs=php&langs=html&langs=ruby&editor=vim' > ~/.vimrc
@ofavre
ofavre / page.html
Created October 7, 2016 16:01
[WonderPush] Category-specific notification subscription switch sample code
<!-- With tags put inside the switch -->
<div>
Follow:
<div class="wonderpush-tag-switch" style="display: inline-block;" data-tag-field="string_categories" data-tag-value="music" data-on="Music" data-off="Music"></div>
<div class="wonderpush-tag-switch" style="display: inline-block;" data-tag-field="string_categories" data-tag-value="sport" data-on="Sport" data-off="Sport"></div>
</div>
<!-- Or with tags put outside the switch -->
<div>
<div class="wonderpush-tag-switch" style="display: inline-block;" data-tag-field="string_categories" data-tag-value="music" data-sentence="Music"></div>
<div class="wonderpush-tag-switch" style="display: inline-block;" data-tag-field="string_categories" data-tag-value="sport" data-sentence="Sport"></div>
# vim: ft=bash ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for BASH
#
# (Converted from ZSH theme by Kenny Root)
#
# # README
#
# In order for this theme to render correctly, you will need a
@deweller
deweller / PHP.sublime-settings
Created July 18, 2013 15:07
Allows Sublime Text to treat variables that start with $ as words. This file should named PHP.sublime-settings and should be located in your Packages/User directory next to your user preferences file.
// this file should named PHP.sublime-settings
// and should be located in your Packages/User directory (next to your user preferences file)
{
// Characters that are considered to separate words
// this is modified from the default with the $ removed
// this allows PHP variables to be treated as words
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
}