Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Francis Gonzales FraGoTe

🏠
Working from home
View GitHub Profile
@cotiga
cotiga / French translated JSON file
Last active Oct 26, 2021
Fichier de traduction en français des termes statiques de Laravel (à enregistrer sous resources/lang/fr.json). Complet pour Laravel 8 !
View French translated JSON file
{
"30 Days": "30 jours",
"60 Days": "60 jours",
"90 Days": "90 jours",
":amount Total": ":amount Total",
":resource Details": "Détails :resource",
":resource Details: :title": " Détails :resource :title :",
"A fresh verification link has been sent to your email address.": "Un nouveau lien de vérification a été envoyé, consultez vos emails.",
"A new verification link has been sent to the email address you provided during registration.": "Un lien de vérification a été ré-envoyé à l'adresse mail que vous avez renseigné lors de votre inscription.",
"Accept Invitation": "Acceptez l'invitation",
@yocontra
yocontra / aoe2hd.md
Last active Oct 22, 2021
Age of Empires II HD - For Mac OSX
View aoe2hd.md
@spalladino
spalladino / mysql-docker.sh
Created Dec 22, 2015
Backup and restore a mysql database from a running Docker mysql container
View mysql-docker.sh
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@umidjons
umidjons / export-html-table-to-excel.md
Created Mar 2, 2015
Export HTML table to Excel in AngularJS
View export-html-table-to-excel.md

Export HTML table to Excel in AngularJS

myApp.factory('Excel',function($window){
		var uri='data:application/vnd.ms-excel;base64,',
			template='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>',
			base64=function(s){return $window.btoa(unescape(encodeURIComponent(s)));},
			format=function(s,c){return s.replace(/{(\w+)}/g,function(m,p){return c[p];})};
		return {
@gido
gido / macosx-install-php-oracle-oci8.md
Last active Jun 1, 2021
install Oracle PHP Extension (oracle OCI8) - instantclient for Mac OS 10.8 - homebrew environnement
View macosx-install-php-oracle-oci8.md

Installation

This procedure is tested on Mac OS X 10.8 with Developpers tools installed (xCode).

PHP 5.4 installed with Homebrew.

Update: I wrote a blog post about this.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):