Skip to content

Instantly share code, notes, and snippets.

# Taken from https://github.com/leandrotoledo/python-telegram-bot/blob/master/telegram/emoji.py
"""This module contains a object that represents an Emoji"""
class Emoji(object):
"""This object represents an Emoji."""
GRINNING_FACE_WITH_SMILING_EYES = b'\xF0\x9F\x98\x81'
FACE_WITH_TEARS_OF_JOY = b'\xF0\x9F\x98\x82'
@zivee
zivee / jarowinkler_distance.c
Created May 20, 2018 16:48 — forked from neesenk/jarowinkler_distance.c
比较两个字符串的相似程度Jaro–Winkler距离
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
/**
* Jaro–Winkler distance
* http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance
*
* 比较两个字符串的相似程度
@zivee
zivee / match.c
Created January 25, 2017 08:26 — forked from ianmackinnon/match.c
C Regex multiple matches and groups example
# gcc -Wall -o match match.c && ./match
#
#include <stdio.h>
#include <string.h>
#include <regex.h>
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.