Skip to content

Instantly share code, notes, and snippets.

🐎
🏈

Pradeep Gowda btbytes

🐎
🏈
Block or report user

Report or block btbytes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@btbytes
btbytes / reference-markdown-metadata-from-jinja-template.py How to use Markdown as a filter in a Jinja2 template, and then extract the Markdown Meta property directly from the template. Assuming you want to use the Meta-data value before rendering the converted Markdown content (e.g. in the html head), the trick is to render the markdown first, save it to a variable (html_content in this example) using a…
View reference-markdown-metadata-from-jinja-template.py
from pprint import pprint
import jinja2
import markdown
HTML_TEMPLATE = """{% macro get_html() %}
{{ content | markdown }}
{% endmacro %}
{% set html_content = get_html() %}
Title from Markdown meta-data: {{ get_title() }}
View clojure.md
  • use lein try plugin to quickly install libraries.
  • use slamhound plugin to fix imports.
  • use ~/.lein/profiles to setup plugins etc. you can even define different profiles.
View cl-pitfalls
From comp.lang.lisp Thu Oct 26 16:06:28 1995
Newsgroups: comp.lang.lisp
Path: edcogsci!jeff
From: jeff@cogsci.ed.ac.uk (Jeff Dalton)
Subject: Revised Pitfall list
Message-ID: <DH17Jy.GrH@cogsci.ed.ac.uk>
Organization: Centre for Cognitive Science, Edinburgh, UK
Date: Thu, 26 Oct 1995 01:16:43 GMT
Lines: 466
@btbytes
btbytes / openssl-1.1.txt
Created Dec 27, 2018
openssl 1.1 on homebrew
View openssl-1.1.txt
brew install openssl@1.1
==> Downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.1a.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl@1.1-1.1.1a.sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
@btbytes
btbytes / README.md
Last active Dec 20, 2018
Virtualbox alternatives for the Vagrant users
View README.md

Virtualbox alternatives for the Vagrant users

Virtualbox is not your only option if you want to use Vagrant. Vagrant has decent plugins for qemu (vagrant-libvirt) and lxd (vagrant-lxd).

Make sure you get your KVM, Qemu and libvirt setup right and run:

$ brew install libvirt
$ brew services start libvirt # to restart service at login
View dotnet-in-prod.md

Using .NET Core on production here.

but delivering solutions on time and with minimum maintenance requirements afterward is just easier in python or JAVA

I would agree if you would replace Python/Java with Node, but with these languages I don't see it.

on time and with minimum maintenance requirements afterward

View rich-already-answered-that.md

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link below in the summary jumps at the answer on this page.
  • The link on the question itself points back at the original post.

Summary

@btbytes
btbytes / wclwn.md
Created Oct 2, 2018 — forked from zacharycarter/wclwn.md
Binding to C Libraries with Nim
View wclwn.md
View vapor-install.md
==> Installing vapor/tap/vapor
==> Downloading https://github.com/vapor/toolbox/releases/download/3.1.7/macOS-sierra.tar.gz
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/58954829/e88e5154-47a2-11e8-9135-62c6b25fe10b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F2018
######################################################################## 100.0%
🍺  /usr/local/Cellar/vapor/3.1.7: 4 files, 15.6MB, built in 4 seconds
==> Caveats
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
@btbytes
btbytes / kmeans.apl
Created Jul 16, 2018
APL for ML: K-means clustering (from http://dpaste.com/3Z4K4B0)
View kmeans.apl
This is a comment in APL. Comments are denoted by the "⍝" symbol
which is called "lamp" or "thumb". A comment begins with the lamp
symbol and continues to the end of the line.
Here is a coordinate in 2-D space. It is a vector of two elements.
p0.712 0.848
The symbol "←" denotes assignment and is called "copula". We have
given the name "p" to our first coordinate. Here is another 2-D
coordinate we will name "q".
q0.962 0.362
You can’t perform that action at this time.