Skip to content

Instantly share code, notes, and snippets.

View se7oluti0n's full-sized avatar

Manh Truong Tuan se7oluti0n

View GitHub Profile
@icantrap
icantrap / git-proxy.sh
Created October 26, 2010 20:25
How to Github and Gitorious over HTTP proxy

You could always use Smart HTTP.

For read-only (git:) urls, install corkscrew.

  1. Download git-proxy.sh. Put it somewhere and make it executable.

  2. Run git config --global core.gitproxy '/usr/local/bin/git-proxy.sh'

To clone, push, pull over ssh, add the contents of ssh_config to your ~/.ssh/config file.

@ryankurte
ryankurte / version.py
Last active March 19, 2019 13:29
Python version header generator
#!/usr/bin/python
#
# Python Version Header Generator Script
#
# Uses Semantic Version (http://semver.org/) based git tags to generate header files
# containing useful version information
# To create an appropriate tag, use `git tag -a "vX.X.X" -m "message here"
# For more information, see:
# https://gist.github.com/ryankurte/0cc1b536a72f29741460
# http://electronpowered.org/2015/01/20/using-git-tags-to-track-software-versions/
@fchollet
fchollet / classifier_from_little_data_script_3.py
Last active July 23, 2024 16:32
Fine-tuning a Keras model. Updated to the Keras 2.0 API.
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
@mdrx-io
mdrx-io / app.py
Created March 30, 2018 23:16
ros-in-qt-example
#!/usr/bin/env python
import sys
from threading import Thread
from PyQt5.QtCore import QThread, pyqtSignal
from PyQt5.QtWidgets import (
QApplication,
QDialog,
QDialogButtonBox,