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 python3 | |
| # A tiny webserver in python | |
| # ready to run! | |
| import os | |
| import configparser | |
| import socket |
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 sys | |
| from fontTools.ttLib import TTFont | |
| from fontTools.ttLib.tables._c_m_a_p import CmapSubtable | |
| font = TTFont('whitney.ttf') | |
| cmap = font['cmap'] | |
| t = cmap.getcmap(3,1).cmap | |
| s = font.getGlyphSet() | |
| units_per_em = font['head'].unitsPerEm |
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 java.util.ArrayList; | |
| import java.util.List; | |
| class DrStrange { | |
| private static List<Integer> numbers; | |
| public DrStrange() { | |
| numbers = new ArrayList<>(); } |
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 PouchDB from 'pouchdb'; | |
| var PouchDB = require('pouchdb'); | |
| PouchDB.plugin(require('pouchdb-quick-search')); | |
| class Database { | |
| db: any; | |
| constructor(databaseName: string) { | |
| this.db = new PouchDB(databaseName); |
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
| .full { | |
| background: #2E313E | |
| } | |
| .hljs { | |
| display: block; | |
| overflow-x: auto; | |
| padding: 0.5em; | |
| background-color: #2b2b2b !important; |
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
| curl -s https://api.github.com/repos/gogs/gogs/releases/latest \ | |
| | grep "linux_amd64.*zip" \ | |
| | cut -d : -f 2,3 \ | |
| | tr -d \" \ | |
| | wget -qi - |
NewerOlder