Skip to content

Instantly share code, notes, and snippets.

Avatar
coding...

Amr Tamimi amrnt

coding...
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am amrnt on github.
  • I am amrnt (https://keybase.io/amrnt) on keybase.
  • I have a public key ASDPTkMh2cg8Z8IE_ejqYweyjzODhsRJZIkupTvH_WDkago

To claim this, I am signing this object:

@amrnt
amrnt / flutter-gource.sh
Created Jun 24, 2018 — forked from branflake2267/flutter-gource.sh
Flutter gource visualization commands. Visualizing the commit history with gource.
View flutter-gource.sh
#!/bin/sh
# gource
# https://gource.io/
# flutter
# https://github.com/flutter
# 1. clone or git pull all repos
View gist:8b740b77921b80fcea34
^ Wed 16/12
v Thu 17/12
v Fri 18/12
- Sat 19/12
- Sun 20/12
Mon 21/12
Tus 22/12
Wed 23/12
* Thu 24/12
* Fri 25/12
View main.go
package main
import (
"net/http"
"strconv"
"github.com/labstack/echo"
mw "github.com/labstack/echo/middleware"
"github.com/rs/cors"
"github.com/thoas/stats"
View main.go
package main
import (
"github.com/robertkrimen/otto"
)
func main() {
vm := otto.New()
vm.Run(`
function fib(n) {
View gist:5fff959cc3504acee310
* Facebook review Shit
* Mobile Flow
------
- login/signup thru facebook
- Map/List of locations around you
- Location -> Info + Offers
- If he has the QR code of the branch, and in the range of 10m of that location, checkin.
- After; If you share on facebook, points++.
- Callback the api after share succeeded.
- Claim reward: Share; points++
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
View client.go
package main
import (
"io"
"log"
"mime/multipart"
"net/http"
"os"
"path/filepath"
"runtime"
View keybase.md

Keybase proof

I hereby claim:

  • I am amrnt on github.
  • I am amrnt (https://keybase.io/amrnt) on keybase.
  • I have a public key ASCtVau4Z9I3c7J1-c677tsXv-WiF32Kdlc1fMYyGZ6d_Qo

To claim this, I am signing this object:

@amrnt
amrnt / enum.rb
Last active Dec 31, 2015
Make enum accepts `nil`. Add method `reset_#{enum}!`
View enum.rb
module ActiveRecord
# Declare an enum attribute where the values map to integers in the database, but can be queried by name. Example:
#
# class Conversation < ActiveRecord::Base
# enum status: [ :active, :archived ]
# end
#
# # conversation.update! status: 0
# conversation.active!
# conversation.active? # => true
You can’t perform that action at this time.