Skip to content

Instantly share code, notes, and snippets.

View chiefpansancolt's full-sized avatar
😍

Christopher Pezza chiefpansancolt

😍
View GitHub Profile
@chiefpansancolt
chiefpansancolt / builds.yml
Created November 14, 2019 14:13
Ruby on Rails Github Actions
name: Builds
on: [pull_request]
jobs:
ruby-build:
runs-on: ubuntu-latest
services:
@chiefpansancolt
chiefpansancolt / .salesforcecov.json
Created July 19, 2019 19:41
Example Results and Config File
{
"projectName": "Test Project",
"path": "src/PackBuild",
groups: [
{
"name": "All Files",
"path": ""
},
{
"name": "Classes",
@chiefpansancolt
chiefpansancolt / rails_confirm_override_sweet_alert2.coffee
Created August 19, 2016 21:36
Rails confirm Box override in Rails 5 with Sweet Alert 2. This also works with Cocoon Gem. Had many have click.rails that is incompatible with cocoon gem. Enjoy!
$.rails.allowAction = (link) ->
return true unless link.attr('data-confirm')
$.rails.showConfirmDialog(link)
false
$.rails.confirmed = (link) ->
link.removeAttr('data-confirm')
link.trigger('click')
$.rails.showConfirmDialog = (link) ->