Skip to content

Instantly share code, notes, and snippets.

View HopperMCS's full-sized avatar

G. F. Hopper HopperMCS

View GitHub Profile
@HopperMCS
HopperMCS / output.txt
Created February 24, 2017 19:20
Sample output using contents of AssetsApplication
[mgagemorgan@localhost AssetsApplication]$ python cairo_rgb_calc.py
Enter the R value to be converted: 0.7
Enter the G value to be converted: 0.20
Enter the B value to be converted: 0.17
Before Cairo, the original RGB values are: 178, 51, 43.
Enter the R value to be converted: 178
Enter the G value to be converted: 51
Enter the B value to be converted: 43
cairo_set_source_rgba(0.7, 0.2, 0.17, 0.8);
.content1{
}
.content1{
}
.content1{
https://www5.sos.state.oh.us/ords/f?p=100:7:0::NO:7:P7_CHARTER_NUM:4001046
@HopperMCS
HopperMCS / logo.vala
Last active April 25, 2017 18:25
After C#, learned an easy way to write this cairo sh!t without reinventing fourteen wheels
using Cairo;
public class Main : GLib.Object {
public static void Triangle1p1() {
// Create a context:
Cairo.SvgSurface triangle_surface_1p2 = new Cairo.SvgSurface ("triangle1p1.svg", 421, 410);
Cairo.Context triangle_context_1p2 = new Cairo.Context (triangle_surface_1p2);
Cairo.Context triangle_context_1p3 = new Cairo.Context (triangle_surface_1p2);
Cairo.Context triangle_context_1p4 = new Cairo.Context (triangle_surface_1p2);
Cairo.Context triangle_context_1p5 = new Cairo.Context (triangle_surface_1p2);
@HopperMCS
HopperMCS / test.rs
Last active April 28, 2017 18:25
Rust Test
fn to_rgb(r: f32, g: f32, b: f32) {
let r0: f32 = r * 255.0;
let g0: f32 = g * 255.0;
let b0: f32 = b * 255.0;
let r1: f32 = r0.round();
let g1: f32 = g0.round();
let b1: f32 = b0.round();
println!("Original RGB values before Cairo: ({}, {}, {})", r1, g1, b1);
@HopperMCS
HopperMCS / HcOa-0.py
Created May 2, 2017 18:12
null created by mgagemorgan - https://repl.it/HcOa/0
"""
(304, 270)
(311, 380)
(252, 326)
Current slopes needed:
(304, 270)(311, 380) -> Side 1
(311, 380)(252, 326) -> Side 2
@HopperMCS
HopperMCS / HcOa-2.py
Created May 2, 2017 18:21
null created by mgagemorgan - https://repl.it/HcOa/2
"""
(304, 270)
(311, 380)
(252, 326)
Current slopes needed:
(304, 270)(311, 380) -> Side 1
(311, 380)(252, 326) -> Side 2
@HopperMCS
HopperMCS / playground.rs
Created June 3, 2017 01:23 — forked from anonymous/playground.rs
Shared via Rust Playground
struct Triangle {
base: f32,
height: f32
}
trait Area {
fn triangle(&self) -> f32;
}
impl Area for Triangle {
@HopperMCS
HopperMCS / installed-programs.txt
Created June 13, 2017 00:19
EVERY PROGRAM I'VE EVER INSTALL IN FEDORA SINCE 06/12/2017
Last metadata expiration check: 22:29:15 ago on Sun Jun 11 21:46:10 2017 EDT.
Installed Packages
Cg.x86_64 3.1.0013-6.fc26 @@commandline
GConf2.x86_64 3.2.6-17.fc26 @@commandline
GConf2-devel.x86_64 3.2.6-17.fc26 @@commandline
GeoIP.x86_64 1.6.11-1.fc26 @updates-testing
GeoIP-GeoLite-data.noarch 2017.05-1.fc26 @@commandline
GraphicsMagick.x86_64 1.3.25-6.fc26 @@commandline
ImageMagick.x86_64 6.9.3.0-6.fc26 @@commandline
ImageMagick-c++.x86_64 6.9.3.0-6.fc26 @@commandline
@HopperMCS
HopperMCS / InterviewChad.md
Last active June 14, 2017 00:18
My Interview with Chad Bryant

Interview #1

With whome?

Chad Bryant

Where?

UNOH Campus

Job? (Not mine, however still in tech field):