Skip to content

Instantly share code, notes, and snippets.

View simo97's full-sized avatar
🏠
Working from home

adonis simo simo97

🏠
Working from home
View GitHub Profile
@simo97
simo97 / php
Created August 23, 2016 22:56
<?php
require __DIR__ .'/vendor/autoload.php';
use \JSONDB\Exception as ex;
try{
$test = new \JSONDB\JSONDB();
$test->createServer('adonis2','root','root');
@simo97
simo97 / adonis.js
Created October 18, 2017 06:21
ma facon de faire la requete avec les headers
headers: {
'Authorization': response.data.token_type + ' ' + response.data.token,
'lang': 'fr'
}
@simo97
simo97 / .env
Created December 20, 2017 20:11
BigKing env file
APP_ENV=development
APP_DEBUG=true
APP_KEY=VezTkYJ6BmlqKv6gCABnkZEDTe9urvb6
DB_HOST=localhost
DB_DATABASE=immo_bivindi
DB_USERNAME=root
DB_PASSWORD=root
CACHE_DRIVER=file
@simo97
simo97 / database.php
Created December 20, 2017 20:14
database config
<?php
return [
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
@simo97
simo97 / template.html
Created February 27, 2018 09:19 — forked from imkevinxu/template.html
Django code to read uploaded CSV file
<form action="{% url %}" method="post" enctype="multipart/form-data">{% csrf_token %}
<input type="file" name="csv_file" />
<input type="submit" value="Upload" />
</form>
@simo97
simo97 / Python3 Virtualenv Setup.md
Created March 10, 2018 01:49 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@simo97
simo97 / .js
Created March 13, 2018 00:25 — forked from anonymous/.js
DrawerError
// the navigator
const AppStack = DrawerNavigator({
Home: HomeView,
Favoris: FavorisView,
RendezVous: RdvView,
Agenda:AgendaView ,
Aide: AideView,
Parametres:SettingView,
ProfilePrestataire: ProfilePView,
ListPrestataires: ListrestataireView,
@simo97
simo97 / Beginner-friendly Python Open Source Projects
Created April 4, 2018 14:22 — forked from ossanna16/Beginner-friendly Python Open Source Projects
This is a list of beginner-friendly Python open source projects. I'm always looking for new projects to add to my list, if you have an idea please tweet me at @ossanna16 :)
* OpenHatch - https://openhatch.org/search/?q=&language=Python
* PyLadies - https://github.com/pyladies
* New Coder - https://github.com/econchick/new-coder
* Django Girls - https://github.com/DjangoGirls
* Matplotlib - https://github.com/matplotlib/matplotlib
* Hylang - http://docs.hylang.org/en/latest/, https://github.com/hylang/hy
* Open Slides (Django) - http://openslides.org/
* Zeeguu - https://zeeguu.unibe.ch
* Project Jupyter - https://github.com/jupyter
* nbgrader - https://github.com/jupyter/nbgrader
@simo97
simo97 / css-media-queries.css
Created April 19, 2018 16:07
reminder about css media queries
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {...}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {...}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {...}
/* Large devices (laptops/desktops, 992px and up) */
@simo97
simo97 / install virtualenv ubuntu 16.04.md
Created June 10, 2018 11:35 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv