Skip to content

Instantly share code, notes, and snippets.

A Python script that utilizes the OpenAI API to generate Python code based on user prompts, execute the generated code, check for errors, and suggest new features while ensuring their correctness.
@Stevoisiak
Stevoisiak / WFC-API.js
Last active June 14, 2024 20:19
This file provides the basic methods and objects needed to login, logout, and send xml requests to Kronos Workforce Central v4.0 XML API gateway.
// Source: WFC v5.0 Developer's Toolkit Programmer's Guide
// Chapter 3: Advanced Programming Topics
// https://forge.cornell.edu/sf/docman/do/downloadDocument/projects.cit_is_customer_apps/docman.root.design_docs/doc5084
/*
Copyright:Kronos, Inc. 2001
Description:
This file provides the basic methods and objects needed to login, logout, and send xml requests to WFC v4.0 xml api gateway.
@brev
brev / git-overwrite-branch.sh
Created May 14, 2015 21:27
Git overwrite branch with another branch
# overwrite master with contents of seotweaks branch (seotweaks > master)
git checkout seotweaks # source name
git merge -s ours master # target name
git checkout master # target name
git merge seotweaks # source name
@kmcginnes
kmcginnes / gist:9775481
Last active August 29, 2015 13:57
BoxStarter: Windows 7 WPF DevBox
Disable-UAC
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart
Set-TaskbarOptions -Dock Left
Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan"
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring()
$regex = [regex]"{(.*?)}$"