This file contains 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 <malloc.h> | |
malloc_trim(0); |
This file contains 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 concurrent | |
with concurrent.futures.ProcessPoolExecutor(max_workers=1) as executor: | |
w = executor.submit(myfunc).result() |
This file contains 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
from rdkit import Chem | |
from rdkit.Chem.Draw import IPythonConsole | |
from rdkit.Chem import Draw | |
IPythonConsole.ipython_useSVG=True | |
IPythonConsole.drawOptions.addStereoAnnotation = True | |
IPythonConsole.drawOptions.addAtomIndices = False |
This file contains 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
[filter "strip_ipynb"] | |
clean = python3 strip_ipynb.py |
This file contains 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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <openssl/rsa.h> | |
#include <openssl/engine.h> | |
#include <openssl/pem.h> | |
// I'm not using BIO for base64 encoding/decoding. It is difficult to use. | |
// Using superwills' Nibble And A Half instead |
This file contains 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://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - |
This file contains 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
http://rockfm.cope.stream.flumotion.com/cope/rockfm.mp3.m3u |
This file contains 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
Define watch as: | |
*(MyClass(*)[length])MyVariable |
This file contains 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
Taken from https://stackoverflow.com/questions/27582001/how-to-use-128-bit-integers-in-cython | |
Basically, we make cython believe we will use 64 bit int to generate the .c file, | |
but by using a C header we will, in fact, define a 128 bit int (the definition | |
in the .h file does not match what we put into the pyx file). | |
Once Cython has generated the .c file, we can compile it with GCC without further trouble, | |
as GCC does support 128 bit ints |
This file contains 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
*PPD-Adobe: "4.3" | |
*% CUPS add-on PPD file for Canon Inkjet Printer Driver. | |
*% Copyright CANON INC. 2001-2011 | |
*% All Rights Reserved. | |
*% | |
*% This program is free software; you can redistribute it and/or modify | |
*% it under the terms of the GNU General Public License as published by | |
*% the Free Software Foundation; version 2 of the License. | |
*% | |
*% This program is distributed in the hope that it will be useful, |
NewerOlder