Skip to content

Instantly share code, notes, and snippets.

View epok07's full-sized avatar

Franck E. epok07

  • Astrio Sarl
  • Douala
View GitHub Profile
@gsans
gsans / router-transitions-util.md
Last active April 21, 2018 15:04
Refactoring router transitions

yummy

Refactoring multiple router transitions - Angular (v5+)

We can apply this refactor when we identify a group of transitions running the same animation following the same pattern.

Code:

// BEFORE
@epok07
epok07 / Sublime Text 3 Build 3103 License Key - CRACK
Last active February 13, 2018 07:14 — forked from svmotha/Sublime Text 3 Build 3103 License Key - CRACK
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
server {
listen 80;
listen 443 ssl;
server_name maxtelindo.com;
root "/home/arif/maxtelindo/public";
index index.html index.htm index.php;
charset utf-8;
@krysits
krysits / it-ebooks.net.py
Created September 2, 2015 19:44
Python Script that scrapes it-ebooks.net for search query and saves Book ID in text file.
#!/usr/bin/env python3
import urllib.request
import json
queryString = 'javascript'
ur = 'http://it-ebooks-api.info/v1/'
def getFile(urla):
response = urllib.request.urlopen(urla)
data = json.loads(response.readall().decode('utf-8'))
@royrusso
royrusso / git develop to master
Created April 8, 2015 17:33
Git: merge 'develop' in to 'master'
git checkout master
git merge develop
git push -u origin master
@nedSaf
nedSaf / gist:41fb11d4413b2a307266
Last active April 4, 2021 03:29
Adding Leaflet-image to Leaflet-angular-directive
L_PREFER_CANVAS = true;
leafletData.getMap().then(function(map) {
leafletImage(map, function(err, canvas) {
var img = document.createElement('img');
var dimensions = map.getSize();
img.width = dimensions.x;
img.height = dimensions.y;
img.src = canvas.toDataURL();
@dcorns
dcorns / FedoraWebDevSetup
Last active March 13, 2023 14:01
One way to setup Fedora distro for Web Development
Fedora Setup Notes
1) If you did not make yourself an administrator during the install, Add yourself to etc/sudoers using the command visudo (allows user to authenticate own account for operations requiring root).
a) su, enter root password when prompted
b) visudo (use vi for sudo to edit the file following instructions in the file; either add self as a sudo user or enable a group for sudo user and add your self to that group using user group commands)
c) ctrl-D (exit root access)
d) logout and log back in or restart
e) Now you should be able to respond to any prompt requiring root with your own login credentials and be able to run commands using sudo with your own credentials.
2) Google Chrome Setup
@Leko
Leko / fuel-generate-rest.md
Last active April 7, 2019 08:48
FuelPHPのRestコントローラをgenerateするタスクを作りました

Rest task

概要

FuelPHPでRestコントローラ(WebAPI)を作成するタスクを作成しました。

インストール

  1. ↓のrest.phpをfuel/app/tasks/の中に置く
  2. タスクを実行するコマンド(php oil r rest [name])を叩く

オプション

@arifsetyawan
arifsetyawan / nginx.conf
Created November 27, 2012 15:45
Nginx configuration file for PHP-FPM and fuel-php
master_process on;
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
worker_priority 0;
worker_rlimit_nofile 8192;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;