Skip to content

Instantly share code, notes, and snippets.

View squeedee's full-sized avatar
🚛
Supply Chain Specialist

Rasheed Abdul-Aziz squeedee

🚛
Supply Chain Specialist
View GitHub Profile
@squeedee
squeedee / blueprints.yaml
Last active June 27, 2022 15:31 — forked from sclevine/blueprints.yaml
blueprints
apiVersion: carto.run/v1alpha1
kind: ClusterBlueprint
metadata:
name: web-supplychain
spec:
outputTypeRef:
name: image
outputs:
- name: digest
@squeedee
squeedee / 00-gitops-sc.yml
Created February 22, 2022 17:17 — forked from jwntrs/00-gitops-sc.yml
Typed supply chains (ClusterSourceSupplyChain, ClusterImageSupplyChain, ClusterConfigSupplyChain)
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: gitops-supply-chain
spec:
selector:
matchLabels:
workload-type: web
matchFields:
- {key: ".spec.target", operation: In, value: ["gitops"]}
@squeedee
squeedee / Capybara.md
Last active March 5, 2020 03:03 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
private function isACommand(commandClazz:Class):Boolean
{
if(describeType(commandClazz).factory.method.(@name == "execute").length() > 0)
{
return true;
}
return false;
}
override public function areObjectsEqual(accountVO1:AdminDataVO, accountVO2:AdminDataVO):Boolean
{
var result:Boolean = false;
if( (accountVO1.password == accountVO2.password ) &&
(accountVO1.email == accountVO2.email ) &&
(accountVO1.serverID == accountVO2.serverID ) &&
(accountVO1.dataSetID == accountVO2.dataSetID ) &&
(accountVO1.pluginMixID == accountVO2.pluginMixID ) &&
(accountVO1.adminPluginMixID == accountVO2.adminPluginMixID ) &&
private function compareData(editedVO:AdminDataVO):void
{
var currentStoredVO:AdminDataVO = editingModel.itemBeingEdited;
if(!comparator.areObjectsEqual(currentStoredVO, editedVO))
{
var keepHandler:Function = function():void { editingModel.updateItem(editedVO) };
var discardHandler:Function = function():void {};