Skip to content

Instantly share code, notes, and snippets.

View manolenso's full-sized avatar

Laurent Rémy manolenso

  • TV Magazine
  • Paris IX
View GitHub Profile
@manolenso
manolenso / jsx: if no document open
Created December 9, 2014 18:21
jsx: if no document open
if(app.documents.length < 1){
alert("Il n'y a pas de document ouvert! ");
}else{
var document = app.activeDocument;
}
@manolenso
manolenso / untitled
Created October 20, 2014 20:36
compass html start
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
<link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
<![endif]-->
<title>compass</title>
@manolenso
manolenso / untitled
Created October 17, 2014 06:18
jquery1.7.2 cnd & fallback
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.
js"></script>
<script>window.jQuery || document.write('<script src="js/lib/
jquery.js"><\/script>')
</script>
@manolenso
manolenso / app.coffee
Created October 17, 2014 05:58
verification loading jquery
$ -> alert "jQuery est chargée!"
@manolenso
manolenso / cdn-jquery&fallback
Created October 17, 2014 05:27
cdn-jquery&fallback
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.
js"></script>
<script>window.jQuery || document.write('<script src="js/lib/
jquery.js"><\/script>')
</script>
@manolenso
manolenso / open-w-atom.reg
Created October 8, 2014 20:15
Open Atom reg
Windows Registry Editor Version 5.00
;
; Adds 'Open in Atom' to context menu (when you right click) in Windows Explorer.
;
; Based on https://github.com/Zren/atom-windows-context-menu. It didn't work
; https://github.com/Zren/atom-windows-context-menu/issues/1.
;
; Save this file to disk with a .reg extension. Replace C:\\Atom\\atom.exe with
; the path to the atom executable on your machine.
@manolenso
manolenso / .gitconfig
Last active August 29, 2015 14:01
my git config
[user]
name = Laurent
email = rlaurent@tvmag.com
[color]
ui = true
diff = auto
status = auto
branch = auto
@manolenso
manolenso / index.js
Created May 14, 2014 20:26
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
@manolenso
manolenso / index.js
Created May 12, 2014 21:31
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 200
canvas.height = 200
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
[user]
name = Laurent
email = rlaurent@tvmag.com
[color]
ui = true
diff = auto
status = auto
branch = auto