Skip to content

Instantly share code, notes, and snippets.

View cjaro's full-sized avatar

Catherine Jarocki cjaro

View GitHub Profile
@cjaro
cjaro / index.html
Created February 7, 2017 02:59
ygqpxy
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Resumé of Catherine Jarocki</title>
<meta name="viewport" content="initial-scale=1">
<link rel="stylesheet" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" rel="stylesheet">
</head>
@cjaro
cjaro / .vimrc
Created July 11, 2019 20:26 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
/**
*@NApiVersion 2.x
*@NScriptType Restlet
*/
// Overall design:
// Take action param and call corresponding function with any params
// Make endpoint to transform sales order into invoice
define(["N/record"], function (record) {
unsynced_refunds = client.paginate(refund_query, expose_cursor=True)
# manually query for paginated refund line items
# use last cursor in list of edges to mark place to query
# get id of refund, pass cursor to refunds endpoint
# https://shopify.dev/concepts/graphql/pagination
try:
async for refunded_order, cursor in unsynced_refunds:
await self.debug(
@cjaro
cjaro / ItemCop2.js
Last active February 10, 2021 23:55
/**
*@NApiVersion 2.x
*@NScriptType UserEventScript
*/
/**
* Make a suite script user event script that hooks into items,
* and every time they're updated, it checks a checkbox on the order that means
* "I've been updated and should show up in the sync."
* Once that is ready, there are two additional steps: