Skip to content

Instantly share code, notes, and snippets.

beforeFilters: {
switchTo: function() {
return false; // or some truthy value
},
someOtherMethod: 'methodName'
}
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.3.0/handlebars.js"></script>
<script src="//cdn.jsdelivr.net/emberjs/1.5.0/ember.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
{
events: {
'message.ticket_saved': function(data) {
services.notify('Ticket saved! ' + data.ticketId, 'notice');
},
'ticket.save': function() {
var allowSave = true;
this.message('ticket_saved', { ticketId: 2 }, 'nav_bar');
return allowSave;
}
@svizzari
svizzari / option_1.hdbs
Created May 14, 2014 03:29
Lotus Menus
<select data-zd-type="select_menu">
<option>Foo</option>
<option>Bar</option>
</select>
(function() {
with( ZendeskApps.AppScope.create() ) {
var source = (function() {
return {
fieldsOnError: [],
requests: {
fetchUser: function() {
return {
url: helpers.fmt('/api/v2/users/%@.json?include=groups,organizations',
@svizzari
svizzari / tickets.json
Last active November 23, 2021 05:03
Ticket data for the Zendesk Intern coding challenge
{
"tickets": [
{
"requester_id": 1,
"assignee_id": 5,
"subject": "velit eiusmod reprehenderit officia cupidatat",
"description": "Aute ex sunt culpa ex ea esse sint cupidatat aliqua ex consequat sit reprehenderit. Velit labore proident quis culpa ad duis adipisicing laboris voluptate velit incididunt minim consequat nulla. Laboris adipisicing reprehenderit minim tempor officia ullamco occaecat ut laborum.\n\nAliquip velit adipisicing exercitation irure aliqua qui. Commodo eu laborum cillum nostrud eu. Mollit duis qui non ea deserunt est est et officia ut excepteur Lorem pariatur deserunt.",
"tags": [
"est",
"nisi",
@svizzari
svizzari / template.json
Last active September 4, 2018 06:03
JIRA Template for Customer Engagement Issues
{
"options": {
"domains": [],
"inputIDs": [],
"limit": []
},
"templates": [
{
"issuetype-field": "",
"name": "DEFAULT TEMPLATE",
@svizzari
svizzari / jira_templates.json
Created April 16, 2019 04:20
JIRA Templates for Team Taipan
{
"options": {
"domains": [],
"inputIDs": [],
"limit": []
},
"templates": [
{
"issuetype-field": "",
"name": "DEFAULT TEMPLATE",

Keybase proof

I hereby claim:

  • I am svizzari on github.
  • I am svizzari (https://keybase.io/svizzari) on keybase.
  • I have a public key ASA8MyM6EYjheZEZn56kbFs-WqwYr6aoUzgIMvdCHvob8Ao

To claim this, I am signing this object: