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
| ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| :: LaTeX_clean.bat | |
| :: Source: https://gist.github.com/Xennis/dbfc0f0ace304d1f76f2 | |
| :: | |
| :: Based on Git ignore list: | |
| :: http://xennis.org/wiki/Git_-_Ignore#LaTeX | |
| ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| :: Generated files | |
| del *.aux |
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
| ############################################################################### | |
| # LaTeX custom auto completion list | |
| # | |
| # for the LaTeX editor [Texmaker](http://www.xm1math.net/texmaker/): | |
| # ´User´ > ´Customize Completion´ | |
| # | |
| ############################################################################### | |
| ## For [LaTeX_Vorlage_Uebungsblatt.tex](https://gist.github.com/Xennis/9637696) | |
| \exercise |
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
| <?php defined('SYSPATH') or die('No direct script access.'); | |
| /** | |
| * MySQL "Closure Table" for Kohana based on Bill Karwin design. | |
| * | |
| * @link http://www.slideshare.net/billkarwin/models-for-hierarchical-data | |
| * @TODO improve | |
| * | |
| * sql schema: | |
| * CREATE TABLE `closures` ( | |
| * `id` int(11) NOT NULL AUTO_INCREMENT, |
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 | |
| def split_file(filename, num_max_lines=None): | |
| num_lines = 0 | |
| with open(filename) as f: | |
| for line in f: | |
| num_lines += 1 | |
| sys.stdout.write(line) | |
| if num_max_lines and num_lines >= num_max_lines: | |
| break |
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
| /media/ | |
| ############ | |
| ## Python | |
| ############ | |
| *.pyc | |
| ############ |
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 { createHmac } from "crypto" | |
| // Verify according to https://developer.paddle.com/webhooks/signature-verification | |
| const verifyPaddleSignature = async (payload: string, header: string | null, secret: string) => { | |
| if (!header) { | |
| return false | |
| } | |
| const [tsPart, h1Part] = header.split(";") | |
| if (!tsPart || !h1Part) { | |
| return false |
OlderNewer