Skip to content

Instantly share code, notes, and snippets.

View iedmrc's full-sized avatar
💭
Working Smart

ibrahim ethem demirci iedmrc

💭
Working Smart
View GitHub Profile
@IvanAlekseevichPopov
IvanAlekseevichPopov / 1.bash
Created September 4, 2017 10:41
get docker container ID from inside container
cat /proc/self/cgroup | grep -o -e "docker-.*.scope" | head -n 1 | sed "s/docker-\(.*\).scope/\\1/"
@miohtama
miohtama / gist:5158737
Created March 14, 2013 04:11
Colorful Python logger
# -*- coding: utf-8 -*-
"""
Python logging tuned to extreme.
"""
__author__ = "Mikko Ohtamaa <mikko@opensourcehacker.com>"
__license__ = "MIT"
@edloginova
edloginova / attention_implementations.csv
Last active November 8, 2020 20:04
Neural Attention Implementations
name framework models url
seq2seq Keras RNNSearch https://github.com/farizrahman4u/seq2seq
Keras Attention Mechanism Keras RNNSearch + application directly on inputs https://github.com/philipperemy/keras-attention-mechanism
Attention-over-Attention tensorflow Attention-over-Attention https://github.com/OlavHN/attention-over-attention
textClassifier Keras Hierarchical Attention Networks https://github.com/richliao/textClassifier
snli-entailment Keras Rocktaschel's LSTM with attention https://github.com/shyamupa/snli-entailment
Sockeye Apache MXNet RNNSearch,Transformer Models with self-attention https://github.com/awslabs/sockeye
Attention Is All You Need PyTorch Transformer https://github.com/jadore801120/attention-is-all-you-need-pytorch
transformer tensorflow Transformer https://github.com/DongjunLee/transformer-tensorflow
OpenNMT PyTorch RNNSearch, Luong’s global, Transformer http://opennmt.net/OpenNMT-py/onmt.modules.html#attention
@lambdamusic
lambdamusic / define.py
Last active February 15, 2023 14:52
Access osx dictionary in python
#!/usr/bin/env python
"""
# Version
2021-08-31
# Tested on
Python 3.9
@reorx
reorx / objectid.py
Created May 31, 2016 09:55
bson.objectid in pymongo, no dependency, works independently
#!/usr/bin/env python
# coding: utf-8
# Copyright 2009-2015 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@huanlin
huanlin / Example.cs
Last active January 3, 2024 15:42
Helper classes for change printer settings with P/Invoke.
void GetDefaultPaperSize()
{
var devMode = PInvoke.PrinterHelper.GetPrinterDevMode(null);
string s = String.Format("{0} : {1} x {2}", devMode.dmPaperSize, devMode.dmPaperWidth, devMode.dmPaperLength);
Console.WriteLine(s);
}
void SetDefaultPaperSize()
{
string formName = "User defined";
@bisubus
bisubus / ES5-ES6-ES2017-ES2019 omit & pick
Last active April 13, 2024 21:03
ES5/ES6/ES2017/ES2019 omit & pick
@jakebrinkmann
jakebrinkmann / connect_psycopg2_to_pandas.py
Created July 3, 2017 14:19
Read SQL query from psycopg2 into pandas dataframe
import pandas as pd
import pandas.io.sql as sqlio
import psycopg2
conn = psycopg2.connect("host='{}' port={} dbname='{}' user={} password={}".format(host, port, dbname, username, pwd))
sql = "select count(*) from table;"
dat = sqlio.read_sql_query(sql, conn)
conn = None
This file has been truncated, but you can view the full file.
__label__2 Stuning even for the non-gamer: This sound track was beautiful! It paints the senery in your mind so well I would recomend it even to people who hate vid. game music! I have played the game Chrono Cross but out of all of the games I have ever played it has the best music! It backs away from crude keyboarding and takes a fresher step with grate guitars and soulful orchestras. It would impress anyone who cares to listen! ^_^
__label__2 The best soundtrack ever to anything.: I'm reading a lot of reviews saying that this is the best 'game soundtrack' and I figured that I'd write a review to disagree a bit. This in my opinino is Yasunori Mitsuda's ultimate masterpiece. The music is timeless and I'm been listening to it for years now and its beauty simply refuses to fade.The price tag on this is pretty staggering I must say, but if you are going to buy any cd for this much money, this is the only one that I feel would be worth every penny.
__label__2 Amazing!: This soundtrack is my favorite music of all
@asimshankar
asimshankar / README.md
Last active December 25, 2024 22:44
Training TensorFlow models in C++

Training TensorFlow models in C++

Python is the primary language in which TensorFlow models are typically developed and trained. TensorFlow does have bindings for other programming languages. These bindings have the low-level primitives that are required to build a more complete API, however, lack much of the higher-level API richness of the Python bindings, particularly for defining the model structure.

This file demonstrates taking a model (a TensorFlow graph) created by a Python program and running the training loop in C++.