Skip to content

Instantly share code, notes, and snippets.

@pierr
pierr / focus-images.md
Last active November 2, 2015 12:50
focus images

legocity macbook

team

@pierr
pierr / .bash_profile
Last active September 23, 2015 08:49 — forked from Bernardstanislas/.bash_profile
Bash profile
export PYTHONPATH=/c/Python27/
export GYP_MSVS_VERSION=2015
# Environment variables
export ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist
GIT="/c/Program Files/Git/bin;/c/Program Files/Git/mingw64/libexec/git-core"
PATH="$GIT;$PATH"
# Variables
GATEWAY="$(ipconfig | grep -a Passerelle | grep -P -o -a '([0-9]+\.){3}[0-9]+')"
PROXY="http://172.20.0.9:3128"
KLEE_GATEWAY="172.20.231.1"
@pierr
pierr / atom.md
Created September 18, 2015 09:53

Keymap file (pour récupérer la parenthèse fermante)

'atom-workspace atom-pane':
 'ctrl-alt-=': 'unset!'

activer le chevron fn + F2

@pierr
pierr / github.md
Last active September 14, 2015 15:20

Les différents socles techniques sont publiés sur la plateforme en ligne Github.

Github ?

Github est une plateforme d'hébergement online de projet de développement de logiciel avec une offre :

  • Payante pour les projets privés
  • Gratuite pour les projets open source

Exemple de projet:

image

git checkout master
git pull
git add .
git commit -m '$0'
git push
git checkout release
git pull
git merge master
npm run build
const TTW = 3 * 1000;
//Appel réccursif
let waitForSyncho = (cb, err)=>{
let checkIsOk = ()=>{
svcIsOk().then((data)=>{
if(data.status === true){
cb(true);
}else{
setTimeout(checkIsOk, TTW)
}
/**
<FileUpload>
{this.fieldFor('maProp')}
</Fileupload>
*/
module.exports = React.createClass({
render: function() {
return (
<form method='post' action={this.props.action} encType="multipart/form-data">
@pierr
pierr / regex.md
Last active August 29, 2015 14:26

Regular expression are used for many things. It whould be complex to write code to check validation.

There is two part:

  • The string to search in
  • The regular expression
  • Regular erxpression starts and end with a //
  • The operator OR is |
  • It can matches letter or number or special character
  • There are used mainly for validation, searching, formatting
@pierr
pierr / eslint.sh
Last active August 29, 2015 14:26
npm install --save-dev eslint@1.0.0-rc-1 babel-eslint eslint-plugin-react