Skip to content

Instantly share code, notes, and snippets.

View cpjolicoeur's full-sized avatar

Craig P Jolicoeur cpjolicoeur

View GitHub Profile
#
# Klipper configuration file for Anycubic i3 MEGA S
#
# This config file contains settings of all printer pins (steppers, sensors) for Anycubic i3 mega S with TMC2208 Drivers with stock plug orientation
# Klipper firmware should be compiled for the atmega2560
#
# Config file includes
# - Original or 2208(2209) rotated by cable drivers
# - Mesh bed leveling: BLtouch (3DTouch sensor from Triangelab)
# - Manual meshed bed leveling (commented out)
@cpjolicoeur
cpjolicoeur / klipper.i3_mega_s.printer.cfg
Last active April 10, 2024 12:59
Klipper printer.cfg for my Anycubic i3 Mega S printer
# This file contains pin mappings for the Anycubic i3 Mega with
# Ultrabase from 2017. (This config may work on an Anycubic i3 Mega v1
# prior to the Ultrabase if you comment out the definition of the
# endstop_pin in the stepper_z1 section.) To use this config, the
# firmware should be compiled for the AVR atmega2560.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PF0
@cpjolicoeur
cpjolicoeur / cors.janet
Created June 17, 2020 15:11
CORS middleware for Joy framework
(defn cors [handler &opt opts]
(default opts @{})
(def defaults @{"Access-Control-Allow-Origin" "*"
"Access-Control-Allow-Methods" "GET, OPTIONS"
"Access-Control-Allow-Headers" "Content-Type"
"Access-Control-Max-Age 86400})
(def options (merge defaults opts))
(fn [request]
(if (= "OPTIONS" (get request :method))
@{:status 204, :body "" :headers options}
defmodule DaydreamWeb.API.UnitAvailabilityControllerTest do
use DaydreamWeb.ConnCase
alias Daydream.{Fixtures, HomeShare, Repo}
alias Daydream.HomeShare.{UnitAvailability}
alias Daydream.Accounts.{Tenant}
import Ecto.Query, only: [from: 2]
@today Date.utc_today()
defmodule DaydreamWeb.API.UnitAvailabilityControllerTest do
use DaydreamWeb.ConnCase
alias Daydream.{Fixtures, HomeShare, Repo}
alias Daydream.HomeShare.{UnitAvailability}
alias Daydream.Accounts.{Tenant}
import Ecto.Query, only: [from: 2]
@today Date.utc_today()
[
{
"Name": "Aaron Gordon",
"Slug": "gordoaa01",
"Pos": "PF",
"Age": 23,
"G": 78,
"MP": 2633,
"PER": 15.1,
"TS%": 0.54,
@cpjolicoeur
cpjolicoeur / upgrade.md
Created March 6, 2017 15:56 — forked from chrismccord/upgrade.md
Phoenix 1.2.x to 1.3.0 Upgrade Instructions

If you want a run-down of the 1.3 changes and the design decisions behidn those changes, check out the LonestarElixir Phoenix 1.3 keynote: https://www.youtube.com/watch?v=tMO28ar0lW8

To use the new phx.new project generator, you can install the archive with the following command:

$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez

Bump your phoenix dep

Phoenix v1.3.0 is a backwards compatible release with v1.2.x. To upgrade your existing 1.2.x project, simply bump your phoenix dependency in mix.exs:

.testimonials
.container
.row
%h2
Say goodbye to spreadsheets and bloated scheduling software.
%span.enjoy-easy
Enjoy easy - like
%span.these-guys these guys.
%span.like-nick Nick.
.row
'use strict';
import LocalizedStrings from 'react-native-localization';
export const AppStrings = new LocalizedStrings({
en: {
appName: 'MediBajo English'
},
es: {
appName: 'MediBajo'
2 files changed, 15 insertions(+), 7 deletions(-)
Components/.#SplashScreen.js | 1 -
components/price_list.js | 21 +++++++++++++++------
deleted Components/.#SplashScreen.js
@@ -1 +0,0 @@
-cpjolicoeur@Mandalore.70799
\ No newline at end of file
modified components/price_list.js
@@ -1,6 +1,7 @@