Skip to content

Instantly share code, notes, and snippets.

View joseph-montanez's full-sized avatar

Joseph Montanez joseph-montanez

View GitHub Profile
@joseph-montanez
joseph-montanez / printer.cfg
Created December 29, 2023 13:37
Klipper printer.cfg CR10 S5
[include mainsail.cfg]
[mcu]
serial: /dev/serial/by-path/platform-5200000.usb-usb-0:1.1:1.0-port0
[virtual_sdcard]
path: /home/orangepi/firefly_data/gcodes
on_error_gcode: CANCEL_PRINT
[stepper_x]
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { color: #333; }
</style>
@joseph-montanez
joseph-montanez / issue.md
Last active March 13, 2022 01:11
Tracking PHP Objects in PHP C-API

What I am trying to do is hold onto another PHP object in an internal struct. I.E:

<?php

$camera3d = new Camera3D();
$camera3d->position = new Vector3();
$camera3d->position->x++;

The reason of this is because the Camera3D struct has additional data I need to track:

{"openapi":"3.0.0","info":{"title":"WOTC API","description":"Automate the process of collecting and managing new hire documentation to increase compliance, accuracy and efficiency. You can find out more about WOTC at [https:\/\/tcservicesusa.com\/](https:\/\/tcservicesusa.com\/).","termsOfService":"https:\/\/tcservicesusa.com\/terms\/","contact":{"email":"jm@comentum.com"},"license":{"name":"Apache 2.0","url":"http:\/\/www.apache.org\/licenses\/LICENSE-2.0.html"},"version":"1.0.0"},"servers":[{"url":"https:\/\/wotc.com\/portal\/api\/v1","description":"API End Point"}],"paths":{"\/applicants":{"get":{"tags":["applicant"],"summary":"Get as list of applicants","operationId":"getApplicant","parameters":[{"name":"page","in":"query","description":"The page number","schema":{"type":"integer"}},{"name":"per_page","in":"query","description":"The the number of items return per page","schema":{"type":"integer"}}],"responses":{"200":{"description":"list of applicants"}}},"put":{"tags":["applicant"],"summary":"Create or u
@joseph-montanez
joseph-montanez / index.html
Created February 13, 2020 13:20
React Without A Build System
<!-- Required dependencies -->
<script crossorigin type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/prop-types/15.6.1/prop-types.min.js"></script>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script crossorigin src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<!-- Optional dependencies -->
<script crossorigin type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script crossorigin type="text/javascript"
crossorigin src="//cdnjs.cloudflare.com/ajax/libs/react-popper/0.10.4/umd/react-popper.min.js"></script>
@joseph-montanez
joseph-montanez / main.dart
Created March 31, 2019 11:34
Flutter Keyboard Issues
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
@joseph-montanez
joseph-montanez / main.dart
Created March 30, 2019 11:46
MediaQuery.of(context).size
import 'dart:async';
import 'package:flutter/material.dart';
// import 'package:flutter/services.dart';
import 'widgets/AnimatedButton.dart';
import 'widgets/AnimatedInput.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
void main() => runApp(MyApp());
@joseph-montanez
joseph-montanez / init.vim
Created July 26, 2018 23:15
My NeoVim Configuration
" mkdir -p ~/.config/nvim
" nvim ~/.config/nvim/init.vim
" 1) Install Vim Plug
" NeoVim - Unix
"
" curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" NeoVim - Windows
@joseph-montanez
joseph-montanez / example.php
Last active June 25, 2018 09:01
jsReload Accept URL
<?php
$grid_reload = new \atk4\ui\jsReload($grid);
$grid_reload->url = '/admin/users/list';