- Ubuntu 16.04
- CUDA 9.2
- cuDNN 7.1.4
- TF dependancies
- Anaconda 3 in /usr/local/anaconda3
- Clone TF 1.8
- Compil TF (Python 3.6 par défaut)
- Build package TF
- sudo visudo. Add /usr/local/anaconda3/bin at end of secure_path
- sudo pip install tensorflow*.whl
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
$app->get('/hashpwd', function() use ($app) { | |
$rawPassword = 'secret'; | |
$salt = '%qUgq3NAYfC1MKwrW?yevbE'; | |
$encoder = $app['security.encoder.bcrypt']; | |
return $encoder->encodePassword($rawPassword, $salt); | |
}); |
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
class Character { | |
constructor(name, health, strength) { | |
this.name = name; | |
this.health = health; | |
this.strength = strength; | |
} | |
describe() { | |
return this.name + " has " + this.health + | |
" health points and " + this.strength + " strength"; |
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 Character = {}; | |
Character.initCharacter = function (name, health, strength) { | |
this.name = name; | |
this.health = health; | |
this.strength = strength; | |
}; | |
Character.attack = function (target) { | |
if (this.health > 0) { | |
var damage = this.strength; | |
console.log(this.name + " attacks " + target.name + " and deals " + damage + " damage"); |
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
$ heroku create <appname> --region eu | |
$ heroku addons:create cleardb:ignite | |
$ heroku config | grep CLEARDB_DATABASE_URL | |
<Create DB with MySQL Workbench> | |
$ git push heroku master |
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
<create new repo on GitHub> | |
$ git clone <new repo URL> | |
$ git remote add boilerplate https://github.com/bpesquet/class-boilerplate.git | |
$ git fetch boilerplate | |
$ git merge boilerplate/master |
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
$ git remote add openshift <openshift_git_repo_url> | |
$ git fetch openshift | |
$ git merge openshift/master -s recursive -X ours | |
$ touch .openshift/markers/use_composer |
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
// Classe RapportVisiteType | |
<?php | |
namespace GSB\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
class RapportVisiteType extends AbstractType | |
{ |
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
* text=auto | |
# Unity files | |
*.meta -text -merge=unityamlmerge | |
*.unity -text -merge=unityamlmerge | |
*.asset -text -merge=unityamlmerge | |
*.prefab -text -merge=unityamlmerge | |
# Image formats | |
*.psd filter=lfs diff=lfs merge=lfs -text |
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
{ | |
"extends": ["airbnb", "prettier", "prettier/react"], | |
"parser": "babel-eslint", | |
"env": { | |
"react-native/react-native": true | |
}, | |
"plugins": ["react", "react-native"], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true |
OlderNewer