Skip to content

Instantly share code, notes, and snippets.

@2dpodcast
2dpodcast / gist:e2ace100f2760521fca695f31108bd7d
Created December 23, 2021 12:31 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@2dpodcast
2dpodcast / gist:a92fae61fa091299aaebc6ce54a7b8e0
Created December 23, 2021 12:31 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@2dpodcast
2dpodcast / BulletJournal.md
Created November 5, 2017 00:51 — forked from tmikeschu/BulletJournal.md
A brief intro to the bullet journal technique

The Way of the Bullet Journal

This technique is a tool. While I can't say the bullet journal is the best for everyone, I can say that learning to export data from your brain to other systems is essential for being a creative and productive human being. If you walk away from this unenthused by the bullet journal approach, I encourage you to still take seriously the habits it helps promote.

You are a student. You have code to write. Jobs to find. Bills to pay. Life to figure out. Friends and family to love and occasionally say hello to.

All this is to say: you have too much to do for your brain to handle all by itself.

There are many productivity tools that help alleviate overload of the brain. I do not promise this technique will save you, or even remotely help you, but I do promise to provide you with the information you need to get started and decide if it's right for you.

@2dpodcast
2dpodcast / mongo.todo.py
Created June 21, 2017 22:44 — forked from jmhobbs/mongo.todo.py
A Simple ToDo App Using Python and MongoDB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
from datetime import datetime
from pymongo.connection import Connection
import pymongo
class ToDoApplication:
@2dpodcast
2dpodcast / char-rnn recipes.md
Created May 26, 2017 21:53 — forked from nylki/char-rnn recipes.md
char-rnn cooking recipes

do androids dream of cooking?

The following recipes are sampled from a trained neural net. You can find the repo to train your own neural net here: https://github.com/karpathy/char-rnn Thanks to Andrej Karpathy for the great code! It's really easy to setup.

The recipes I used for training the char-rnn are from a recipe collection called ffts.com And here is the actual zipped data (uncompressed ~35 MB) I used for training.

It seems to be in a format intended to be read by a program called Meal-Master, therefore you will see those lines repeated all over:

@2dpodcast
2dpodcast / gist:544fd9468e67ba72706f1786b4e4d4bf
Created May 4, 2017 11:53 — forked from tpoisot/gist:2725839
Metapop model using networkx
#!/usr/bin/env python
# encoding: utf-8
import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
Patches = 100 # Number of patches
P_ext = 0.01 # Probability of extinction (e)
P_col = 0.014 # Probability of colonization (c)
@2dpodcast
2dpodcast / connection.py
Created February 16, 2017 15:09 — forked from niklbert/connection.py
Connecting JSON outputs of Chatfuel to api.ai
from flask import Flask, request
from flask import make_response
import requests
import os
import json
app = Flask(__name__)
@app.route('/connect')
def cf_connect():
// ==UserScript==
// @name MyFitnessPal Weight Watchers Points
// @version 1.2
// @description Adds display of Weight Watcher points to any daily food diary page. Also adds "Real Calories" calculation based off 4/4/9 algorithm.
// @include http://www.myfitnesspal.com/food/diary/*
// @include https://www.myfitnesspal.com/food/diary/*
// ==/UserScript==
// Originally from: http://userscripts-mirror.org/scripts/show/122949
var usePointsPlus = false; //Change to true to use the Points Plus calculations
var precisonWW = false; //Change to true for true fractional point values (instead of just .25, .50, and .75)
@2dpodcast
2dpodcast / README.md
Created January 16, 2017 18:33 — forked from atufkas/README.md
rss feed generation from mongojs result using node, express and node-rss

Situation

For my tiny blog (engine) based on node, express/connect and mongojs I needed a simple rss feed solution. I discovered and decided to go with the nice working npm module node-rss instead of writing xml myself.

What this code example does

Basically I create an get event on route /feed/rss, generate a node-rss object initialized with base values and add item elements to it while looping over a mongojs collection result array (holding my post items to be reflected). Finally I send a response with an appropriate content type header. My example is directly bound to an express get event callback for a simple static request path, but you may of course move it to route exports or whatever.

Notes

No big deal, but you might find this portion of code useful as a starting point when seeking for rss solutions.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.