Skip to content

Instantly share code, notes, and snippets.

View kidager's full-sized avatar
🎧
¯\_(ツ)_/¯

Jacem Chaieb kidager

🎧
¯\_(ツ)_/¯
View GitHub Profile
@kidager
kidager / xhr.promise.js
Last active August 29, 2015 14:18 — forked from matthewp/gist:3099268
Asynchronous request using promises
function xhr(options) {
var deferred = Q.defer(),
req = new XMLHttpRequest();
req.open(options.method || 'GET', options.url, true);
// Set request headers if provided.
Object.keys(options.headers || {}).forEach(function (key) {
req.setRequestHeader(key, options.headers[key]);
});
@kidager
kidager / codeigniter-apache-hhvm.md
Created February 1, 2016 15:46 — forked from shivaas/codeigniter-apache-hhvm.md
CodeIgniter with Apache & HHVM as FastCGI

Apache Configuration:

<VirtualHost *:80>
  ServerName blah.com

  DirectoryIndex index.html index.php
  ProxyRequests On
  ProxyPreserveHost On
  ProxyVia full
public class LoginObject {
String token;
User user;
// Getters w Setters (public elkol)
}
@kidager
kidager / .zshrc
Last active January 16, 2023 17:03
ZSH Powerline installation
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
\documentclass[12pt, oneside, a4paper]{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Include required packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage[skins]{tcolorbox}
\usepackage[francais,english]{babel}
\usepackage{ctable}
\usepackage{multirow}
@kidager
kidager / Package Control.sublime-settings
Created October 3, 2016 10:35
Sublime Text 3 Package Control
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"AdvancedNewFile",
"Alignment",
"Auto Close HTML Tags",
@kidager
kidager / filter-products.json
Last active March 17, 2017 11:50
Newlook responses
{
"totalRecords": 1092,
"items": [
{
"entity_id": "1",
"entity_type_id": "4",
"attribute_set_id": "4",
"type_id": "simple",
"sku": "4410601170",
"has_options": "0",
##crypto
##defocus
##javascript
##linux
##math
##networking
##php
##security
#android
#android-dev
@kidager
kidager / pgp.pub
Last active June 12, 2023 09:51
Public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGEnX7oBEACYjUsjraxzpq8876ZEZz2zMJEEIp1oVXi9/cTPJ4fvMLrW8bTz
za/rHcnfG7WwMgG1COACUTS1uZqwI8N+KsLNjVWU4dXUctzlGrqsfNC6Boj0g8Cd
NTzMlfvZuzRE2lWEbbfDt6ie+IbgNNNNyk7sSEJ40qYI3hYAale0NmGIkeFMXkY/
8U/XMCm1CMGgo4QN7BtmBU9n50Qc7s5yOzd1htxjif2e1P5T8c/YVzBEZM/XwoeS
PhZlf82tG7T8dY/tujfjfHaerJXCB1j93z8PjciEZ/obT7sNPbF7UEr0PMzpjhRu
aA/97ELOjTQ0Gc7+Gyd76F1XpLI0gcQbY0ddvVWINx9EgDPUJ9zCAaTdwOve/nuf
IAxTzrzNwUCgZaOB6UieNgtozj/zB5aSroq8maTs3QCuz+9xFoUqYYHgnmb1/a6u
EmlrIYhWgKqoq8eQv/MP+FPEnpB6NIol19TURGETJ2qdD/PQH8C+ML+KgurKt4BZ