conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Validate cookie for 30 days\n"
},
{
"from": "human",
"value": "@createCookie = (name, value, days) ->\n expires = undefined\n if days\n date = new Date()\n date.setTime date.getTime() + (days * 24 * 60 * 60 * 1000)\n expires = \"; expires=#{date.toGMTStri... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use Promises for cli tool\n"
},
{
"from": "human",
"value": "numeral = require(\"numeral\")\nbalance = require(\"./crypto-balance\")\n\n\nmodule.exports.run = ->\n addr = process.argv[2]\n\n unless addr\n console.log \"Usage: balance <address>\"\n process.ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix test for IE8; don't match exact html, because .html() has upper cased HTML tags\n"
},
{
"from": "human",
"value": "helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper'\n\nclass MockRequest extends MockClass\n @chainedC... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix spec helper still using up.util.all\n"
},
{
"from": "human",
"value": "u = up.util\n\nbeforeEach ->\n jasmine.addMatchers\n toMatchList: (util, customEqualityTesters) ->\n compare: (actualList, expectedList) ->\n actualList = u.toArray(actualList... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix error object when XHR failed\n"
},
{
"from": "human",
"value": "# Pre dependencies\n# (none)\n\n###*\n@class XhrPromise\n Promise-based XMLHttpRequest\n###\nmodule.exports = class XhrPromise\n null\n\n @get: (url, options) ->\n return _get(\"text\", url, o... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change text in advanced greedy theory\n"
},
{
"from": "human",
"value": "import contest from \"../../lib/contest\"\nimport label from \"../../lib/label\"\nimport link from \"../../lib/link\"\nimport page from \"../../lib/page\"\nimport problem from \"../../lib/probl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move to the connected event\n"
},
{
"from": "human",
"value": "Redis = require 'redis'\nUrl = require 'url'\n\ninfo = Url.parse process.env.POO_REDIS_URL or \"redis://localhost:6379/0\"\nredis_client = Redis.createClient(info.port, info.hostname)\nredis_client.auth ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add feature flag for github sync\n"
},
{
"from": "human",
"value": "Settings = require 'settings-sharelatex'\n\nmodule.exports = Features =\n\texternalAuthenticationSystemUsed: ->\n\t\tSettings.ldap? or Settings.saml? or Settings.overleaf?.oauth?\n\n\thasFeature: (f... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clarify wording on actual functionality of backwards compatibility\n"
},
{
"from": "human",
"value": "parse_pararms = (querystring) ->\n params = {}\n querystring = querystring.split('&')\n for qs in querystring\n continue if not qs\n pair = qs.split('=')\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Sort files by size but with directories on top"
},
{
"from": "human",
"value": "Collection = require './collection'\n\nclass TaskLogFiles extends Collection\n\n url: =>\n fullPath = \"#{ @directory }/#{ @path ? ''}\"\n \"http://#{ @offerHostname }:#... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use process.env.ZENIT_SERVICE when making requests\n"
},
{
"from": "human",
"value": "ipc = require 'ipc'\nremote = require 'remote'\nshell = require 'shell'\n{Emitter} = require 'event-kit'\ngot = require 'got'\n\nmodule.exports =\n emitter: new Emitter\n\n showW... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use percentages as ratios and full map bounds.\n"
},
{
"from": "human",
"value": "define ['URI', 'app/views/base', 'app/p13n'], (URI, base, p13n) ->\n\n class ExportingView extends base.SMLayout\n template: 'exporting'\n events:\n 'click ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add droid sans to font list\n"
},
{
"from": "human",
"value": "module.exports =\n\n config:\n fontFamily:\n description: 'Experimental: set to gtk-3 to load the font settings from ~/.config/gtk-3.0/settings.ini'\n type: 'string'\n default: 'Cantar... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve query and add index to statistics collection\n\nFixes #2747\n"
},
{
"from": "human",
"value": "RocketChat.models.Statistics = new class extends RocketChat.models._Base\n\tconstructor: ->\n\t\t@_initModel 'statistics'\n\n\n\t# FIND ONE\n\tfindOneById: (_id, o... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix nav item route matching\n"
},
{
"from": "human",
"value": "Marbles.Views.NavigationActive = class NavigationActiveView extends Marbles.View\n @view_name: 'navigation_active'\n\n @buildMappingRegexp: (mapping) ->\n new RegExp(\"#{mapping.replace(\"*\", \".*?... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use polyfill method for specific pages\n"
},
{
"from": "human",
"value": "# Navigation\n(($) ->\n circle = $.sammy(\"body\", ->\n\n # Page\n class Page\n constructor: (@name, @title) ->\n\n render: ->\n document.title = \"Circle - \" + @title... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo in haveOpacity() matcher (thanks @foobear)\n"
},
{
"from": "human",
"value": "u = up.util\ne = up.element\n$ = jQuery\n\nbeforeEach ->\n jasmine.addMatchers\n toHaveOpacity: (util, customEqualityTesters) ->\n compare: (element, expectedOpacity, tol... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix jQuery wrap because poltergeist/phantomJS choked (got a JS error)."
},
{
"from": "human",
"value": "$(document).on 'page:load ready', ->\n\n $('#circle_role_role_type').on 'change', (e)->\n $type = $(e.target)\n $name = $type.siblings('#circle_role_name')... | coffeescript | chosen |
[
{
"from": "system",
"value": "ToggleSwitch: Use getInput getter in tests.\n"
},
{
"from": "human",
"value": "goog = goog or goog = require: ->\n\ngoog.require 'spark.components.ToggleSwitch'\n\ndescribe 'spark.components.ToggleSwitch', ->\n\n\n toggle = null\n element = null\n\n\n beforeEach... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add custom load and activate method to Theme Package\n"
},
{
"from": "human",
"value": "AtomPackage = require './atom-package'\n\nmodule.exports =\nclass ThemePackage extends AtomPackage\n getType: -> 'theme'\n\n getStylesheetType: -> 'theme'\n\n enable: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix User Listing on Import User Page\n"
},
{
"from": "human",
"value": "Router.map ->\n @route \"home\",\n path: \"/\"\n layoutTemplate: \"homeLayout\"\n\n @route \"dashboard\",\n path: \"/dashboard\"\n waitOn: ->\n [\n subs.subscribe 'even... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle css live reloading correctly.\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n return {\n express:\n files: [\n 'Gruntfile.coffee'\n 'server-src/*.coffee'\n 'config/*.yml'\n ]\n options:\n spawn: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add keymaps supported by Linux and Windows"
},
{
"from": "human",
"value": "# Keybindings require three things to be fully defined: A selector that is\n# matched against the focused element, the keystroke and the command to\n# execute.\n#\n# Below is a basic keybind... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for data-expand links."
},
{
"from": "human",
"value": "initPage = ->\n # Fix stupid Chrome bug.\n # See https://code.google.com/p/chromium/issues/detail?id=388664\n #\n $('form').each ->\n $(this).attr('action', this.action);\n\n # Autofocus for... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix discussion prop-name in search result\n"
},
{
"from": "human",
"value": "React = require 'react'\nDiscussionPreview = require './discussion-preview'\nCommentLink = require './comment-link'\nCommentPreview = require './comment-preview'\nPromiseRenderer = require ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include price_range when hitting trending endpoints\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nBackbone = require 'backbone'\nGenes = require '../../../../collections/genes.coffee'\n{ Following } = require '../../..... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change first param of `getMemberSubscriptions` to `user_or_id`, to match semantics of usage.\n\nThis function works whether a user object, or an ObjectId is passed, but the `user_id`\nparam name is confusing.\n"
},
{
"from": "human",
"value": "Subscription = require... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add safe checks for image dimensions\n"
},
{
"from": "human",
"value": "noflo = require 'noflo'\npath = require 'path'\nutils = require '../utils'\n\n# @runtime noflo-nodejs\n# @name SWTDetect\n\nexports.getComponent = ->\n c = new noflo.Component\n c.icon = 'font... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve API of registerFilter (added registerFilters for clarification)\n"
},
{
"from": "human",
"value": "Liquid = require \"../liquid\"\nPromise = require \"bluebird\"\n\nmodule.exports = class Liquid.Engine\n constructor: ->\n @tags = {}\n @registerFilter ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix github fetching code running everywhere\n"
},
{
"from": "human",
"value": "Testributor.Pages ||= {}\nclass Testributor.Pages.ProjectWizard\n show: ()->\n $(\".multi-select\").select2()\n\n $fetchRepos = $('.js-fetch-repos')\n $fetchingRepos = $('.js-fe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Initialize shipping method when empty\n"
},
{
"from": "human",
"value": "Sprangular.directive 'shippingRateSelection', ->\n restrict: 'E'\n templateUrl: 'shipping/rates.html'\n scope:\n order: '='\n controller: ($scope, Cart) ->\n $scope.loading = false\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo in menu bar\n\n`Togggle` should be `Toggle`"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details\n'context-menu':\n 'atom-text-editor': [\n {\n 'label': 'Toggle atom-ethereum-inte... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the numbering for total slides"
},
{
"from": "human",
"value": "class window.PageTitle\n\n constructor: (@reveal, @prefix) ->\n @title = document.querySelector 'title'\n @prefix ?= @title.innerHTML\n @total = document.querySelectorAll(\".reveal .slides... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change error type for consistency\n"
},
{
"from": "human",
"value": "NotFoundError = (message) ->\n\terror = new Error(message)\n\terror.name = \"NotFoundError\"\n\terror.__proto__ = NotFoundError.prototype\n\treturn error\nNotFoundError.prototype.__proto__ = Error.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use UserService inside session to ensure identical conversions\n"
},
{
"from": "human",
"value": "angular.module('kassa').service('SessionService',[\n '$http'\n '$q'\n '$window'\n ($http, $q, $window)->\n currentUser = null\n\n equal = angular.equals\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change module declaration on MnoeApiSvc\n"
},
{
"from": "human",
"value": "angular.module 'frontendAdmin'\n .factory 'MnoeApiSvc', ($log, Restangular, inflector) ->\n return Restangular.withConfig((RestangularProvider) ->\n RestangularProvider.setBaseUrl('/... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix initSelection of variant autocomplete\n"
},
{
"from": "human",
"value": "# variant autocompletion\n$(document).ready ->\n if $(\"#variant_autocomplete_template\").length > 0\n window.variantTemplate = Handlebars.compile($(\"#variant_autocomplete_template\").... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix merging of parameters for granule queries\n"
},
{
"from": "human",
"value": "#= require models/data/xhr_model\n\nns = @edsc.models.data\n\nns.Granules = do (ko, getJSON=jQuery.getJSON, XhrModel=ns.XhrModel, extend=$.extend) ->\n\n class GranulesModel extends Xh... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix gutter rendering when sorted\n"
},
{
"from": "human",
"value": "React = require 'react-atom-fork'\n{div} = require 'reactionary-atom-fork'\n\nmodule.exports = React.createClass\n render: ->\n {firstRow, lastRow, totalRows, gutter, height, parentView} =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Stop referencing the old style naming for util/privacy.\n"
},
{
"from": "human",
"value": "# Helper class to contain status messages from the OFX response.\n\ntype = require 'lang/type'\n\nclass Status\n constructor: (@code, @status, @message) ->\n\n isSuccess: ->... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use Pane::activate instead of PaneView::focus"
},
{
"from": "human",
"value": "MarkdownPreviewView = require './markdown-preview-view'\n\nmodule.exports =\n activate: ->\n atom.workspaceView.command 'markdown-preview:show', =>\n @show()\n\n atom.workspac... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add results of schema query to debug output.\n\nAdding the results of the query for a schema in the compiler tests to\nthe debugging output of the Travis CI build.\n"
},
{
"from": "human",
"value": "{Client} = require \"mysql\"\nfs = require \"fs\"\n\ncontext =\n c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the configured default extension\n\nRight now the code does not take defaultExtension into account."
},
{
"from": "human",
"value": "sysPath = require 'path'\ncompileHBS = require './ember-handlebars-compiler'\n\nmodule.exports = class EmberHandlebarsCompil... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clear the localStorage that will restore information no matter if or not restart.\n"
},
{
"from": "human",
"value": "# Start the crash reporter before anything else.\nrequire('crash-reporter').start(productName: 'Atom', companyName: 'GitHub')\n\npath = require 'path... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add more prefix to turblinks\n"
},
{
"from": "human",
"value": "###\n# Copyright 2015-2017 ppy Pty. Ltd.\n#\n# This file is part of osu!web. osu!web is distributed with the hope of\n# attracting more community contributions to the core ecosystem of osu!.\n#... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use --force to enable tests on Node 0.1 through 10"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON('package.json')\n\n coffee:\n glob_to_multiple:\n expand: true\n cwd: 'src'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update search query to check if contains string\n\nThis overrides the original search method which required an exact\nmatch to show results. The new contains approach will return any title\nthat contains the query string.\n"
},
{
"from": "human",
"value": "express =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add translator as a Talk role\n"
},
{
"from": "human",
"value": "module.exports = [\n# Role | Can access:\n \"admin\" # admin, moderator, ream, all\n \"moderator\" # moderator, team, all\n \"team\" # team, all\n \"all\" # all *\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use position: absolute instead of relative for better positioning\n\n@martijn?\n"
},
{
"from": "human",
"value": "FactlinkJailRoot.showProxyMessage = ->\n content = \"\"\"\n <div class=\"proxy-message\">\n <strong>Factlink Browser</strong>\n <ul>\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a test for buffer as parameter\n"
},
{
"from": "human",
"value": "require './test_helpers'\ncrc = require('../src')\n\ndescribe 'CRC', ->\n it 'should have a shortcut hexdigest', ->\n string = '1234567890'\n expected = '0d'\n crc.crc1(string).should.eq... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add AB test for Artist Insights V2\n\nAdd A/B test with `v1` (control), `v2_before_bio` (experiment, and\n`v2_after_bio` (experiment) variations.\n\nThe value is passed through to the Artist App in artsy/reaction which\nwill switch between the different variations.\n"
},
{
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add email title to user. Could be a proper tooltip?\n"
},
{
"from": "human",
"value": "crypto = require 'crypto'\n{View} = require 'space-pen'\n\nmodule.exports =\nclass ParticipantView extends View\n @content: ->\n \t@div class: 'collaboration-participant overlay... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return avatarUrl directly if it's a string\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').directive 'userAvatar', ($window) ->\n scope: {user: '=', coordinator: '=?', size: '@?'}\n restrict: 'E'\n templateUrl: 'generated/components/user_avatar/use... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use not instead of ! for consistency\n"
},
{
"from": "human",
"value": "setGlobalFocusPriority = (priority) ->\n env = jasmine.getEnv()\n env.focusPriority = 1 unless env.focusPriority\n env.focusPriority = priority if priority > env.focusPriority\n\nfocusMethods... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call addOpener instead of registerOpener"
},
{
"from": "human",
"value": "path = require 'path'\n\n{allowUnsafeNewFunction} = require 'loophole'\narchive = allowUnsafeNewFunction -> require 'ls-archive'\n{File} = require 'pathwatcher'\nfs = require 'fs-plus'\nSerial... | coffeescript | chosen |
[
{
"from": "system",
"value": "Comment out line that breaks app\n"
},
{
"from": "human",
"value": "if Meteor.isClient\n if Package.ui\n Handlebars = Package.ui.Handlebars\n\n Handlebars.registerHelper 't9n', (x, prefix='') ->\n T9n.get(x, prefix)\n\nclass T9n\n\n @get: (x, prefix='') ->\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove the ? from the URL params, as this was preventing reload of a page.\n"
},
{
"from": "human",
"value": "Species.SearchRoute = Ember.Route.extend\n\n serialize: (model) ->\n {params: '?' + $.param(model)}\n\n model: (params) ->\n geoEntitiesController =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tests for new Munit.wrap helper\n"
},
{
"from": "human",
"value": "describe \"Munit.spies\", ->\n it \"should exist\", ->\n expect(Munit.spies).to.be.an 'object'\n expect(Munit.spies.restoreAll).to.be.a 'function'\n\n\ndescribe \"Munit.stubs\", ->\n it \... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add context menu in FilePatchView for opening file in editor\n"
},
{
"from": "human",
"value": "'menu': [\n {\n 'label': 'View'\n 'submenu': [\n {\n 'label': 'Toggle Git Panel'\n 'command': 'github:toggle-git-panel'\n }\n ]\n }\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set isNew to illustrate possible attribute assignments"
},
{
"from": "human",
"value": "ETahi.InlineEditTextComponent = Em.Component.extend\n editing: false\n hasNoContent: (->\n Em.isEmpty(@get('bodyPart.value'))\n ).property('bodyPart.value')\n\n focusOnEdi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make Geo.distanceBetween take either a LatLng or a locatable at either parameter\n"
},
{
"from": "human",
"value": "Darkswarm.service \"Geo\", ->\n new class Geo\n OK: google.maps.GeocoderStatus.OK\n\n # Usage:\n # Geo.geocode address, (results, status) ->... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Markdown keymaps for webdoc\n"
},
{
"from": "human",
"value": "'.platform-darwin atom-text-editor[data-grammar=\"source dyndoc md stata\"]':\n 'cmd-shift-x': 'markdown:toggle-task'\n'.platform-win32 atom-text-editor[data-grammar=\"source dyndoc md stata\"]':\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide suggestions dropdown if the keyUp is Enter\n"
},
{
"from": "human",
"value": "Species.TaxonConceptSearchTextField = Em.TextField.extend\n value: ''\n currentTimeout: null\n\n attributeBindings: ['autocomplete']\n\n focusOut: (event) ->\n @.$().attr('plac... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide all the items on `ready`\n\nWhen I tried to do this client side batman.js didn't populate anything that was hidden\n"
},
{
"from": "human",
"value": "class Dashing.Lecturelist extends Dashing.Widget\n \n ready: ->\n @currentIndex = 0\n @items = $(@node)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle custom commands with strategies\n"
},
{
"from": "human",
"value": "shell = require 'shell'\n\nmodule.exports = customCommand = (virtualFileSystem, {payload}) ->\n payload = JSON.parse(payload)\n\n switch payload.command\n when 'browser_open'\n shell... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update minified_event structure to match frontend\n"
},
{
"from": "human",
"value": "dotenv = require 'dotenv'\namqp = require 'amqp'\nMongoClient = require('mongodb').MongoClient\n\ndotenv.load()\nif !process.env.AMQP_URL or process.env.AMQP_URL.length < 1\n conso... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update drawing tools to match readymade"
},
{
"from": "human",
"value": "Pinpoint = require './pinpoint'\n\nt7e = require 't7e'\nenUs = require './en-us'\nt7e.load enUs\n\ntranslate = t7e\n\nmodule.exports =\n id: 'penguin'\n\n producer: translate 'div', 'producer... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reset progress bar before start.\n"
},
{
"from": "human",
"value": "#= require nanobar.js\nclass @PodsProgressBar\n update: (factor) ->\n progress = factor * 100\n @nanobar.go(progress)\n start: ->\n @nanobar = new Nanobar\n target: $('.progress-cont... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary beforeEach from tests\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nCollector = require '../lib/collector'\n\ndescribe \"Collector\", ->\n subject = null\n beforeEach ->\n subject = new Collector\n\n describe \"getData\", ->\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix problem with template path\n"
},
{
"from": "human",
"value": "'use strict'\n\n$(document).foundation()\n\nangular\n .module('app', [\n 'ngAnimate',\n # 'ngAria',\n 'ngCookies',\n 'ngMessages',\n 'ngResource',\n 'ngRoute',\n 'ngSanitize',\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use dismisser instead of cookies lib for onboarding tips\n"
},
{
"from": "human",
"value": "Backbone = require 'backbone'\nCookies = require 'cookies-js'\nanalytics = require '../../lib/analytics.coffee'\nPromise = require 'bluebird-q'\n\nmodule.exports = class TipV... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change URL of mesh server again\n"
},
{
"from": "human",
"value": "socket = io.connect 'ws://45.55.200.178'\n\nangular.module(\"FarmBot\").factory 'socket', ($rootScope) ->\n on: (eventName, callback) ->\n socket.on eventName, ->\n args = arguments\n $... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add some basic error handling when creating devices\n"
},
{
"from": "human",
"value": "devices =\n MediaServer: require \"./devices/MediaServer\"\n\nupnp =\n createDevice: (name, type) -> new devices[type](name)\n\nmodule.exports = upnp\n"
},
{
"from":... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a workaround for a race condition between chosen and floatThead\n"
},
{
"from": "human",
"value": "$(document).on 'uic:domchange', ->\n margin_top = $('.navbar-fixed-top, .navbar-static-top').height()\n $('table[data-toggle=sticky-header]').floatThead\n use... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set Atom Dark as the default theme\n"
},
{
"from": "human",
"value": "\"*\":\n Zen:\n softWrap: false\n width: 160\n core:\n disabledPackages: [\n \"notebook\"\n \"language-gfm\"\n \"wrap-guide\"\n ]\n telemetryConsent: \"limited\"\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issues expanding notifications' table rows\n"
},
{
"from": "human",
"value": "Augury.Views.Notifications.Index = Backbone.View.extend(\n initialize: ->\n _.bindAll @, 'renderTable'\n Augury.notifications.bind 'reset', @renderTable\n\n events:\n 'click... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Express server creating in 2.x.x fixed\"\n\nThis reverts commit aae0326fb4fc5dc0d76a4e5901d05ccd893fb462.\n"
},
{
"from": "human",
"value": "coffee = require(\"coffee-script\")\r\nless = require(\"less\")\r\njade = require(\"jade\")\r\nexpress = require(\"e... | coffeescript | chosen |
[
{
"from": "system",
"value": "ENHANCE: Load teaching periods in root controller\n"
},
{
"from": "human",
"value": "angular.module('doubtfire.config.root-controller', [])\n\n#\n# The Doubtfire root application controller\n#\n.controller(\"AppCtrl\", ($rootScope, $state, $document, $filter, Extern... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change watch task to default\n"
},
{
"from": "human",
"value": "gulp = require 'gulp'\ncoffee = require 'gulp-coffee'\nbrowserify = require 'browserify'\nrunSequence = require 'run-sequence'\nsource = require 'vinyl-source-stream'\ndel = require 'del'\nclosureCompil... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add command to each item.\n"
},
{
"from": "human",
"value": "fs = require 'fs'\nchild_process = require 'child_process'\n\nmodule.exports = Indexer =\n\n\tgetCondaPackages: () ->\n\t\toutput = child_process.execSync ' conda search \".*\" --names-only '\n\t\tnames = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update address state when countryId changes\n"
},
{
"from": "human",
"value": "Sprangular.directive 'addressForm', ->\n restrict: 'E'\n templateUrl: 'addresses/form.html'\n scope:\n address: '='\n countries: '='\n controller: ($scope) ->\n $scope.select... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"woot, now supporting attribute injection\"\n\nThis reverts commit 1d57e7c7a85593b6364d99e6d4a17c009243d1ba.\n"
},
{
"from": "human",
"value": "camelCase = (s) ->\r\n (->\r\n console.log 'foo'\r\n )()\r\n\r\nisString = (obj) ->\r\n obj.constructor == S... | coffeescript | chosen |
[
{
"from": "system",
"value": "fix(regex): Make regex checks case insensitive\n"
},
{
"from": "human",
"value": "# Description:\n# Youtube Feeds\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n## Commands:\n# hubot yf add <username>\n# hubot yf remove <username>\n# hubot ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add select next menu item\n"
},
{
"from": "human",
"value": "'menu': [\n 'label': 'Find'\n 'submenu': [\n { 'label': 'Find in Buffer', 'command': 'find-and-replace:show'}\n { 'label': 'Replace in Buffer', 'command': 'find-and-replace:show-replace'}\n { 't... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use Fabric.js Point in Position class\n"
},
{
"from": "human",
"value": "# BeamWars - A multiplayer in-browser remake of the Mac game of the same name\n# Copyright (C) 2013 Aaron Hill\n#\n# This program is free software: you can redistribute it and/or modi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update Orders.find to take optional token\n"
},
{
"from": "human",
"value": "Sprangular.service \"Orders\", ($http) ->\n\n service =\n find: (number) ->\n $http.get(\"/api/orders/#{number}\")\n .then (response) ->\n service._loadOrder(respon... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove empty lines in user model.\n"
},
{
"from": "human",
"value": "class App.Models.User extends App.Model\n urlRoot: 'users',\n defaults:\n user_settings: {\n avatar: 'http://i.imgur.com/i31E9hh.jpg',\n username: '',\n website: '',\n emai... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change name of breadcrumb_template in backbone index\n"
},
{
"from": "human",
"value": "#= require_self\n#= require_tree ./templates\n#= require_tree ./models\n#= require_tree ./views\n#= require_tree ./routers\n\nwindow.Water =\n Models: {}\n Collections: {}\n R... | coffeescript | chosen |
[
{
"from": "system",
"value": "Append ProjectView subviews in 1 operation\n"
},
{
"from": "human",
"value": "ProjectMonitor.Views ||= {}\n\nclass ProjectMonitor.Views.ProjectView extends Backbone.View\n tagName: \"li\"\n className: \"project\"\n\n initialize: (options) ->\n @subviews = []\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove livereload functionality for now.\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n # Configuration.\n grunt.initConfig\n pkg: grunt.file.readJSON 'package.json'\n\n coffee:\n dist:\n expand: true,\n cwd: './avalonsta... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use coffeescript instead of coffee-script\n"
},
{
"from": "human",
"value": "import cluster from 'cluster'\nimport fs from 'fs'\nimport path from 'path'\n\nimport {tmpFile} from './utils'\nimport watch from './watch'\n\n_watch = (dir) ->\n require('vigi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Apply selected value as label\n"
},
{
"from": "human",
"value": "class @TemplateSelector\n constructor: (opts = {}) ->\n {\n @dropdown,\n @data,\n @pattern,\n @wrapper,\n @editor,\n @fileEndpoint,\n @$input = $('#file_name')\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add .node extension to require path\n"
},
{
"from": "human",
"value": "{Behavior} = require 'emissary'\n{ScrollbarStyleObserver} = require('../build/Release/scrollbar-style-observer')\n\nobserver = new ScrollbarStyleObserver -> behavior.emitValue(observer.getPreferr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for scrolling on pages\n"
},
{
"from": "human",
"value": "define (require) ->\n _ = require('underscore')\n BaseView = require('cs!helpers/backbone/views/base')\n PublishListPageView = require('cs!./page')\n template = require('hbs!./section-template')\n re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow insert into \"Find\" tool panel\n\nFixes a problem where the character was inserted in the last active editor instead of the focused \"Find\" tool panel"
},
{
"from": "human",
"value": "{View} = require 'atom'\n\nmodule.exports =\nclass CompatibleView extends ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for asserting chaining delegates works"
},
{
"from": "human",
"value": "QUnit.module \"Batman.Object delegation\",\n setup: ->\n class @MyObject extends Batman.Object\n @accessor 'address', -> Batman(number: '123', zip: '90210', country: Batman(cou... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move outside of component scope\n"
},
{
"from": "human",
"value": "noflo = require 'noflo'\n\n# @runtime noflo-browser\n\nexports.getComponent = ->\n c = new noflo.Component\n c.inPorts.add 'graphstore',\n datatype: 'object'\n\n getGraphs = ->\n graphIds = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable Google Plus, native bindings are adequate.\n"
},
{
"from": "human",
"value": "\nconfigs = []\n\nconfigs.push\n name: \"Google Plus\"\n comment:\n \"\"\"\n This uses Google Plus' native j/k bindings (which work well), but adds the ability to activate ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add allow_single_deselect to chosen init\n"
},
{
"from": "human",
"value": "$ ->\n $('[data-toggle=\"chosen\"]').each ->\n $this = $(this)\n\n data = $this.data()\n data.search_contains = true\n\n $this.chosen data\n"
},
{
"from": "gpt",
"va... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable tracing in example app\n"
},
{
"from": "human",
"value": "module.exports = do (Marionette, $) ->\n { UIRouterMarionette } = require('../router')\n App = new Marionette.Application\n Marionette.Behaviors.behaviorsLookup = ->\n # Import Marionette behavio... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.