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 "SpookyV2.h" | |
#include <stdio.h> | |
#include <stddef.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#ifdef _WIN32 | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> |
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
#!/usr/bin/perl -w | |
# svg-to-dxf.pl - convert SVG files to DXF files on Mac OS X | |
# by Patrick Pelletier, public domain (or cc0) | |
# based on the commands suggested here: | |
# https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_2D_formats | |
# assumes Inkscape.app is installed in /Applications | |
# and pstoedit is installed in PATH, such as via "brew install pstoedit" | |
use Cwd qw(abs_path); |
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 java.security.AlgorithmParameterGenerator; | |
import java.security.InvalidParameterException; | |
public class Diffie { | |
public static void main (String[] args) throws Exception { | |
AlgorithmParameterGenerator apg = AlgorithmParameterGenerator . getInstance ("DiffieHellman"); | |
int good = 0; | |
for (int i = 512 ; i <= 16384 ; i += 64) { | |
try { | |
apg . init (i); |
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
This is an unofficial pinout diagram of the Adafruit Feather | |
specification: | |
https://learn.adafruit.com/adafruit-feather/feather-specification | |
For more information about this diagram, see: | |
http://funwithsoftware.org/posts/2018-08-31-feather-ascii-art-pinout.html | |
+-------------------+ |
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
#!/usr/bin/env python3 | |
import sys | |
sys.path.append("/Users/ppelleti/src/kicad-footprint-generator") | |
from KicadModTree import * | |
footprint_name = "Relay_DPDT_Panasonic_JW2" | |
f = Footprint(footprint_name) |
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 Distribution.Simple | |
main = defaultMain |
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
/* Patrick Pelletier, public domain / cc0 | |
* | |
* OpenSSL's default random number generator (RAND_SSLeay) is not | |
* fork-safe in the case where the child pids wrap around without the | |
* parent having used or reseeded the RNG in the interim. Which makes | |
* this a rare problem, but one which recently cropped up on Android: | |
* https://plus.google.com/+AndroidDevelopers/posts/YxWzeNQMJS2 | |
* and Nikolay Elenkov wrote a program to demonstrate the bug on Android: | |
* https://gist.github.com/nelenkov/581f9be65dcc0b6b35b9 | |
* |
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
WSAEINTR -> "A blocking operation was interrupted by a call to WSACancelBlockingCall." | |
WSAEACCES -> "An attempt was made to access a socket in a way forbidden by its access permissions." | |
WSAEFAULT -> "The system detected an invalid pointer address in attempting to use a pointer argument in a call." | |
WSAEINVAL -> "An invalid argument was supplied." | |
WSAEMFILE -> "Too many open sockets." | |
WSAEWOULDBLOCK -> "A non-blocking socket operation could not be completed immediately." | |
WSAEINPROGRESS -> "A blocking operation is currently executing." | |
WSAEALREADY -> "An operation was attempted on a non-blocking socket that already had an operation in progress." | |
WSAENOTSOCK -> "An operation was attempted on something that is not a socket." | |
WSAEDESTADDRREQ -> "A required address was omitted from an operation on a socket." |
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
/* list of hokey hash functions in rustc as of August 12, 2012 | |
* in response to https://github.com/mozilla/rust/issues/3041 */ | |
// libsyntax/ast_util.rs: | |
pure fn hash_ty(t: &@ty) -> uint { | |
let res = (t.span.lo << 16u) + t.span.hi; | |
return res; | |
} |
NewerOlder