Skip to content

Instantly share code, notes, and snippets.

Craig Younkins cyounkins

  • Pittsburgh, PA
Block or report user

Report or block cyounkins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View activity.py
from pyswfaws.datastores import *
from pyswfaws.serializers import *
from pyswfaws.decorators import *
from pyswfaws.activityworker import *
from pyswfaws.decisionworker import *
@activity_task(swf_domain='test', swf_task_type='TestActivityA', swf_task_version='1.0',
swf_task_list='task_list',
input_data_serializer=JsonSerializer(), input_data_store=SwfDataStore(),
result_data_serializer=JsonSerializer(), result_data_store=SwfDataStore())
View hardware-configuration.nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
View gist:4d8c4ced79742c47d01586078f00dbea
[root@nixos:~/nixpkgs]# nixos-version
19.03pre159472.80738ed9dc0 (Koi)
[root@nixos:~/nixpkgs]# git rev-parse HEAD
6f2475f5bf14963e6f8bdce7bbdc15d7ce7640e1
[root@nixos:~/nixpkgs]# nixos-rebuild -I nixpkgs=/root/nixpkgs switch --show-trace
building Nix...
building the system configuration...
trace: version 19.03.git.6f2475f does not appear in name nixos-version
View gist:c725fd4bc2d51c994da1b27b9ec19ae9
nix-repl> stdenv = import <nixpkgs> {}
nix-repl> b = stdenv.lib.subtractLists stdenv.lib.platforms.i686 stdenv.lib.platforms.unix
nix-repl> builtins.trace b b
trace: [ { kernel = { families = { bsd = <CODE>; }; }; } { kernel = { families = { darwin = <CODE>; }; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "linux"; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "solaris"; }; } { abi = { _type = "abi"; name = "cygnus"; }; kernel = <CODE>; } ]
[ { ... } { ... } { ... } { ... } { ... } ]
nix-repl> builtins.trace stdenv.lib.platforms.unix stdenv.lib.platforms.unix
trace: [ { kernel = { families = { bsd = <CODE>; }; }; } { kernel = { families = { darwin = <CODE>; }; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "linux"; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; fa
View End gcode in Cura machine settings
M104 S0 ;extruder heater off
M140 S0 ; turn off bed
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+5 E-5 X-20 Y-20 F{speed_travel} ;move Z up a bit and retract filament even more
G28 X ; home x axis
G90 ;absolute positioning
G1 Y180 ; move platform forward for access
M84 ;steppers off
You can’t perform that action at this time.