Skip to content

Instantly share code, notes, and snippets.

View cappert's full-sized avatar

Camille Appert cappert

View GitHub Profile
diff --git a/home/cappert/.vscode/extensions/redhat.java-1.4.0/formatters/eclipse-formatter.xml b/eclipse-java-google-style.xml
index 7f8c57d..98ca551 100644
--- a/home/cappert/.vscode/extensions/redhat.java-1.4.0/formatters/eclipse-formatter.xml
+++ b/eclipse-java-google-style.xml
@@ -1,54 +1,85 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="13">
-<profile kind="CodeFormatterProfile" name="Eclipse" version="13">
+<profile kind="CodeFormatterProfile" name="GoogleStyle" version="13">
<setting id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode" value="enabled"/>
@cappert
cappert / middleman-webpack-demo deploy.yml
Created August 12, 2021 21:46 — forked from pmallol/middleman-webpack-demo deploy.yml
Add workflow file to deploy Middleman with GitHub Actions to GitHub Pages
# ./github/workflows/deploy.yml
name: Deploy Middleman to GH Pages
on:
push:
branches: [master]
jobs:
build:
Texte intégral
Copies exécutoires
RÉPUBLIQUE FRANÇAISE
délivrées aux parties le : AU NOM DU PEUPLE FRANÇAIS
COUR D’APPEL DE PARIS
Pôle 1 – Chambre 2
(comment: % brew outdated
ffmpeg x264 x265 libheif)
camille@Air:~/Code/Github/project (master) % brew upgrade x264
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
goreman pagmo pgformatter wp-cli-completion
document.getElementById(autoriser le collage
SyntaxError: missing ) after argument list
var select = document.getElementById("product-select-option-0")
undefined
var select = document.getElementById("#product-select-option-0")
undefined
document.getElementById("#product-select-option-0")
null
document.activeElement
<body class="templateProduct">
safia@safia-ThinkPad-T410:~$ cd Bureau/
safia@safia-ThinkPad-T410:~/Bureau$ ls
airbnb defi3 & 4 Formulaire moy.html Nouveau document tirage3
ardoise defi5.html JS multiple.html tirage1
calcul.html exo.html Moyenne.html musique tirage2
safia@safia-ThinkPad-T410:~/Bureau$ git clone git@github.com:Simplon-Safia-G/Tirage.git
Clonage dans 'Tirage'...
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
;; https://github.com/docker/toolbox/blob/e24e33ea2f3f2c655fc4d07a671bd5f31ddfd95f/osx/uninstall.sh
#!/bin/bash
# Uninstall Script
if [ "${USER}" != "root" ]; then
echo "$0 must be run as root!"
exit 2
fi

#Unless

Sometimes you want to use control flow to check if something is false, rather than if it's true. You could reverse your if/else, but Ruby will do you one better: it will let you use an unless statement.

Let's say you don't want to eat unless you're hungry. That is, while you're not hungry, you write programs, but if you are hungry, you eat. You might write that program in Ruby like this:

unless hungry
  # Write some sweet programs
else
Test:
>ab -n400 -c16 http://127.0.0.1:3000/posts
=> Booting Puma
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Puma 2.6.0 starting...
* Min threads: 0, max threads: 16
* Environment: production
@cappert
cappert / transcript.txt
Last active December 12, 2015 04:58
Transcript and translation of the interview of Gregg Pollack by the @parlonsruby guys at TakeOff Conf : http://parlonsruby.com/pr007-takeoff-conference/
starts à 14:20
GREGG POLLACK
It's better, I had an expresso yesterday and it wasn't as good. That's decent. It's only slighly crappy.
PHILIPPE
Alright, so we are with Gregg Pollack, at TakeOff Conf[1], I guess that's the only interview we're gonna do in English, actually.
GREGG POLLACK
oh, no.