Skip to content

Instantly share code, notes, and snippets.

{
"name": "pluginChronometre",
"version": "0.0.0",
"description": "allow to set a canvas for showing timer",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
@korvus
korvus / gist:cc56927c6608f71a61d2
Last active April 8, 2016 14:04
Example how receiving post request from krayon Addon
<?php
file_put_contents($_POST['namePicture'], base64_decode($_POST['picture64encoded']));
echo $_POST['namePicture'];
@korvus
korvus / gist:50108053d7d065ce787b
Created February 6, 2015 11:13
.bat windows for automatically launch stylus task in windows
call "C:\Program Files\my\pathto\nodejs\nodevars.bat"
:: The way for launch the parameters for node
D:
:: In my case, needed to switch of disk
cd D:\yourpath\to\your\project\css\stylus
:: launch and watch with stylus command
stylus macss -w -o ../
@korvus
korvus / gist:555a43019fcbb323befc
Created March 10, 2015 15:08
.bat for execute automatically sdk mozilla and go in work folder
cd C:\tools\addon-sdk-1.17\bin
activate && cd ..\..\..\myWorkFolder\addon && cmd
@korvus
korvus / KSS example
Last active August 29, 2015 14:17
launch a KSS documentation script from one bat on windows, without closing the bash command line window.
::path to the node console command
start /b "C:\Program Files\nodejs\nodevars.bat"
::If you are on a difference hard drive (here D:)
D:
:: your path
cd D:\my\projetc\path\
::kss-node command
@korvus
korvus / gist:8f6765ff0b053fa82d41
Created April 14, 2015 17:19
Create an easy bat for maintain css
::launch node
start /b "C:\Program Files (x86)\nodejs\nodevars.bat"
:: go to the right directory
cd C:\Users\simon\Desktop\sites\simonertel\r\css
:: launch, watch and compress with stylus command
stylus --compress -w g.styl -o ./
@korvus
korvus / prevent exit command
Created June 1, 2015 09:48
prevent exit command from cmd on windows 7
#example
call "C:\Program Files\nodejs\nodevars.bat"
cd C:\I\want\to\go\in\this\folder
cmd.exe /k cmd /c
@SET JAVA_HOME=C:\progra~1\java\jdk1.7.0_03
OU ?
set path=C:\Program Files\Java\jdk1.6.0_23\bin
@korvus
korvus / parserClass.js
Last active November 20, 2015 15:56
This script get all class and Id from a HTML view, and warn how many nodes match the "ruleCSS" regex patern. Here, will return all class & Id containing at least one or more capitalized letter. After actionnated, it throw up a confirm dialog, for display on your page the elements the regex targeted.
/*jshint esnext: true */
/*
* License MIT
*/
(function () {
"use strict";
var all = document.querySelectorAll("*");
@korvus
korvus / lazy-validator.js
Last active March 24, 2016 16:55
javascript snippet - for bookmark
/**
* Validate with w3c API a mouseover part of any webpage.
* @author Simon ertel
* @license MIT
*/
(function () {
"use strict";