Skip to content

Instantly share code, notes, and snippets.

View ismailmechbal's full-sized avatar

Ismail Mechbal ismailmechbal

View GitHub Profile
@ismailmechbal
ismailmechbal / .rubocop.yml
Created June 8, 2017 21:27 — forked from jhass/.rubocop.yml
My preferred Rubocop config
AllCops:
RunRailsCops: true
# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 120
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
# Older versions of pg uses procpid whereas newer uses pid.
SELECT pid, pg_terminate_backend(pid) as terminated FROM pg_stat_activity WHERE pid <> pg_backend_pid();
# Rakefile to build and compile a Jekyll site into a new directory used at https://www.stockholmsbadrumsrenovering.com
GH_PAGES_DIR = "compiled_site"
desc "Build Jekyll site and copy files"
task :build do
system "jekyll build"
system "rm -r ../#{GH_PAGES_DIR}/*" unless Dir['../#{GH_PAGES_DIR}/*'].empty?
system "cp -r _site/* ../#{GH_PAGES_DIR}/"
end
{
"expand": "full",
"id": 650669458,
"title": "Running: Trail",
"sport": 0,
"start_time": "2015-12-31T13:32:17.000Z",
"local_start_time": "2015-12-31T14:32:17.000+01:00",
"distance": 6.08037,
"duration": 2209.303,
"speed_avg": 9.90779988077688,
@ismailmechbal
ismailmechbal / sketch-never-ending.md
Last active January 28, 2022 04:23
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@ismailmechbal
ismailmechbal / curl.md
Created September 14, 2016 08:05 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@ismailmechbal
ismailmechbal / routes.md
Created September 14, 2016 06:40 — forked from dideler/routes.md
Rails Routes

A summary of the Rails Guides on Routes, plus other tips.

The Rails router recognizes URLs and dispatches them to a controller's action. It can also generate paths and URLs, avoiding the need to hardcode strings in your views.

Examples

# Redirects /orders/report to orders#report.
get 'orders/report', to: 'orders#report'

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@ismailmechbal
ismailmechbal / derewecki-resume.txt
Created August 8, 2016 09:12 — forked from derwiki/derewecki-resume.txt
Resume for Adam Derewecki
A D A M D E R E W E C K I
1200 Sacramento St. Apt 405, San Francisco, CA 94108 740-502-3073
[email protected] github.com/derwiki
== P R O F E S S I O N A L E X P E R I E N C E ==
CameraLends, Founder/CEO and Engineer (1/2013 - Present)
* Hackers and Founders startup incubator participant
* Tech stack: Rails 4.2/Bootstrap/jQuery/Heroku
* Integrated: Facebook Login, Twitter, Twilio, Sift Science, Slack, Google
Geocoder, Segment, Asana, Intercom, oLark, Zendesk

Keybase proof

I hereby claim:

  • I am ismailmechbal on github.
  • I am unik (https://keybase.io/unik) on keybase.
  • I have a public key whose fingerprint is 6AC0 C5C6 3427 5B42 6BCC 4570 1FB7 54F8 EBFA A377

To claim this, I am signing this object: