Skip to content

Instantly share code, notes, and snippets.

View elgartoinf's full-sized avatar
🏠
Working from home

Gabriel Mejia elgartoinf

🏠
Working from home
View GitHub Profile
@mda590
mda590 / gist:9404128f5157f38098189616a56070f6
Created March 20, 2017 22:33
Install Docker on RHEL AWS
sudo yum-config-manager --enable "Red Hat Enterprise Linux Server 7 Extra(RPMs)"
sudo yum install docker -y
@mats-claassen
mats-claassen / MyPickerRow
Created September 12, 2016 14:04
A custom picker row for Eureka to select a time (hours, minutes and seconds)
public struct Time: Equatable {
var hours: Int
var minutes: Int
var seconds: Int
}
public func ==(lhs: Time, rhs: Time) -> Bool {
return lhs.hours == rhs.hours && lhs.minutes == rhs.minutes && lhs.seconds == rhs.seconds
}
@mats-claassen
mats-claassen / UserInfoCell.swift
Last active September 29, 2021 13:39
Example of an Eureka custom row
//
// UserInfoCell.swift
//
// Created by Mathias Claassen on 30/8/16.
// Copyright © 2016 Xmartlabs. All rights reserved.
//
import Foundation
import Eureka
@chenjianjx
chenjianjx / start-celery-for-dev.py
Created March 10, 2016 10:45
A python script which starts celery worker and auto reload it when any code change happens.
'''
A python script which starts celery worker and auto reload it when any code change happens.
I did this because Celery worker's "--autoreload" option seems not working for a lot of people.
'''
import time
from watchdog.observers import Observer ##pip install watchdog
from watchdog.events import PatternMatchingEventHandler
import psutil ##pip install psutil
import os