conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Use correct key in Metrics.timing\n"
},
{
"from": "human",
"value": "StatsD = require('lynx')\nstatsd = new StatsD('localhost', 8125, {on_error:->})\n\nname = \"unknown\"\nhostname = require('os').hostname()\n\nbuildKey = (key)-> \"#{name}.#{hostname}.#{key}\"\n\nmo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix display of admin group side menu\n"
},
{
"from": "human",
"value": "angular.module(\"admin.enterprise_groups\")\n .controller \"sideMenuCtrl\", ($scope, SideMenu) ->\n $scope.menu = SideMenu\n $scope.select = SideMenu.select\n\n $scope.menu.setItems [\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update jade template plugin to conform with new template plugin structure\n"
},
{
"from": "human",
"value": "\nasync = require 'async'\njade = require 'jade'\nfs = require 'fs'\n\n{TemplatePlugin} = require './../templates'\n\nclass JadeTemplate extends TemplatePlug... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make no idea dog appear more often\n"
},
{
"from": "human",
"value": "# Description:\n# Displays a \"I Have No Idea What I'm Doing\" image\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# hubot no idea\n#\n# Notes:\n# No idea...\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use status header instead of status code\n"
},
{
"from": "human",
"value": "path = require 'path'\nurl = require 'url'\nrequest = require 'request'\nfs = require './fs'\nTextMateTheme = require './text-mate-theme'\n\n# Convert a TextMate theme to an Atom theme\nmodu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix indentation; bootstrap carousels data\n"
},
{
"from": "human",
"value": "PartnerCategories = require '../../collections/partner_categories'\nBackbone = require 'backbone'\nQ = require 'bluebird-q'\nPrimaryCarousel = require './components/primary_carousel/fetch'\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set default integratins as inactive by default\n"
},
{
"from": "human",
"value": "if not RocketChat.models.OAuthApps.findOne('default-zapier')\n\tRocketChat.models.OAuthApps.insert\n\t\t_id: 'default-zapier'\n\t\tname: 'Default: Zapier'\n\t\tdefault: true\n\t\tclien... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use crypto module for token generation\n"
},
{
"from": "human",
"value": "module.exports = ProjectTokenGenerator =\n\n\treadOnlyToken: () ->\n\t\tlength = 12\n\t\ttokenAlpha = 'bcdfghjkmnpqrstvwxyz'\n\t\tresult = ''\n\t\tfor _n in [1..length]\n\t\t\ti = Math.floor(M... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include comma as a word boundary\n"
},
{
"from": "human",
"value": "SpellChecker = require 'spellchecker'\n\nmodule.exports =\n findMisspellings: (text) ->\n wordRegex = /(?:^|[\\s\\[\\]])([a-zA-Z']+)(?=[\\s\\.\\[\\]:]|$)/g\n row = 0\n misspellings = []\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return absolute paths from $native.traverseTree()\n\nPreviously relative paths were generated even though\nthings like fs.list() and fs.listTree() would just\nrecombine them with the root path.\n\nCloses #391\n"
},
{
"from": "human",
"value": "fs = require 'fs'\n_ =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make typeahead a bit faster\n"
},
{
"from": "human",
"value": "define 'app/search', ['typeahead.bundle', 'app/p13n', 'app/settings'], (ta, p13n, settings) ->\n lang = p13n.get_language()\n engine = new Bloodhound\n name: 'suggestions'\n remote:\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove ES6 compat from Chrome-app source\n"
},
{
"from": "human",
"value": "require(\"./primitive\")\n\nrequire(\"./es6compat\")\nrequire(\"./es7compat\")\nrequire(\"./bbjscompat\")\nrequire(\"./bootbox-promise\")\nrequire(\"./windowcontroller\")\n\nMainController =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add search with regex option tests to SearchModel spec"
},
{
"from": "human",
"value": "RootView = require 'root-view'\nSearchModel = require 'search-in-buffer/lib/search-model'\n\ndescribe 'SearchModel', ->\n [goToLine, editor, subject, buffer] = []\n\n beforeEac... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove superfluous change to controller state from within samus controller action system\n"
},
{
"from": "human",
"value": "\nmodule.exports =\n config:\n filters: ['samus','short_beam','controller']\n\n update: (comps,input,u) ->\n samus = comps.get('samus'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use a times symbol, not an x\n"
},
{
"from": "human",
"value": "$ ->\n $('#reload-consts').on 'click', ReloadK\n sources = Bacon.combineTemplate\n history: GameState.history\n position: GameState.historicalPosition\n sources.onValue (x) ->\n {history, po... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test case for accepting object arguments"
},
{
"from": "human",
"value": "describe \"Overloading functions\", ->\n overloadableFunc = null;\n\n beforeEach ->\n overloadableFunc = new Overloadable();\n\n it \"should not allow for passing incorrect ar... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test d'existence avec un élément dans la base.\n"
},
{
"from": "human",
"value": "should = require('should')\nasync = require('async')\nClient = require('../common/test/client').Client\napp = require('../server')\n\n\nclient = new Client(\"http://localhost:8888/\")\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for back button being broken in web apps\n\nIt was still referring to the tw.bridge rather than calatrava.bridge\n"
},
{
"from": "human",
"value": "root = this\nroot.calatrava ?= {}\ncalatrava = root.calatrava\n\n# Hide all the sub-pages when first launching the... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test mocks (again...) out of sync.\n"
},
{
"from": "human",
"value": "#= require three.min\n#= require roofpig/Pieces3D\n\nmock_scene = { add: -> }\nmock_settings = { hover: 1.0, colors: { to_draw: -> { real: true, color: 'red'} } }\n\ndescribe \"Pieces3D\", ->\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add SAT, salesforce, cck12 design projects\n"
},
{
"from": "human",
"value": "# Description:\n# Receives Pivotal story activity and emits to pivotal-story-tagger\n# when a new story is created\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Comma... | coffeescript | chosen |
[
{
"from": "system",
"value": "Write files when you have both name and content\n"
},
{
"from": "human",
"value": "fs = require 'fs'\nnoflo = require '../../lib/NoFlo'\n\nclass WriteFile extends noflo.Component\n constructor: ->\n @data = null\n @filename = null\n\n @inPorts =\n in:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revise for json change in api\n\nit now comes back like \r\n```json\r\n{\"id\": 384, \"thought\":\"If they ever have a haunted house for dogs, I think a good display would be a bathtub full of soapy water.\"} \r\n```"
},
{
"from": "human",
"value": "# Description:\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove var definition - not needed\n"
},
{
"from": "human",
"value": "# Outputs bot uptime\n\nmodule.exports = (robot) ->\n\n start = new Date().getTime()\n\n robot.respond /uptime/i, (msg) ->\n uptimeMe msg, start, (uptime) ->\n msg.send uptime\n\nnumPlur... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update shipping-rate-selection directive to handle error when retreiving rates\n"
},
{
"from": "human",
"value": "Sprangular.directive 'shippingRateSelection', ->\n restrict: 'E'\n templateUrl: 'shipping/rates.html'\n scope:\n order: '='\n controller: ($scope... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make usernames available in project overview so usernames can be shown.\n"
},
{
"from": "human",
"value": "Router.configure\n layoutTemplate: 'layout'\n loadingTemplate: 'loading'\n notFoundTemplate: 'notFound'\n waitOn: -> [Meteor.subscribe('projects'), Meteor.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test to ensure that aliases exist\n"
},
{
"from": "human",
"value": "module \"PubSub\"\n\nrequire [\"core/pubsub\"], (pubsub) ->\n\n test \"simple on/fire\", ->\n\n memoValue = null\n expectedMemo = \"expected\"\n\n pubsub.on \"stim\", (memo) -> memoVa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add more static file types to be copied to public folder\n"
},
{
"from": "human",
"value": "path = require 'path'\nglob = require('glob')\nfs = require 'fs-extra'\nasync = require 'async'\nparsePath = require 'parse-filepath'\n_ = require 'underscore'\n\nglobPages =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update localstore's get function to actually retrieve the given element when specified\n"
},
{
"from": "human",
"value": "# ----------------------------------------------------------\n#\n# LocalStore (util)\n# Serialize key,value into localstorage with cookies fallb... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use https endpoint for Embedly oEmbed\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nqs = require 'querystring'\nmoment = require 'moment'\nBackbone = require 'backbone'\n{ EMBEDLY_KEY } = require('sharify').data\n{ crop, resize } = require '../resizer... | coffeescript | chosen |
[
{
"from": "system",
"value": "Access hash with hash.value in coffee\n\n"
},
{
"from": "human",
"value": "options = {}\noptions['font_size'] = 10\noptions['font_family'] = 'Arial'\nconsole.log options\n"
},
{
"from": "gpt",
"value": "options = {}\noptions.font_size = 10\noptions.font_... | coffeescript | chosen |
[
{
"from": "system",
"value": "FIX: Remove ability to deselect task from task list\n"
},
{
"from": "human",
"value": "angular.module('doubtfire.units.states.tasks.viewer.directives.unit-task-list', [])\n\n.directive('unitTaskList', ->\n restrict: 'E'\n templateUrl: 'units/states/tasks/viewer/di... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for possible password exploit\n\nThe password is stored in the session, so in the client console it could easily be return by \"getting\" the session value for. This could be done by anybody who get's access to the browser.\r\nWorkaround: unset the password, cause it is no ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use local resource path variable"
},
{
"from": "human",
"value": "path = require 'path'\nos = require 'os'\nLessCache = require 'less-cache'\n{Subscriber} = require 'emissary'\n\ntmpDir = if process.platform is 'win32' then os.tmpdir() else '/tmp'\n\nmodule.exports ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Cut out superfluous code, things are much smoother now\n"
},
{
"from": "human",
"value": "# Description:\n# Card image fetcher for Magic: The Gathering cards\n#\n# Commands:\n# [[<card name>]]\n#\n# Notes:\n# Upon failure, returns Dismal Failure\n#\n# Author:\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use relative links not full url\n"
},
{
"from": "human",
"value": "jQuery(document).ready ->\n writeanswer = (ans) ->\n jQuery(\"#answer\").html(ans)\n jQuery(\"#answer\").attr(\"class\", \"answered\")\n jQuery(\".unanswered\").attr(\"class\"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Tweak code for handling Ajax updates triggered by changing a Select\n"
},
{
"from": "human",
"value": "# Copyright 2012 The Apache Software Foundation\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in comp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the same tooltipRemove method\n"
},
{
"from": "human",
"value": "Backbone.Factlink ||= {}\n\nBackbone.Factlink.TooltipMixin =\n\n default_options:\n side: 'left'\n align: 'center'\n margin: 0\n\n tooltipAdd: (selector, title, text, options) ->\n op... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix interval in stress test\n\n- made it a reasonable 1 word/s\n"
},
{
"from": "human",
"value": "io = require('socket.io-client')\n\nurl = process.env.TEST_TARGET || 'https://snap-backend-dev.herokuapp.com' #'http://localhost:8080'\n\nusers = process.env.USERS || 5... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove Preferences, Update Defaults, Add Tools Preferences\n"
},
{
"from": "human",
"value": "Dispatch = require './dispatch'\n\nmodule.exports =\n configDefaults:\n environmentOverridesConfiguration: true\n syntaxCheckOnSave: false\n formatOnSave: true\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable harmony collections when running specs\n"
},
{
"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": "Add Elixir project dirs to Atom `ignoredNames`\n"
},
{
"from": "human",
"value": "\"*\":\n \"atom-ctags\": {}\n \"autocomplete-plus\":\n enableAutoActivation: false\n core:\n audioBeep: false\n disabledPackages: [\n \"exception-reporting\"\n \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a couple custom commands for Discuss members\n"
},
{
"from": "human",
"value": "path = require 'path'\n\n# require('web-frame').setZoomFactor(1.15)\n\noldWindowDimensions = {}\n\natom.commands.add 'atom-workspace',\n 'custom:insert-timestamp': ->\n now = new... | coffeescript | chosen |
[
{
"from": "system",
"value": "Upgrade node to v0.10.9 since atom-shell branch has been merged.\n"
},
{
"from": "human",
"value": "path = require 'path'\n\nmodule.exports =\n getAtomDirectory: ->\n process.env.ATOM_HOME ? path.join(process.env.HOME, '.atom')\n\n getResourcePath: ->\n proc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix counts with new tasks"
},
{
"from": "human",
"value": "currentProject = require 'zooniverse-readymade/current-project'\n$ = window.jQuery\n\nclassifyPage = currentProject.classifyPages[0]\n{subjectViewer, decisionTree} = classifyPage\n\n# NOTE: This is super sup... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add local cache to fetchImage() logic\n"
},
{
"from": "human",
"value": "\"use strict\"\n\nsite = require '../model/config'\ncabin = require '../model/cabin'\n\nexports.getList = (request, reply) ->\n reply.view 'list',\n site: site\n user: request.auth.crede... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary braces from container tile\n"
},
{
"from": "human",
"value": "# tael.js\n# Copyright (c) 2015 Carter Hinsley\n# MIT License\n\ntiles = [{\n type: 'container'\n}]\n\nnewTile = (parent) ->\n # Add a new tile to the `tiles` array.\n pushTile... | coffeescript | chosen |
[
{
"from": "system",
"value": "Put driver instantiation in beforeAll block\n"
},
{
"from": "human",
"value": "Gozer = require('./helpers/gozer')\n\ndescribe 'Gozer', ->\n gozer = new Gozer(port: 3002)\n page = null\n\n beforeEach ->\n page = gozer\n .visit('/')\n .resize(width: '1... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use ctrl-shift-l to select grammar\n\nThis frees up cmd-shift-l to be split selection into lines\n"
},
{
"from": "human",
"value": "'.platform-darwin .editor':\n 'cmd-L': 'grammar-selector:show'\n\n'.platform-win32 .editor':\n 'ctrl-L': 'grammar-selector:show'\n"
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load any config file before logic\n\nAny file that ends with Conf.coffee (such as testConf.coffee or charlizeConf.coffee) that\nis in the root alchemy/ directory is loaded before the logic is run. This fixes many\nbugs that would occur in previous commits.\n"
},
{
"fro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check if local storege exist\n"
},
{
"from": "human",
"value": "class CartView extends Backbone.View\n\n initialize: ->\n @listenTo @collection, \"reset update\", @render\n\n tagName: \"button\"\n\n className: \"epages-cart-button\"\n\n events:\n \"click\"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix a typo in coniferous\n"
},
{
"from": "human",
"value": "module.exports =\n label: \"Habitat\"\n key: \"habitat\"\n values: [{\n value: \"deciduous\"\n label: \"Deciduous woodland\"\n },{\n value: \"coniforous\"\n label: \"Coniforous woodland\"\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change name of deviationsRawData method\n\nNew name is deviationsrawdata to be consistent with the api endpoints\n"
},
{
"from": "human",
"value": "\nBase = require './base'\n\nclass DisturbanceInformation extends Base\n constructor: (config) ->\n @key = config.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add ? for null check\n"
},
{
"from": "human",
"value": "{_} = require 'atom'\n\nReporter = require './reporter'\n\nmodule.exports =\n activate: (state) ->\n if _.isFunction(window.onerror)\n @originalOnError = window.onerror\n window.onerror = (message, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix incorrect reference to FieldControl events\n\nThis is part of the class definition, and therefore defined on\nthe prototype.\n"
},
{
"from": "human",
"value": "define [\n '../../core'\n '../../controls'\n './base'\n], (c, controls, base) ->\n\n\n cla... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set paths before creating cache"
},
{
"from": "human",
"value": "path = require 'path'\nos = require 'os'\nLessCache = require 'less-cache'\n{Subscriber} = require 'emissary'\n\ntmpDir = if process.platform is 'win32' then os.tmpdir() else '/tmp'\n\nmodule.exports =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Prompt: Allow multiple fields to be deleted.\n"
},
{
"from": "human",
"value": "Impromptu = require './impromptu'\n\nprompt =\n # Returns the global connection to the Redis server.\n redis: Impromptu.db.client\n\n get: (id, field, fn) ->\n @redis().hget(@key(i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve app.react.Link: options and activeFor.\n"
},
{
"from": "human",
"value": "goog.provide 'app.react.Link'\n\nclass app.react.Link\n\n ###*\n @param {app.Routes} routes\n @param {app.react.Touch} touch\n @constructor\n ###\n constructor: (@routes, @... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set max checkins per session to 23"
},
{
"from": "human",
"value": "mongoose = require('mongoose')\n\ncheckinSchema = new mongoose.Schema\n user: String\n session: Number\n checkinTime: Date\n deleted: { type: Boolean, default: false }\n deletedTime: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use color mode instead of primitive square\n"
},
{
"from": "human",
"value": "{View} = require 'atom'\n\nmodule.exports =\nclass DevModeView extends View\n @content: ->\n @span class: 'inline-block icon icon-primitive-square text-error'\n"
},
{
"from": "... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the visibility of the function 'locale'\n"
},
{
"from": "human",
"value": "mapboxgl.accessToken = 'pk.eyJ1IjoibWg2MTUwMzg5MSIsImEiOiJjaWhxbTJjOGMwNGt4dHBtMjczbzhieXZkIn0.J8-B8U-8nCtqiZ2CfxbV0g'\nposition = new mapboxgl.LngLat(133.842941, 35.375086).wrap()\nmap =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use JSONP only with some IE versions\n"
},
{
"from": "human",
"value": "define 'app/settings', () ->\n\n applyAjaxDefaults = (settings) ->\n settings.dataType = sm_settings.ajax_format\n settings.cache = sm_settings.ajax_cache\n settings.json... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure state exists before reading\n"
},
{
"from": "human",
"value": "calculateAccess = (comp, props) ->\n\n model = _.result(comp, 'modelForAccess') ||\n comp.commands?.getModel()?.modelForAccess() ||\n comp.model?.modelForAccess()\n\n access... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix access to undefined root property\n\nThe ::filterDefined transform unfortunately doesn't prevent an undefined\ninitial value when applied to behaviors.\n"
},
{
"from": "human",
"value": "{Model} = require 'theorist'\nSerializable = require 'serializable'\n{find}... | coffeescript | chosen |
[
{
"from": "system",
"value": "Copy eventric js into scripts folder\n"
},
{
"from": "human",
"value": "mainBowerFiles = require 'main-bower-files'\nconcat = require 'gulp-concat'\nfilter = require 'gulp-filter'\ncommonjsWrap = require 'gulp-wrap-commonjs'\n\npickFilesByExten... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use isReverse instead of reverse in RegexAddress"
},
{
"from": "human",
"value": "Address = require 'command-interpreter/address'\nRange = require 'range'\n\nmodule.exports =\nclass RegexAddress extends Address\n regex: null\n reverse: null\n\n constructor: (patt... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow hash to match some more ids\n"
},
{
"from": "human",
"value": "class Turbolinks.Snapshot\n @wrap: (value) ->\n if value instanceof this\n value\n else\n @fromHTML(value)\n\n @fromHTML: (html) ->\n element = document.createElement(\"html\")... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for blank array\n\nSigned-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>\n"
},
{
"from": "human",
"value": "items = require(\"../build/liblol.js\").items\n\ndescribe \"items\", ->\n\n describe \"find\", ->\n\n it \"should ret... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add symbol to currency display\n"
},
{
"from": "human",
"value": "class Skr.Components.Currency extends Lanes.React.Component\n\n getDefaultProps: ->\n amount: _.bigDecimal('0.0')\n\n propTypes:\n amount: React.PropTypes.instanceOf(_.bigDecimal)\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Meetup to example config file\n"
},
{
"from": "human",
"value": "# Facebook config\nexports.facebook =\n\tappId: null\n\tsecretKey: null"
},
{
"from": "gpt",
"value": "# Facebook config\nexports.facebook =\n\tappId: null\n\tsecretKey: null\n\n# Meetu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set defaults on the inquiry model directly\n"
},
{
"from": "human",
"value": "Backbone = require 'backbone'\n{ API_URL } = require('sharify').data\n\nmodule.exports = class ArtworkInquiry extends Backbone.Model\n url: \"#{API_URL}/api/v1/me/artwork_inquiry_request\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update /roll and begin implementation of /ore\n"
},
{
"from": "human",
"value": "# Description:\n# Rolls dice!\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# hubot roll 2d6\n#\n# Author:\n# dualmoon\n\nmodule.exports = (robot) ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable SyncTeX, and 'file:line' style errors in log files\n"
},
{
"from": "human",
"value": "child_process = require \"child_process\"\npath = require \"path\"\n\nmodule.exports =\n executable: \"latexmk\"\n\n run: (args) ->\n # TODO: Add support for killing th... | coffeescript | chosen |
[
{
"from": "system",
"value": "Define droppable as an amd module\n"
},
{
"from": "human",
"value": "Sortable = require(\"./sortable\")\nDraggable = require(\"./draggable\")\nDroppable = require(\"./droppable\")\n\n$.fn.droppable = (options = {}) ->\n values = for element in this\n (new Droppa... | coffeescript | chosen |
[
{
"from": "system",
"value": ":new: Add a test for ::parse\n"
},
{
"from": "human",
"value": "describe 'linter helpers', ->\n helpers = require '../lib/helpers'\n fs = require 'fs'\n testFile = __dirname + '/fixtures/test.txt'\n testContents = fs.readFileSync(testFile).toString()\n describe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use params also when logging out.\n"
},
{
"from": "human",
"value": "ReduxRouter = require 'redux-simple-router'\n\nAPI = require 'api'\nutils = require '../utils.coffee'\nURL = require '../url.coffee'\nappActions = require './app-actions.coffee'\n\nmodule.exports =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove X-Requested-With HTTP header from defaults\n\nThis header prevents Javascript requests to other domains (e.g. https://www.googleapis.com)\r\nFixes #1"
},
{
"from": "human",
"value": "TM = angular.module 'TM', []\n\n\n# AUTH\nCLIENT_ID = '522804721863.apps.goo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix exception \"cannot read property payload from undefined\"\n"
},
{
"from": "human",
"value": "debug = require(\"debug\")(\"owfs:convert\")\nexports.extractValue = (callback) ->\n\t(error, messages) ->\n\t\tif !error\n\t\t\tif messages.length > 1\n\t\t\t\tdebug \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add log_in to mobile routes\n"
},
{
"from": "human",
"value": "#\n# /login, /sign_up and /forgot\n# Render the homepage but force open the appropriate modals\n#\n\nexpress = require 'express'\nroutes = require './routes'\n{ loginPagePath, signupPagePath,\n twitterL... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve the default build task\n"
},
{
"from": "human",
"value": "fs = require 'fs'\nmodule.exports = (grunt) ->\n\tgrunt.initConfig\n\t\tpkg: grunt.file.readJSON('package.json')\n\t\tsass: main:\n\t\t\tfiles:\n\t\t\t\t'dist/style.css': 'css/rohpod.scss'\n\t\tcopy:\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update package to use `Workspace::getActiveEditor`"
},
{
"from": "human",
"value": "module.exports =\n activate: ->\n atom.workspaceView.command \"ascii-art:convert\", => @convert()\n\n convert: ->\n # This assumes the active pane item is an editor\n sele... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set visible_id to use like query\n"
},
{
"from": "human",
"value": "class Skr.Extension extends Lanes.Extensions.Base\n\n identifier: \"skr\"\n\n # Data that is provided by lib/skr/extension.rb's\n # client_bootstrap_data method ends up here\n setBootstr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use \".\" as separator in properties names\n\nevent.project.name = \"project.name\"\n"
},
{
"from": "human",
"value": "NotificationPlugin = require \"../../notification-plugin\"\n\nclass xMatters extends NotificationPlugin\n\n # Flatten properties e.g. srcObj.proje... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add language-patch package to Atom\n"
},
{
"from": "human",
"value": "packages: [\n \"advanced-open-file\"\n \"atom-alignment\"\n \"atom-handlebars\"\n \"auto-update-packages\"\n \"docblockr\"\n \"editorconfig\"\n \"emmet\"\n \"expand-region\"\n \"language-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a snippet for Octopress code blocks\n"
},
{
"from": "human",
"value": "# Your snippets\n#\n# Atom snippets allow you to enter a simple prefix in the editor and hit tab to\n# expand the prefix into a larger code block with templated values.\n#\n# You can create a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove more naughty whitespace :lipstick:\n"
},
{
"from": "human",
"value": "path = require \"path\"\nlatexmk = require \"./latexmk\"\n\nProgressIndicatorView = require \"./progress-indicator-view\"\n\nmodule.exports =\n configDefaults:\n texPath: \"$PATH:/usr/t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Drop ie support from ribbon\n\nLooks like build might not pick that up in the correct order...\n"
},
{
"from": "human",
"value": "React = require 'react'\nNav = React.createFactory require 'antwar-default-theme/Nav'\nPaths = require('antwar-core/PathsMixin')\nrequir... | coffeescript | chosen |
[
{
"from": "system",
"value": "Arrange brush strokes around a sphere\n"
},
{
"from": "human",
"value": "fs = require 'fs'\nthree = require 'three'\n\nmodule.exports = class StrokeMesh\n\tconstructor: (scene) ->\n\t\t@nStrokes =\n\t\t\t1000\n\n\t\tuniforms =\n\t\t\tbright:\n\t\t\t\ttype: 'f'\n\t\t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add dynamic sortable placeholder height\n"
},
{
"from": "human",
"value": "taxons_template = null\n\nget_taxonomy = ->\n Spree.ajax\n url: \"#{Spree.routes.taxonomy_path}?set=nested\"\n\ndraw_tree = (taxonomy) ->\n $('#taxonomy_tree')\n .html( taxons_templat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update Templating component to public Jade API\n"
},
{
"from": "human",
"value": "noflo = require \"noflo\"\n\nclass Template extends noflo.Component\n description: \"This component receives a templating engine name, a string containing the template, and variable... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make {hide: true, admin: false} as default option.\n"
},
{
"from": "human",
"value": "runas = require('bindings')('runas.node')\n\nmodule.exports = (command, args=[], options={}) ->\n options.hide ?= false\n options.admin ?= true\n\n runas.runas(command, args, op... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update .workspace class with custom element\n\nBecause of the update with the custom elements, i noticed that `.workspace` hasn't been updated in the `keymap.cson`, but `.editor` has (to `atom-text-editor`)."
},
{
"from": "human",
"value": "# Your keymap\n#\n# Atom ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include margin in width and height calculations.\n"
},
{
"from": "human",
"value": "class Layout\n constructor: (@fn) ->\n this.resize()\n this.listen()\n setTimeout (=> this.resize()), 250\n\n resize: ->\n this.fill '.x-fill', 'outerWidth', 'width'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set clickable class if onClick is given\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\nclassnames = require 'classnames'\n_ = require 'underscore'\n\nmodule.exports = React.createClass\n displayName: 'Icon'\n p... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make base stylesheet loading work again\n\nWe need to watch the absolute path\n"
},
{
"from": "human",
"value": "{fs} = require 'atom'\npath = require 'path'\nWatcher = require './watcher'\n\nmodule.exports =\nclass BaseThemeWatcher extends Watcher\n constructor: -... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add new gulp files to tests\n"
},
{
"from": "human",
"value": "path = require 'path'\nhelpers = require('yeoman-generator').test\n\ndescribe 'app', ->\n beforeEach (done) ->\n helpers.testDirectory path.join(__dirname, 'app.tmp'), (err) =>\n return done(err... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use octicon for README files\n"
},
{
"from": "human",
"value": "{View} = require 'space-pen'\n$ = require 'jquery'\nGit = require 'git'\nfs = require 'fs'\n\nmodule.exports =\nclass FileView extends View\n\n @content: ({file} = {}) ->\n @li class: 'file entry', ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make a test fail to test circle ci\n"
},
{
"from": "human",
"value": "MochaWeb?.testOnly ->\n describe \"Rock person function\", ->\n\n if Meteor.isClient\n it \"should not exist on the client\", ->\n chai.assert.isUndefined Rock.person\n return... | coffeescript | chosen |
[
{
"from": "system",
"value": "Adjust query for fetchStocks to be more performant.\n"
},
{
"from": "human",
"value": "Promise = require 'bluebird'\n{SphereClient} = require 'sphere-node-sdk'\n\nclass FetchStocks\n\n constructor: (@logger, options = {}, @channelKey) ->\n @client = new SphereCl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix in reply to link for tent.is\n"
},
{
"from": "human",
"value": "_.extend TentStatus.Helpers,\n postUrl: (post) ->\n return unless post and post.get\n entity = post.get('entity')\n\n if (new HTTP.URI entity).hostname == TentStatus.config.domain_entity.h... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix child process helper (specs)\n"
},
{
"from": "human",
"value": "gutil = require 'gulp-util'\nchild_process = require 'child_process'\n\nmodule.exports = (name, command, next = ->) ->\n child_process.exec(\n command\n (error, stdout, stderr) ->\n ... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.