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
:toc: macro | |
:toc-title: Sommaire | |
:toclevels: 3 | |
:numbered: | |
ifndef::env-github[:icons: font] | |
ifdef::env-github[] | |
:status: | |
:outfilesuffix: .adoc | |
:caution-caption: :fire: |
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
import datetime | |
import requests | |
import os.path | |
TOKEN = 'xxxx-xxxx' | |
TARGET_DIR = './images/' |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
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
### | |
# free_disk_space | |
# | |
# remove files from downloads folder | |
# clear cache for rubygem, yarn, composer, homebrew, docker | |
### | |
free_disk_space() { | |
if command -v docker &> /dev/null; then | |
echo "--> Clear Docker images cache" && \ |
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
<?php declare(strict_types=1); | |
require_once "✨.🐘"; | |
✨($_)->strlen("foo")->var_dump($_); |
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
-- | |
-- le code ci-dessous a a été fortement amélioré par un effor collaboratif sur | |
-- https://github.com/jeantil/admission_post_bac | |
-- Pull requests, issues et contributions wiki sont les bienvenues. | |
-- Une partie du code a été rétro analysé a partir de diverses sources cf https://github.com/jeantil/admission_post_bac/wiki | |
-- | |
FUNCTION gen class alea V1 relatif grp( | |
o_g_ea_cod_ins IN VARCHAR2, | |
o_g_ti_cod IN NUMBER, |
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
# Setting up Ubuntu | |
sudo apt-get update | |
sudo apt-get -y install xfce4 xfce4-goodies openjdk-7-jdk vnc4server | |
# Setup the login and configs | |
vncserver | |
vncserver -kill: 1 | |
# Uncommenting settings required for normal vnc startup | |
sudo sed -i.bak s/"# exec"/"exec sh"/g ~/.vnc/xstartup |
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
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
NewerOlder