Skip to content

Instantly share code, notes, and snippets.

View cecilemuller's full-sized avatar

Cecile Muller cecilemuller

View GitHub Profile
@cecilemuller
cecilemuller / index.html
Created March 3, 2015 16:48
CSS styles based on number of children
<div class="list">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
</div>
<div class="list">
<div>Item 1</div>
@cecilemuller
cecilemuller / Preferences.sublime-settings
Created March 23, 2015 14:16
ST3 User Preferences (Packages\User\Preferences.sublime-settings)
{
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme",
"detect_indentation": false,
"font_size": 13,
"ignored_packages":
[
"Markdown",
"Vintage"
],
"theme": "Soda Dark 3.sublime-theme",
@cecilemuller
cecilemuller / origin.ms
Created June 10, 2015 14:14
Maxscript: move the pivot of the selection to the origin
macroScript movePivotToOrigin
category:"Wildpeaks"
tooltip:"Move pivot to global [0, 0, 0]"
(
if selection.count > 0 then
(
selection.pivot = [0,0,0]
)
)
@cecilemuller
cecilemuller / patch.sh
Created July 6, 2015 14:28
Programatically patch sudoers to make group "sudo" passwordless
#!/bin/bash
sudo cp /etc/sudoers /etc/sudoers.bak
sudo cp /etc/sudoers /etc/sudoers.tmp
sudo chmod 0640 /etc/sudoers.tmp
sudo sed -i 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers.tmp
sudo chmod 0440 /etc/sudoers.tmp
sudo mv /etc/sudoers.tmp /etc/sudoers
@cecilemuller
cecilemuller / .eslintrc
Last active September 10, 2015 14:43
Eslint rules
{
"ecmaFeatures": {
"jsx": true
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
@cecilemuller
cecilemuller / index.html
Created November 11, 2011 12:03
Getting started with BS Contact iOS
<!DOCTYPE>
<html>
<head>
<title>3D Demos</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="apple-touch-icon" href="icon.png" />
<link href="styles.css" rel="stylesheet" />
@cecilemuller
cecilemuller / gist:1375646
Created November 18, 2011 05:00
iPhone, iPad and Android icons and loading screens for web applications
<!-- For iPhone 4 with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png">
<!-- For first-generation iPad: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png">
@cecilemuller
cecilemuller / text_to_speech.wrl
Created January 5, 2012 15:58
TextToSpeech{} usage example in VRML/X3D
#VRML V2.0 utf8
EXTERNPROTO TextToSpeech [
exposedField SFString description
exposedField SFFloat pitch
exposedField SFFloat volume
exposedField SFFloat speed
exposedField SFBool enabled
eventIn SFString text
eventOut SFBool isActive
@cecilemuller
cecilemuller / Google-TextToSpeech.wrl
Created January 6, 2012 15:51
Better text-to-speech using Google Translate in VRML/X3D
#VRML V2.0 utf8
Sound {
location 0 0 10
spatialize FALSE
source DEF mp3 AudioClip {
loop FALSE
## Français
@cecilemuller
cecilemuller / combine_rotations.wrl
Created January 8, 2012 11:49
Combine two SFRotation into a single SFRotation using VRMLScript
#VRML V2.0 utf8
Viewpoint{
position 0 0 10
}
#