See comment below.
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
""" pylinted, and code formatted with black """ | |
from math import lcm | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives import serialization | |
# P and Q are prime factors of largest factored sofar RSA-250 | |
# | |
P = 641352894770715802787901901705773890848250147429434472081168596 * 10**62 | |
P += 32024532344630238623598752668347708737661925585694639798853367 |
This file has been truncated, but you can view the full file.
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
[32;1mInfo[0m:root: Using default parameter file ./parameters/factor/params.c155 | |
[32;1mInfo[0m:root: No database exists yet | |
[32;1mInfo[0m:root: Created temporary directory /tmp/cado.10b02n9l | |
[32;1mInfo[0m:Database: Database URI is db:sqlite3:///tmp/cado.10b02n9l/c155.db | |
[32;1mInfo[0m:Database: Opened connection to database /tmp/cado.10b02n9l/c155.db | |
[32;1mInfo[0m:root: Set tasks.linalg.bwc.threads=16 based on detected physical cores | |
[32;1mInfo[0m:root: Set tasks.threads=32 based on detected logical cpus | |
[32;1mInfo[0m:root: tasks.threads = 32 [via tasks.threads] | |
[32;1mInfo[0m:root: tasks.polyselect.threads = 2 [via tasks.polyselect.threads] |
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
/* | |
Compare single thread pure integer performance of CPUs and [AMD] GPUs | |
hipcc hip-magic.hip | |
cpplint --filter=-legal/copyright hip-magic.hip.cpp | |
cppcheck --enable=all --suppress=missingIncludeSystem hip-magic.hip.cpp --check-config | |
*/ | |
#include <sys/time.h> | |
#include <stdint.h> | |
#include <hip/hip_runtime.h> |
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
see comments |
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
// | |
// Developemnt of this gist is stopped, no further updates. | |
// | |
// This is the equivalent of this gist in new RR repo: | |
// https://github.com/Hermann-SW/RR/blob/main/tsp/greedy.cpp | |
// | |
// Code is split up, and a loader was added allowing for differnt problems. | |
// In addition that repo has 111 TSP problems with 108 corresponding | |
// optimal tours. | |
/* |
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
/* based on: | |
https://medium.com/@justup1080/tutorial-creating-a-minimalist-http-server-in-c-2303d140c725 | |
gcc -Wall -Wextra -pedantic range_http.c -o range_http | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <netinet/in.h> |
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
#!/bin/bash | |
d=$(find /sys/class/drm/card?/device/unique_id | wc --l) | |
printf "%9s" "$(hostname)" | |
for((c=0;c<d;++c)) | |
do | |
printf "|%s" "$(cat /sys/class/drm/card$c/device/unique_id)" | |
done | |
echo "|" |
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
"use strict" | |
const jscad = require('@jscad/modeling') | |
const { translate, rotate, scale:scale3d } = jscad.transforms | |
const { vec3 } = jscad.maths | |
const { colorize } = jscad.colors | |
const { sphere, cylinder } = jscad.primitives | |
const { add, length, subtract, scale } = jscad.maths.vec3 | |
const phi=(Math.sqrt(5)+1)/2; | |
const build=[[0,1,3*phi],[1,2+phi,2*phi],[phi,2,2*phi+1]]; |
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
"use strict"; | |
const jscad = require("@jscad/modeling"); | |
const { vec2, vec3} = jscad.maths; | |
const { bezier} = jscad.curves; | |
const { rotate, scale, translate } = jscad.transforms; | |
const { cuboid, sphere, cylinder } = jscad.primitives; | |
const { colorize } = jscad.colors; | |
const r=40; | |
const w=20; |
NewerOlder