Skip to content

Instantly share code, notes, and snippets.

View coisnepe's full-sized avatar
🤷‍♂️
Who reads Github statuses anyway ?

coisnepe

🤷‍♂️
Who reads Github statuses anyway ?
View GitHub Profile
Metabase v0.44.5
This file has been truncated, but you can view the full file.
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"codePostal":"01000","nbNumeros":11581},"geometry":{"type":"Polygon","coordinates":[[[5.174001,46.199663],[5.155733,46.224252],[5.1642,46.228147],[5.168588,46.228188],[5.227866,46.22774],[5.246482,46.227133],[5.2759,46.220754],[5.277809,46.196595],[5.277736,46.19652],[5.254028,46.178472],[5.195573,46.188139],[5.174001,46.199663]]]}},{"type":"Feature","properties":{"codePostal":"01090","nbNumeros":3693},"geometry":{"type":"Polygon","coordinates":[[[4.753198,46.0849],[4.753146,46.085105],[4.753147,46.085158],[4.754863,46.091163],[4.776849,46.120374],[4.777012,46.120554],[4.777685,46.12124],[4.788727,46.12688],[4.792553,46.127963],[4.802856,46.122058],[4.826012,46.099029],[4.840729,46.071809],[4.832054,46.068258],[4.776088,46.058221],[4.771243,46.062683],[4.756944,46.079601],[4.753591,46.083828],[4.7533,46.084557],[4.753198,46.0849]]]}},{"type":"Feature","properties":{"codePostal":"01100","nbNumeros":9288},"geometry":{"type":"Polygon","coord
@coisnepe
coisnepe / .babelrc.js
Last active September 8, 2020 14:45
Basic JS testing with Jest
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
module.exports = {
presets: ["@babel/preset-env"]
};
git log --pretty=format:"%h;%an;%ar;%s" app/controllers/admin/secretaryship_* > commits.csv
require "sequel"
require "colorize"
Sequel.split_symbols = true
puts "==> #{'Connecting to databases'.green}"
DB = Sequel.sqlite("/Users/USERNAME_HERE/Library/Messages/chat.db", readonly: true)
puts " ✅ #{'sqlite'.cyan}"
@coisnepe
coisnepe / mysql_to_postgres.py
Last active February 3, 2017 11:12
Dump a MySQL DB in a PG-compatible SQL dump
#!/usr/bin/env python
"""
Fixes a MySQL dump made with the right format so it can be directly
imported to a new PostgreSQL database.
Dump using:
mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root databasename
"""
@coisnepe
coisnepe / css_resources.md
Last active November 28, 2017 09:22 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.
  • Flat UI Flat design
@coisnepe
coisnepe / python_resources.md
Last active September 8, 2015 20:21 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@coisnepe
coisnepe / rails_resources.md
Last active November 29, 2017 06:52 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • factory_girl - factory_girl is a fixtures replacement with a straightforward definition syntax, support for multiple build strategies (saved instances, unsaved instances, attribute hashes, and stubbed objects), and support for multiple factories for the same class (user, admin_user, and so on