This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Colour: | |
red = 'r' | |
green = 'g' | |
purple = 'p' | |
class Style: | |
solid = 'sl' | |
striped = 'st' | |
open = 'o' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Implementation of RFC 4226: HMAC-Based One-Time Password Algorithm (HTOP), | |
and RFC 6238: Time-Based One-Time Password Algorithm (TOTP). | |
""" | |
__author__ = 'acoster' | |
__copyright__ = 'Copyright 2012, Alexandre Coster' | |
import hmac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <algorithm> | |
#include <iostream> | |
#define __A "!zbei" | |
#define __B "zqqbI" | |
#define __C "\"mmjX" | |
#define __D "usjc!" | |
class App |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <iostream> | |
#include <utility> | |
#include <vector> | |
#include <stack> | |
#include <cstring> | |
typedef std::pair<int, int> Position; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
template<int _N> | |
struct Base | |
{ | |
Base() | |
{ | |
std::cout << _N << std::endl; | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <map> | |
#include <string> | |
#include <fstream> | |
#include <iostream> | |
int main(int argc, const char * argv[]) | |
{ | |
std::multimap<std::string, std::string> contents; | |
std::ifstream inFile("filtered_dict"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import operator | |
def calculate_checksum(number): | |
digits = [int(x) for x in number] | |
return 11 - (sum(itertools.imap(operator.mul, digits, [8, 6, 4, 2, 3, 5, 9, 7])) % 11) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytwitter | |
import time | |
import os | |
import sys | |
import schedule | |
from schedule import every, repeat, run_pending | |
twitter_conn = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |
OlderNewer