Skip to content

Instantly share code, notes, and snippets.

View cappert's full-sized avatar

Camille Appert cappert

View GitHub Profile
@cappert
cappert / Dojo.md
Created July 8, 2025 19:04 — forked from Slashgear/Dojo.md
LyonJS #106 Coding Dojo

Exercice 1 : Créer un triangle avec des étoiles 🌟

Objectif

Concevoir une fonction en JavaScript qui génère un triangle d'étoiles dans la console en fonction d'un nombre donné en paramètre.


Consignes

  1. Écris une fonction appelée generateTriangle qui prend un paramètre :
  • n : un entier positif (représente le nombre de lignes du triangle).
@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:
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
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
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="basecamp" version="1.3">
<types>
<!-- indexed/stored verbatim -->
<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true" omitTermFreqAndPositions="true"/>
<!-- "true" or "false" -->
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true" omitTermFreqAndPositions="true"/>
<!-- binary data, base64 -->
@cappert
cappert / Gemfile
Created May 21, 2010 19:22 — forked from d--j/Gemfile
# include at least one source and the rails gem
source :gemcutter
gem 'rails', '~> 2.3.5', :require => nil
group :development do
# bundler requires these gems in development
gem 'rails-footnotes'
end
group :test do
#!/usr/bin/env ruby
## WP2TUMBLR: WordPress 2 Tumblr Importing tool
##
## Usage: wp2tumblr [OPTION] WORDPRESS_XML_FILE
##
## Import the WORDPRESS_XML_FILE to a Tumblr blog.
## Provide `--group` option to publish to a group.
## This could take a long time...
##
## To install, download the script and chmod to 755.
module Feedzirra
module Parser
class FlickrEntry
include SAXMachine
include FeedEntryUtilities
element :guid, :as => :id
element :title
@cappert
cappert / git-dot
Created February 15, 2010 01:34 — forked from madx/git-dot
#!/usr/bin/env ruby
class Grapher
class << self
Props = {
:branch => '[shape=box,style=filled,fillcolor="#ccffcc",color="#003300"]',
:commit => '[style=filled,fillcolor="#ffffcc",color="#663333"]',
:ref => '',
:relation => '[dir=back,color="#545443"]',