This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
received_request_conditions = { | |
update_type: { | |
source: 'update_type', | |
operator: 'is', | |
value: ['Create'] | |
}, | |
status_id: { | |
source: 'status_id', | |
operator: 'is_not', | |
value: ['3'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IE 11 install: | |
============== | |
$ curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env IEVMS_VERSIONS="11" bash | |
Error: | |
===== | |
Do you agree to these license terms and conditions (y/n)? y | |
Installation of "Oracle VM VirtualBox Extension Pack" aborted. | |
\nERROR: Failed to install Oracle VM VirtualBox Extension Pack from /Users/$user/.ievms/Oracle_VM_VirtualBox_Extension_Pack-5.1.30.vbox-extpack, error code (1)\n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sidebar-border: solid 1px $zd-color-platinum; | |
$sidebar-width: 350px; | |
.c-sidebar { | |
border: $sidebar-border; | |
background-color: $zd-color-white; | |
height: 100%; | |
right: 0; | |
top: 0; | |
width: $sidebar-width; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The PUT request takes one parameter, a `macros` object that lists the macros to update. | |
# | |
# Each macro must have an id and any of the following parameters: | |
# | |
# | Name | Description | | |
# | -------- | ----------------------------------- | | |
# | id | The ID of the macro to update. | | |
# | active | The new active status of the macro. | | |
# | position | The new position of the macro. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fetch org course | |
$course_api me orgs/121444745/courses | jq '.[] | {"id": .id, "programId": .programId}' | |
{ | |
"id": "qnmizo", | |
"programId": "121444745" | |
} | |
// Create new programId | |
$ course_api me programs post {} | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define [ | |
'cdn.jquery' | |
'cdn.backbone' | |
'scripts/helpers/common' | |
'scripts/mediator' | |
'site/models/notification' | |
'site/collections/notifications' | |
'site/views/notification_collection' | |
], ($, Backbone, commonHelper, mediator, Notification, Notifications, NotificationCollectionView) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe.only('when user is verified and all fields are valid', function () { | |
var apiUserSession = { | |
sessionId: 'full-sail', | |
user: apiUsers[users.user.api_id] | |
}; | |
given.apiUserCanBeSignedInWith(apiUserSession); | |
given.anExistingApiUserWith(apiUsers[users.user.api_id]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sign a user in | |
signin: function (user, callback) { | |
var self = this, | |
attributes = { 'sessionId': 'foobar' }; | |
if (typeof(user) == 'function') { | |
callback = user; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bind = function(fn, context) { | |
var args = Array.prototype.slice.call(arguments, 2); | |
return function() { | |
return fn.apply(context, args.concat(Array.prototype.slice.call(arguments))); | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var apply = function(fn, context) { | |
var args = Array.prototype.slice.call(arguments, 2), | |
result; | |
context.fn = fn; | |
result = context.fn(args); | |
delete this.fn; | |
return result; | |
}; |
NewerOlder