Skip to content

Instantly share code, notes, and snippets.

View zeapo's full-sized avatar
🦥
Thinking

Mohamed Zenadi zeapo

🦥
Thinking
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zeapo
zeapo / IW9F-0.py
Created May 29, 2017 19:17
null created by zeapo - https://repl.it/IW9F/0
def fn(arr):
target = [1, 3, 4]
j = 0
for el in arr:
if el == target[j]:
j += 1
else:
j = 0
;;;; global
;; text-width
(set-fill-column 120)
(define-key evil-normal-state-map ";" 'evil-ex)
(define-key evil-normal-state-map "v" 'evil-visual-block)
(define-key evil-normal-state-map (kbd "C-v") 'evil-visual-state)
(define-key evil-normal-state-map " " 'ace-jump-mode)
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory

Keybase proof

I hereby claim:

  • I am zeapo on github.
  • I am mohamed (https://keybase.io/mohamed) on keybase.
  • I have a public key whose fingerprint is A202 B39A 96E5 ACF3 C60C EC46 9BAB CF6B 8528 9CA1

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am zeapo on github.
  • I am mohamed (https://keybase.io/mohamed) on keybase.
  • I have a public key whose fingerprint is EA12 C0FB 5B3E 9881 5F03 C0E8 29E7 4417 C51F D42A

To claim this, I am signing this object:

@zeapo
zeapo / gist:3164925017426102b17a
Created May 22, 2015 12:36
Open docs and pricing of a GCP product
function gdoc()
{
open "https://cloud.google.com/$1/docs"
}
function gpricing()
{
open "https://cloud.google.com/$1/pricing"
}
@zeapo
zeapo / unique_id.py
Created February 12, 2015 07:51
unique id test
import time
import random
import base64
import threading
from matplotlib import pyplot
from sets import Set
def run_job(nb_rand):
ids = Set()
nb_threads = 20
@zeapo
zeapo / file1.txt
Created December 18, 2014 19:15
Created via API
Demo