This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global window, i18n*/ | |
/** | |
* Enregistre l'évènement de mise à jour de l'application cache. | |
* @return {function} | |
*/ | |
module.exports = { | |
initialize: function() { | |
window.addEventListener("load", (function() { | |
return window.applicationCache.addEventListener("updateready", (function() { | |
if (window.applicationCache.status === window.applicationCache.UPDATEREADY) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkbox_for = (property, options) -> | |
options.css = options.css or "" | |
options.domain = options.domain or "" | |
html = " | |
<div class='checkbox #{options.css}' data-domain='#{options.domain}'> | |
<label> | |
<input type='checkbox' data-name='#{property.name}' #{if property.value then "checked" else ""}> #{options.label} | |
</label> | |
</div> | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*body{ | |
color: @gray; | |
font-family: 'Helvetica', arial; | |
height: 80em; | |
} | |
.wrap{ | |
padding: @space; | |
text-align: center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var turnoverPeriodAutoComplete = function turnoverPeriodAutoComplete(query) { | |
if (query !== undefined) { | |
var countryId = null; | |
if (query.element !== undefined) { | |
countryId = query.element[0].getAttribute('data-cty'); | |
} | |
query.limit = 12; | |
Service.loadTurnoverPeriodListByCountryId(query.id, countryId, query.page, query.limit).then(function (results) { | |
Fmk.Helpers.select2Helper.autocompleteCallback(query, results); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PYTHONPATH=/c/Python27/ | |
export GYP_MSVS_VERSION=2013 | |
#Define the proxy variables. | |
export HTTPS_PROXY=http://proxy:port | |
export HTTP_PROXY=http://proxy:port | |
export no_proxy=localhost,otherdomain.lan.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ListMixin = require('list'); | |
var lineRenderer = function(lineData){ | |
return (<li></li>) | |
} | |
var ListMxin = ListMixin({Line: LineCustom}}) | |
module.exports = React.createClass({ | |
mixin: [ListMxin()], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'define env variables' | |
APP_DIRECTORY=/path/directeory | |
PM2_BIN=node_modules/pm2/bin/pm2 | |
PM2=$APP_DIRECTORY/PM2_BIN |