Skip to content

Instantly share code, notes, and snippets.

View ugnelis's full-sized avatar
🥑
Avocado, avocado, avocado!

Ugnius Malūkas ugnelis

🥑
Avocado, avocado, avocado!
View GitHub Profile
import re, strutils, strformat, tables, sequtils, math
type
Header* = object
doc: string
level: int
MarkdownTokenType* {.pure.} = enum
Header
@damienpontifex
damienpontifex / tf-experiment-template.py
Last active March 9, 2021 09:43
A template for a custom tensorflow estimator and experiment with python3 typings for desired parameter types
import argparse
import psutil
import tensorflow as tf
from typing import Dict, Any, Callable, Tuple
## Data Input Function
def data_input_fn(data_param,
batch_size:int=None,
shuffle=False) -> Callable[[], Tuple]:
"""Return the input function to get the test data.
@mrry
mrry / tensorflow_self_check.py
Last active September 26, 2024 15:39
[DEPRECATED] TensorFlow on Windows self-check
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# 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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@vool
vool / ryanapi.md
Last active December 4, 2025 10:25
Ryanair api endpoints

Note

This gist was created in 2015 with endpoints and parameters info for Ryanair’s API's, I just wrote a bit about it here

It's 2025, if you have landed here while looking to access Ryanair’s API I suggest you check out ryanair-py by Ciarán Ó hAoláin.


API domains

https://desktopapps.ryanair.com

@tsmsogn
tsmsogn / primes.rb
Last active May 6, 2019 01:45
[ruby]Sieve of Eratosthenes with Ruby
def primes(max)
nums = Array.new(max + 1, 1)
nums[0] = nums[1] = 0
(2..Math.sqrt(max)).each do |sieve|
if nums[sieve] == 1
(2 * sieve).step(max, sieve).each do |num|
nums[num] = 0
end
end
@pascalpoitras
pascalpoitras / 1.md
Last active December 2, 2025 21:54
My WeeChat configuration

This configuration is no longer updated

@sloria
sloria / bobp-python.md
Last active December 8, 2025 02:37
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens