Skip to content

Instantly share code, notes, and snippets.

View alienlebarge's full-sized avatar
💾
:wq

Cédric Aellen alienlebarge

💾
:wq
View GitHub Profile
@alienlebarge
alienlebarge / sublime-usefull-keys.md
Last active December 12, 2015 07:29
Sublime Text usefull shortcut keys

Sublime Text usefull shortcut keys

Sublime Text is awesome! There are so many keyboard shortcuts that I find it hard to remember. I gathered this GIST ones I use the most to find them quickly.

All these commande can be found in the key bindings file Default (YourOS).sublime-keymap

Command & Goto

  • ctrl+p : Goto files
@alienlebarge
alienlebarge / shorthand.css
Last active December 15, 2015 07:09
CSS property shorthands
font: 16px/18px bold italic sans-serif;
/* size/line-height weight style family */
background: #000 url(image.jpg) no-repeat center top;
/* color image repeat x-pos y-pos */
list-style: disc inside none;
/* style position image */
margin or padding: 0 10px 0 10px / 0 10px 0 / 0 10px;
@alienlebarge
alienlebarge / readme.md
Last active December 15, 2015 12:49
Syncing Sublime Text 2 with Dropbox

Sync Sublime Text 2 with Dropbox

Instruction

  1. Quit Sublime Text 2
  2. In your Dropbox folder (usually at ~/Dropbox/), add a folder called Sublime Text 2 like ~/Dropbox/Apps/Sublime Text 2
  3. Open the folder with your ST2 settings (should be ~/Library/Application Support/Sublime Text 2/)
  4. Copy the following 3 folders into ~/Dropbox/Apps/Sublime Text 2/:
    • Installed Packages
    • Packages
@alienlebarge
alienlebarge / EditHostsFiles.md
Last active June 3, 2024 05:05
How to Edit the Hosts File in Mac OS X with Terminal

How to Edit the Hosts File in Mac OS X with Terminal

Edit the hosts file using the nano editor in Terminal.

  • Launch Terminal , found in /Applications/Utilities/ or launched through Spotlight
  • Type the following command at the prompt: sudo nano /private/etc/hosts
  • Enter the administrator password when requested, you will not see it typed on screen as usual with the command line
  • Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make your modifications
  • When finished, hit Control+O followed by ENTER/RETURN to save changes to /private/etc/hosts, then hit Control+X to exit out of nano
  • Quit out of Terminal when finished
@alienlebarge
alienlebarge / readme.md
Last active December 15, 2015 22:50
Little applescript to resize images

Resize Image AppleScript

This script is currently under development

Goal

  • Select items in Finder
  • Select size
  • It resize image
@alienlebarge
alienlebarge / 00-CRAW2013.md
Last active December 16, 2015 06:19
Rough notes from #CRAW2013

Conférence Romande sur l'Accessibilité du Web 2013

About

Rough notes from CRAW2013

I posted these notes immediately after each talk. Expect typos, formatting glitches, incomplete thoughts, and ...

And yeah, it was in french.

@alienlebarge
alienlebarge / RedesigningMapGeoAdminCh.md
Last active December 16, 2015 14:19
Rough notes from #uxr 15 - Redesigning map.geo.admin.ch

UX Romandie 15: Redesigning map.geo.admin.ch

These are my rough notes taken during the presentation. It reflects my opinion and not that of the speaker. Expect typos, formatting glitches, incomplete thoughts, and ... Take them as they are.

<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://www.opengis.net/kml/2.2"><Document><name>Saut du Day</name><open>1</open>
<Style id="trailsstyle">
<LineStyle>
<color>7f0000ff</color>
<width>6</width>
</LineStyle>
</Style>
<description>n/a</description>
<Placemark><styleUrl>#trailsstyle</styleUrl><name>Saut du Day: Segment (1)</name><LineString>
<tessellate>1</tessellate>
@alienlebarge
alienlebarge / CroyRomainmotier.kml
Last active December 17, 2015 19:39
Croy - Romainmôtier - #hiking
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document><name>Croy - Romainmôtier</name>
<description>Randonnée facile sur route goudronnée</description>
<Style id="rangecolour">
<LineStyle><color>660000FF</color><width>3</width></LineStyle>
<PolyStyle><color>660000FF</color></PolyStyle>
</Style>
<Style id="linecolour">
<LineStyle><color>660000FF</color><width>3</width></LineStyle>
@alienlebarge
alienlebarge / LacBrenet.kml
Created June 3, 2013 18:58
Tour du Lac Brenet - #hiking
<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://www.opengis.net/kml/2.2"><Document><name>Lac Brenet</name><open>1</open>
<Style id="trailsstyle">
<LineStyle>
<color>7f0000ff</color>
<width>6</width>
</LineStyle>
</Style>
<description>n/a</description>
<Placemark><styleUrl>#trailsstyle</styleUrl><name>Lac Brenet: Segment (1)</name><LineString>
<tessellate>1</tessellate>