2017-06-15
Mes notes sur la session de @Lilobase à @AgileFrance 2017.
Voir aussi : les slides de la session.
Qu'est-ce qui fait qu'un système logiciel est pourri ? Note : au niveau
| substitutions: | |
| # Phases of the Voice Assistant | |
| # The voice assistant is ready to be triggered by a wake word | |
| voice_assist_idle_phase_id: '1' | |
| # The voice assistant is waiting for a voice command (after being triggered by the wake word) | |
| voice_assist_waiting_for_command_phase_id: '2' | |
| # The voice assistant is listening for a voice command | |
| voice_assist_listening_for_command_phase_id: '3' | |
| # The voice assistant is currently processing the command | |
| voice_assist_thinking_phase_id: '4' |
| :toc: macro | |
| :toc-title: Sommaire | |
| :toclevels: 3 | |
| :numbered: | |
| ifndef::env-github[:icons: font] | |
| ifdef::env-github[] | |
| :status: | |
| :outfilesuffix: .adoc | |
| :caution-caption: :fire: |
2017-06-15
Mes notes sur la session de @Lilobase à @AgileFrance 2017.
Voir aussi : les slides de la session.
Qu'est-ce qui fait qu'un système logiciel est pourri ? Note : au niveau
| # Adjust device pixel ratio | |
| setMaximumPixelRatio = (p_maximumRatio=1) -> | |
| canvas = document.createElement('canvas') | |
| context = canvas.getContext('2d') | |
| devicePixelRatio = window.devicePixelRatio || 1 | |
| backingStoreRatio = context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1 | |
| pixelRatio = devicePixelRatio / backingStoreRatio | |
| for className in ["HitCanvas", "SceneCanvas", "Canvas"] | |
| Kinetic[className].prototype.init = ((p_method) -> (p_config={}) -> |
| <!doctype html> | |
| <html ng-app="Demo" ng-controller="AppController"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title> | |
| Lazy Loading Images With AngularJS | |
| </title> | |
| <style type="text/css"> |
| // Takes a credit card string value and returns true on valid number | |
| function valid_credit_card(value) { | |
| // Accept only digits, dashes or spaces | |
| if (/[^0-9-\s]+/.test(value)) return false; | |
| // The Luhn Algorithm. It's so pretty. | |
| let nCheck = 0, bEven = false; | |
| value = value.replace(/\D/g, ""); | |
| for (var n = value.length - 1; n >= 0; n--) { |
| /** | |
| * Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers | |
| * @author ShirtlessKirk. Copyright (c) 2012. | |
| * @license WTFPL (http://www.wtfpl.net/txt/copying) | |
| */ | |
| var luhnChk = (function (arr) { | |
| return function (ccNum) { | |
| var | |
| len = ccNum.length, | |
| bit = 1, |
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |