query_id
stringlengths
32
32
query
stringlengths
7
29.6k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
8193bd2599503be2567b49ddee05206c
Description: Function used to monitor the ipfs swarm Input: ipfs: reference to the ipfs client db: referenct to a sql database connectionused to save the monitoring results
[ { "docid": "95284dec72fe55bb35abfe51b42c0c1d", "score": "0.6396516", "text": "async function monitorSwarm(ipfs,db){\n\n var SQLtime = DB.sqlDate();\n try{\n const peersInfos = await ipfs.swarm.peers({verbose:true,latency:true,direction:true}) //call the IPFS SWARM PEERS command\n peersInfos.forE...
[ { "docid": "46bfa2a00ea5e0c38985e34f19318cd1", "score": "0.6198734", "text": "async function main (IPFSdaemon,DBhost,DBport,DBuser,DBpsw,DBname,interval) {\n interval = interval * 60000 //intervals in millisec between monitoring sessions\n var db = DB.connectDB(DBhost,DBport,DBuser,DBpsw,DBname) /...
ae4b7332cbb646fd1d84bfac60be92a6
Enables Metamask to make a conncetion with web3
[ { "docid": "e9e0597a1296f59524b4b3997feda5ea", "score": "0.54924", "text": "async function EnableEthereum() {\n web3.eth.getAccounts(async function (err, accounts) {\n if (accounts.length > 0) {\n SetConnectionStatus(accounts[0]);\n console.log(await Get3boxAccountFromAdr...
[ { "docid": "508b70872237d079612196eef8202f4c", "score": "0.730068", "text": "async loadWeb3(){\n if(window.ethereum){\n window.web3 = new Web3(window.ethereum)\n //console.log(window.web3)\n await window.ethereum.enable()\n } else if(window.web3){\n window.web3 = new...
5c7c8cba45f7ba886d460fed4050018b
a function that gathers tile data within a box formation (5 points; 1st = user >> calculate the starting point based on fixed set of tiles in distance from user >> mark the scan position i.e a=topLeft/ScanStartPoint and gather tile data from x amount of tiles on the X axis and y amount of tiles on the Y axis. Both shou...
[ { "docid": "d690b897a797506452cfe199a2a001ed", "score": "0.0", "text": "function Warp(){}", "title": "" } ]
[ { "docid": "a04e4d90273dc0484ede196e65ebe2fe", "score": "0.6538742", "text": "boundingBox() {\n let boxes = [];\n\n this.iterateOverTiles((tile, currX, currY) => {\n // empty tiles should not be included\n if (tile !== \"0\") {\n let bb;\n\n if (tile === \"1\") {\n ...
ffe2f525463d209c9639717f657c76b8
Funcion llamada a cada frame
[ { "docid": "f53b1b85cb51c513f949e9db4edaca03", "score": "0.0", "text": "function tick(){\n\nrequestAnimationFrame(tick);\ndrawAll(); //esta funcion llama a los objectos que van a ser dibujados\n//Las funciones de animacion deben ser llamadas acá\nanimate_rueda();\nanimate_sillas();\n}", "title": "" ...
[ { "docid": "460378f558cb46d619f9c4166b41df56", "score": "0.70439076", "text": "function frame() {\n drawFrame();\n\n frameIndex++;\n\n if (frameIndex === 15) {\n frameIndex = 0;\n }\n}", "title": "" }, { "docid": "5aa5431a4efa856f1defbb33fccb5547", "score": "0.7042933"...
7ba647a568883ea03a763170d48a269d
pick the locale from the array try ['enau', 'engb'] as 'enau', 'engb', 'en', as in move through the list trying each substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
[ { "docid": "37dd416755c4006f1b9531bb4c6b7a1a", "score": "0.0", "text": "function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalize...
[ { "docid": "f8e3073f64ca049d08490fc227a66426", "score": "0.71346146", "text": "function chooseLocale(names) {\n let next;\n let locale;\n let i = 0;\n while (i < names.length) {\n const split = normalizeLocale(names[i]).split('-');\n let j = split.length;\n next = normal...
79f0e8e8e3a9eece347b53893c6b1c1a
Rotate an object around an arbitrary axis in object space
[ { "docid": "97c93a086adf8905500e49aca7b139d7", "score": "0.7490373", "text": "static rotateAroundObjectAxis(object, axis, radians) {\n GameUtils.rotObjectMatrix = new THREE.Matrix4();\n GameUtils.rotObjectMatrix.makeRotationAxis(axis.normalize(), radians);\n\n // old code for Three....
[ { "docid": "8c8cffb9f59212eb26c3ff0192f7dd55", "score": "0.76930106", "text": "rotate(angle, axis, point) {\n // translate object to the origin before rotation\n if(point != null){\n this.translate(point[0],point[1],point[2]);\n }\n \n // perform rotation\n ...
8e4ff4c916e06e4482a53dc8f448a718
This function will load locale and then set the global locale. If no arguments are passed in, it will simply return the current global locale key.
[ { "docid": "38124867e08d09dda7aed9d57520aa65", "score": "0.0", "text": "function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values...
[ { "docid": "e2a7564a9c663b294087790912e16fb4", "score": "0.7249536", "text": "function getSetGlobalLocale (key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n }\n else {\n data = defineLocale(key, values);\n ...
973c5a52dc6601b6afe6c08638c95484
Check input string is correct hex string or not
[ { "docid": "b37b39f55ec09f507a90744328e691eb", "score": "0.76435316", "text": "function isCorrectHexStr(str) {\n if (/^(\\-|\\+)?([0-9A-Fa-f]+|Infinity)$/.test(str)) {\n return true;\n }\n return false;\n}", "title": "" } ]
[ { "docid": "79cb603410a266efb9ec0941dfaa8a08", "score": "0.7998675", "text": "function isHex(string)\r\n{\r\n for (i=0; i<string.length; i++)\r\n {\r\n if (isNaN(parseInt(string.charAt(i), 16)))\r\n {return false;}\r\n }\r\n return true;\r\n}", ...
e492b81f7537eb7e59cac4bb8667863e
Populate filters and axes selector
[ { "docid": "b3f531962fcd1c45ef093da52224fa11", "score": "0.0", "text": "function popControl() {\n\tvar prevBu = rawDataObject.prevBu,\n\t\txName = rawDataObject.xList[0],\n\t\tyName = rawDataObject.yList[0],\n\t\tbuName = rawDataObject.buName,\n\t\tdata = rawDataObject.dataObject.slice(),\n\t\tnewBu = $...
[ { "docid": "2d4a3b5f21b6e07a5ba2c6cd502a2b00", "score": "0.7063487", "text": "setupSelectFilters() {\n const selectFilters = document.querySelectorAll(`cagov-chart-filter-select.js-filter-${this.chartConfigKey} select`);\n\n selectFilters.forEach((selectFilter) => {\n selectFilter.addEventLis...
5167b82683b9b21bb29a6d4844f00933
adds the del fn to a del button
[ { "docid": "0f5c1f0f6f38a362d5425fd38631c94a", "score": "0.7853695", "text": "function adddelBtnFn(delBtn) {\n\tdelBtn.addEventListener(\"click\", function() {\n\t\tvar listItem = delBtn.parentElement;\n\t\tdeleteListItem(listItem);\n\t})\n}", "title": "" } ]
[ { "docid": "579dbd3cd06fc1a28058defae6725f2f", "score": "0.76384723", "text": "function delbutn(id) {\n\t\treturn $(\"<button id='del_\" + id\n\t\t\t\t\t\t+ \"' title='Delete this archiving task.'>Del</button>\")\n\t\t\t.button({\n\t\t\t\ticons : {\n\t\t\t\t\tprimary : \"ui-icon-trash\"\n\t\t\t\t},\n\t\...
36763c2fbf93a6ef544b52b2cd0b3032
Function: exportGroupRecursively Usage: export all group of layer to a file Input: document or layerset Return: file(s)
[ { "docid": "085ee7c7a8aecb2896ea830976ad302d", "score": "0.74784786", "text": "function exportGroupRecursively(exportOptions, dupObj, oriObj, dupDocRef) {\n setInvisibleAllLayerSets(dupObj, false);\n\n for (var i = 0; i < dupObj.layerSets.length; i++) {\n if (exportOptions.visibleOnly)\n ...
[ { "docid": "017f1244cba5afa5d58deed21e7eea80", "score": "0.7073268", "text": "function exportSubgroups() {\n if (!outFolder.exists) outFolder.create();\n var savedState = app.activeDocument.activeHistoryState;\n\n // Stores saved layer info: name, coordinates, width and height\n var lyrInfo ...
c37f1a251ba1687aebf3c28dd4967d4c
Check email address validity
[ { "docid": "1aee9c9bf039584099708fc37b82caad", "score": "0.0", "text": "function CheckEmail(email) {\r\n\t\tif (email.search(/^[a-z0-9\\'\\-_]+[a-z\\'0-9\\-_.]*@[a-z0-9\\-_]+[a-z0-9\\-_.]*\\.[a-z]{2,4}$/i) == -1) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" } ]
[ { "docid": "d288a16f3f10ef481bbfc308e3db349d", "score": "0.81051445", "text": "function validateEmail(email){}", "title": "" }, { "docid": "50acda036cdc8b0f8fb880370629214f", "score": "0.80743414", "text": "function validateEmail(address) {\n\tvar filter = /^[\\w\\-\\.\\+]+\\@[a-zA-Z...
5933e35b3c2d55dbe41524cfa4077ce6
Recursively creates a tree that contains the given tree.
[ { "docid": "526d658a346bc93a77d9a831b1c12d73", "score": "0.0", "text": "function parentise(tree, h)\n{\n\tif (h === tree.height)\n\t{\n\t\treturn tree;\n\t}\n\n\treturn {\n\t\tctor: '_Array',\n\t\theight: h,\n\t\ttable: [parentise(tree, h - 1)],\n\t\tlengths: [length(tree)]\n\t};\n}", "title": "" ...
[ { "docid": "0a35ef965c37d24e4df4aaaf3f9993c6", "score": "0.7117637", "text": "function constructTree() {\n\n}", "title": "" }, { "docid": "66843dc129a63c9a7aef943a3544039a", "score": "0.7069809", "text": "function createTree() {\n // A function that adds children to a node\n ...
eda302d414eb54cedb9eb6b7e8b6d033
Move numbers to the up side
[ { "docid": "97005987be8abc44173f9b259c081a32", "score": "0.69096965", "text": "function moveUp() {\n\tfor (let i = 0; i < WIDTH; i++) {\n\t\tcolumn = removeZeros(FIELD.map((e) => e[i]));\n\t\tcolumn = slideLeft(column);\n\t\tfor (let j = 0; j < HEIGHT; j++) {\n\t\t\tFIELD[j][i] = column[j];\n\t\t}\n\t}\...
[ { "docid": "220434f89f7f468ab1b453fef9fbe4b5", "score": "0.6970587", "text": "function moveUp() {\n\t\t var newIndexEmptyCell = +emptyCell.style.order + numberOfCellsInRow;\n\t\t if(newIndexEmptyCell <= numberOfCells) {\n\t\t \texchangeEmptyCellByOrder(newIndexEmptyCell);\n\t\t }\n\t}", "title": "" ...
f9dd605b7571d555c993a0ab0a7b8e88
Calculates the threshold from a connection's middle which fits the twothirdregion
[ { "docid": "9b39033fc216d95d0a67a7172be93e6a", "score": "0.63141733", "text": "function calculateIntersectionThreshold(connection, intersection) {\n var waypoints = connection.waypoints,\n relevantSegment, alignment, segmentLength, threshold;\n\n if (intersection.index <= 0 || intersection....
[ { "docid": "3467c83e21eb62eda60063f23571ba02", "score": "0.5630671", "text": "function calculateThreshold(maximum) {\n\t\t\t return {\n\t\t\t \tmin: isPercent ?\n\t\t\t \t\tmaximum * parseFloat(distance) / 100 :\n\t\t\t \t\tparseFloat(distance),\n\t\t\t \tmax: isPercent ?\n\t\t\t\t\t m...
4b738b70d5472c15eb334600b656e5f8
Tokenizer object Tokenizes a formula into a stream of token strings.
[ { "docid": "456bfb6bc956f6d50d7ce1e208b2a0a2", "score": "0.53852415", "text": "function Tokenizer(str) {\n\tvar i = 0;\n\t\n\t// Returns the index of the next character to tokenize.\n\tthis.position = function() {\n\t\treturn i;\n\t};\n\t\n\t// Returns the next token as a string, or null if the end of t...
[ { "docid": "61e158f26b3075c8886e8205142b87d1", "score": "0.6529383", "text": "function makeTokenizer(rules) {\n function compileRE(re) {\n return new RegExp('^'+re);\n }\n return function (input) {\n var trules = rules.tokens.map(rule => [compileRE(rule[0]), rule[0], rule[1]]);\n ...
fcf851b08dfdb9339ee201b03b66c036
get value from owl namespace
[ { "docid": "377c559fc3f16398281eb3cd1b963406", "score": "0.6386421", "text": "function Get(element, name) {\n\t\treturn (Exists(element, name) ? element.owlP[name] : null);\n\t}", "title": "" } ]
[ { "docid": "3f87dc506e26ead8af687dc4741fe438", "score": "0.64669865", "text": "function getXMPValue(dom, ns, property)\r\n {\r\n var el = dom.getElementsByTagNameNS(ns, property);\r\n if(el.length && el[0].hasChildNodes())\r\n return el[0].firstChild.nodeValue;\r\n\r\n var list = dom.getE...
b835fcc3e35cd040ba22cbf2edb94e16
Formating the date for life planner
[ { "docid": "3cd0930b36a618a65bef05d0b1db4920", "score": "0.0", "text": "function ChangeFormatofDate(date) {\n\tvar date1 = date;\n\tdate1 = date1.split(\"-\");\n\tcurrdate = date1[1] + \"/\" + date1[0] + \"/\" + date1[2];\n\treturn currdate;\n}", "title": "" } ]
[ { "docid": "1529ab643a144e92d2bf34af0fad0aee", "score": "0.7323226", "text": "format_date_display() {\n let date = this.state.date;\n let year = date.getFullYear();\n let month = date.getMonth() + 1;\n let dt = date.getDate();\n let return_str = \"\";\n if (dt < 10) {\n dt = \"0\"...
1126736253b9a976d2c70d645116c6b2
Sort a header object by its title.
[ { "docid": "fc8ccce082c863bf686b800b8c45fe1e", "score": "0.7680153", "text": "function HeaderSort(headers){\n for(let key in headers){\n if(headers.hasOwnProperty(key)){\n let ordered = headers[key].slice(0);\n ordered.sort((a,b) => {\n ...
[ { "docid": "fdf45bc4a9e81b243ef7ae21d0e5d72b", "score": "0.66510046", "text": "sortTitle(a, b) {\n var nameA = a.title.toUpperCase();\n var nameB = b.title.toUpperCase();\n if (nameA < nameB) {\n return -1;\n }\n if (nameA > nameB) {\n return 1;\n...
e4967389f81fb4009f8d28e338f9047d
Assumes there is no parent namespace.
[ { "docid": "16c685ff344287192f7d6cef65d13682", "score": "0.0", "text": "function getIntrinsicNamespace(type) {\n switch (type) {\n case 'svg':\n return SVG_NAMESPACE;\n case 'math':\n return MATH_NAMESPACE;\n default:\n return HTML_NAMESPACE;\n }\n}", "title": "" } ]
[ { "docid": "5d307de95b9f3dd5b5775fa5defc5489", "score": "0.6232153", "text": "static findNamespaceIn(_namespace, _parent) {\n for (let prop in _parent)\n if (_parent[prop] == _namespace)\n return prop;\n return null;\n }", "title": "" ...
d0032609f31291acc53861cc4bcad8ee
FUNCTIONS FOR VIEWER/CONTROLLER LIFECYCLE INIT
[ { "docid": "5aee5e015fc2806bee1f23482a441e33", "score": "0.0", "text": "function init() {\n logger.info('init called');\n $.pricing.init({\n model : $.currentProduct\n });\n $.product_id.init();\n $.render();\n}", "title": "" } ]
[ { "docid": "d0b47921c10b238e519325056295be0a", "score": "0.7092921", "text": "function init() {\n initView();\n initProgramEnvironment();\n initEvents();\n initProgramForms();\n }", "title": "" }, { "docid": "27045ea0cd4407b56748ce89dde0d063", "score": "0.7...
fd302fc2eb0a4b767a89d5640696e1f2
delete a poll option
[ { "docid": "96168b21a6d9ad8d0ffcb241e474fce6", "score": "0.6127655", "text": "function delete_option(self) {\n self.parent().parent().fadeOut().remove();\n //renumber the options\n var i = 0;\n $('.option_number').each(function() {\n i++;\n $(this).text(...
[ { "docid": "6e056559024254eb554e335bc586b93f", "score": "0.7065246", "text": "rmOption() {\n this.options.pop();\n }", "title": "" }, { "docid": "f2e63a8b8fc5ec3abda51acffe49556c", "score": "0.6905668", "text": "removeOption() {\r\n this.options.splice(-1, 1);\r\n ...
119620a6bc1415a2baf1ba85c142e97c
Use of this source code is governed by a BSDstyle license that can be found in the LICENSE file. > Original file : MODIFIED by Sarah Marsh Event listner for clicks on the learn button for each word
[ { "docid": "5a74d48cfd47a8ce2972cc1c95e8840c", "score": "0.0", "text": "function clickOpenTab(id) {\n chrome.storage.sync.get('urls', function(items) {\n if(chrome.runtime.lastError) {\n } else {\n urls = items['urls'];\n chrome.tabs.create({\n sele...
[ { "docid": "1fd9e2a72319c70c32da4a0c11150911", "score": "0.6425657", "text": "function listener() {\n let allSpans = document.querySelectorAll(\".textSpan\")\n for (const span of allSpans) {\n const word = span.innerText\n span.addEventListener(\"click\", () => { clicks(word) })\n ...
7da6e36fae0d585f30a5298b864f68f5
Adds or removes an outline on the event target
[ { "docid": "edc962f000c6f7f2022eee854e85790e", "score": "0.0", "text": "static formClick(event, color = \"red\") {\n var component = event.target;\n\n if (event.metaKey && event.shiftKey==false) {\n component = event.target;\n\n if (\"style\" in component && \"border\" in component.style...
[ { "docid": "ea764d3d1fcba93aee3453e4846049db", "score": "0.6855625", "text": "function outlineElement(event) {\r\n\tvar elem;\r\n\tif($type(event) == 'element') {\r\n\t\telem = event;\r\n\t} else {\r\n\t\tvar e = new Event(event).stop();\r\n\t\telem = new Element(e.target);\r\n\t\tif(elem.className && e...
4cdc39b3b94a6477009d0759e46cf88c
Stop the game, broadcast the result
[ { "docid": "cc617f95def3ab998bef33414151b1f4", "score": "0.6118654", "text": "function stop(user){\n if (timer) {\n clearInterval(timer);\n ingame = false;\n user = user || { name: \"nobody\" }\n broadcastStop(user);\n \n // start new game\n setTimeout...
[ { "docid": "2942a70551680d0910c3348c676757a7", "score": "0.7000893", "text": "Stop() {}", "title": "" }, { "docid": "768c27ca3975021ad92f412d7f416f8b", "score": "0.6998168", "text": "function broadcastStop(user){\n server.broadcast('stop', {\n winner: user\n });\n}", ...
090b33ef076ed1661b87afc84e69eb8c
Switches display of comparison blocks to visible from hidden for a second
[ { "docid": "3225d0800fb2727f487cd475ceed7aa4", "score": "0.6680848", "text": "function showComparisonDataBrief() {\n \n // Show the comparison data\n showComparisonData();\n\n // Show the comparison data for a period of time, then hide it\n setTimeout(hideComparisonData, 1000);\n\n}", ...
[ { "docid": "c117a5fc4a1d32e325c1d9cfb2fbd2e4", "score": "0.6853482", "text": "function displaySwitching(diff){\n\tif(diff === 3){\n\t\tfor(i = 3; i < 6; i++){\n\t\t\tsquares[i].style.display = \"none\";\n\t\t}\n\t\treturn;\n\t}\n\tif(diff === 6){\n\t\tfor(i = 3; i < 6; i++){\n\t\t\tsquares[i].style.disp...
3937afb8117ac219cb11b24d61946091
A shortcut action creator for clearing out the whole collection and clearing load state.
[ { "docid": "7b8acbb1564bcf4f4089dd1f3baee81e", "score": "0.6593827", "text": "resetAll() {\n return (dispatch) => {\n dispatch(this.loadState('new'))\n dispatch(this.replaceCollection(this.opts.defaultState))\n }\n }", "title": "" } ]
[ { "docid": "cf9f42c8806ab21d793b393cd45b154a", "score": "0.69514", "text": "clear()\n {\n this.store.clear();\n }", "title": "" }, { "docid": "2c8f9adf248a3155ba2035446fc5f3c3", "score": "0.69139785", "text": "clear() {\n this.sortKey = null;\n this.data = [];\n ...
77045fe040e46f7ace1b860c0a5ee5b3
check if an integer array is arithmetic sequence 1,2,3,4,5,6,7,8 => true 1,3,5,7,9 => false array may not be sorted
[ { "docid": "ce67c4a6d8f3f6b83c0fa473eac873b8", "score": "0.7425606", "text": "function isArithmetic(arr) {\n \n // Notes:\n // in a for loop, we can check every single iteration\n // array[i] === i\n // - what if there are 100 items in array?\n // - what if we are given 5,6,7,8,9? => true\n // - ...
[ { "docid": "32a8dd243cf83e46c8b366a24ae66cf9", "score": "0.7059439", "text": "function includes1to9(array) {\n // SH: Just a reminder that .sort() is a mutative method. I would use slice to make a copy first, just in case you want to use the inputted array for something after. Ie:\n // let sortedA...
317241fd7bae5dfb389fe2884731399c
this comment is to test git on new hp laptop
[ { "docid": "c85ac0c160f60841444e3e15fa4a7a84", "score": "0.0", "text": "function App() {\n return (\n <Router>\n <div className=\"App\">\n <Navbarr />\n <Switch> \n <Route path=\"/\" exact component={About} />\n <Route path=\"/projects/new\" component={Projects} ...
[ { "docid": "7fbecb55120e96ccdec7a4b68d4681d0", "score": "0.6565653", "text": "function checkForGit(url) {\n\turl = stripTrailingSlash(url);\n\t\n\t//big ole list\n\tvar gitURL = url + \"/.git\";\n var headURL = url + \"/.git/HEAD\";\n var configURL = url + \"/.git/config\";\n\tvar ignoreURL = url ...
41f5d2fc03d115b14f2cb6943939cc7c
FUNCION PARA DEVOLVER CARRITO LIMPIO SIN REPETIDOS
[ { "docid": "7e9c931a61b370fc7098016f518da765", "score": "0.0", "text": "function devolverCarritoLimpio(){\n let carritoSinRepetidos = [];\n \n for(item of mangas){\n let x = carrito.find(el => el.id === item.id)\n if(typeof x == \"undefined\"){\n }else{\n carrito...
[ { "docid": "831f83ba890518744c75c72bd688f34f", "score": "0.65211457", "text": "unir(listaDeParticulas) {\n let distanciaVecindario = 50;\n let sum = createVector(0, 0);\n let count = 0;\n for (let i = 0; i < listaDeParticulas.length; i++) {\n let d = p5.Vector.dist...
9ab3afa6e74f2fdf07f54b93dfe74968
define checkAllFields(); all fields are not empty & all format are correct then valid
[ { "docid": "a93ac6c68a2e8f3c73fe8bc25dafeef3", "score": "0.0", "text": "function checkAllFields() { \n validateInput_name();\n\n let inputIsValid_carYear = validateInput_carYear();\n\n //car make\n let inputIsValid_carMake = validateInput_carMake();\n\n //car model\n ...
[ { "docid": "4dea082b7229acf96ed779cccbb8c29b", "score": "0.7403847", "text": "validateFields() {\n const { description, amount, date } = Form.getValues() //salvando os valores dos inputs em uma variável\n\n if (description.trim() === \"\" ||\n amount.trim() === \"\" ||\n ...
4c083f86a740aee403499b7bfb4bdc44
show experience based on value of currentItem
[ { "docid": "88f86ff2acbf55c67d157d351094afdb", "score": "0.71590954", "text": "function showExperience(){\r\n const item=experience[currentItem];\r\n img.src=item.img;\r\n name.textContent=item.name;\r\n job.textContent=item.job;\r\n info.textContent=item.text;\r\n }", "title": "" ...
[ { "docid": "e0a42a7dbcb486cc75ed97ce961218b4", "score": "0.58403236", "text": "renderExperience(i, dataA) {\n const data = dataA[i]; \n return (\n <div>\n <ListItem disabled={true}\n leftIcon={<ContentSend/>} initiallyOpen={true}>\n {this.experienceText(data)}\n </List...
4bc257cb87e7ccd1bccaea997fbf8013
Unobserves the entire keypath.
[ { "docid": "0615e9a6410e44767d644b98aee78ebd", "score": "0.59619725", "text": "unobserve() {\n let obj;\n let token;\n\n for (let index = 0; index < this.tokens.length; index++) {\n token = this.tokens[index]\n if (obj = this.objectPath[index]) {\n this.set(false, token, obj, t...
[ { "docid": "72e4d9171ec4ce83424c1b319fa9f859", "score": "0.62281704", "text": "unsubscribe (path, key, nocontext) {\n let id = this.uid\n if (key) {\n id += '.' + key\n }\n // make shared shit\n let pathType = typeof path\n if (path === true) {\n path = [] // make faster\n ...
579e68f40192984018fd93903e719f8d
The following function is from QuirksMode, hence not under the GPL
[ { "docid": "8299b13726a7f57b1cd28c8113d027c0", "score": "0.0", "text": "function findPosX(obj)\r\n{\r\n\tvar curleft = 0;\r\n\tif (obj.offsetParent)\r\n\t{\r\n\t\twhile (obj.offsetParent)\r\n\t\t{\r\n\t\t\tcurleft += obj.offsetLeft\r\n\t\t\tobj = obj.offsetParent;\r\n\t\t}\r\n\t}\r\n\telse if (obj.x)\r\...
[ { "docid": "a17a6748e65f6ae5618fd62b360f9f23", "score": "0.64085203", "text": "function Section_Browser_Compatibility____________________________________________(){}", "title": "" }, { "docid": "a17a6748e65f6ae5618fd62b360f9f23", "score": "0.64085203", "text": "function Section_Brows...
d8771060c805a752f3633a7399d49d39
constructor function for creating stores
[ { "docid": "fde1d868421e7dc03f6f9aa6051080bc", "score": "0.69021994", "text": "function Store(name, avgSale, maxCust, minCust) {\n this.name = name;\n this.avgSale = avgSale;\n this.maxCust = maxCust;\n this.minCust = minCust;\n this.dailySales = 0;\n this.hourlySales = [];\n stores.push(this);\n...
[ { "docid": "f65f6d569c92ffb8ddbb691638029ede", "score": "0.792833", "text": "constructor(...args) {\n super(...args);\n\n this.createStores();\n }", "title": "" }, { "docid": "98c70f649b233f0ddf87fd6b54766de1", "score": "0.7614034", "text": "function StoreManager() {...
d09f300829deac64365e464acc9beece
ToDo add constructor, state, component did mount and axios function to store shelters in state.
[ { "docid": "98a57e1a0e7c87e4c8f2e1733381df7a", "score": "0.62236303", "text": "constructor(props) {\n super(props);\n this.state = {\n sheltersZipCodes:[]\n };\n }", "title": "" } ]
[ { "docid": "1a4b0ed187d8f5dc4dd9447dc85f5a21", "score": "0.6745269", "text": "componentDidMount() {\n BooksAPI.getAll()\n .then((books) => {\n this.setShelvesState(books);\n this.setState({books: books});\n });\n }", "title": "" }, { "docid": "3978adb7976c650ea058...
316b57e38ded715f81d16891762fcc46
escapest html special characters to html.
[ { "docid": "55b66ae1f1805937028a1438756504bb", "score": "0.0", "text": "function textToHtml(str) {\n return str.replace(pr_amp, '&amp;')\n .replace(pr_lt, '&lt;')\n .replace(pr_gt, '&gt;');\n }", "title": "" } ]
[ { "docid": "6b17d93db213718ff67e3173585ab1d0", "score": "0.78479433", "text": "function initEscHtml() {\r\n var escd = {\"<\":\"&lt;\",\">\":\"&gt;\",\"&\":\"&amp;\",\"'\":\"&#039;\",'\"':\"&quot;\"};\r\n\r\n escHtml = function (s) {\r\n s = s.split(\"\");\r\n var r = \"\";\r\n\r\n for (var i...
26ede63fa000b85675c37fa93d48a140
get user information based on username stored in local storage
[ { "docid": "9b3b24d89725b0f2b89f447791c9f524", "score": "0.0", "text": "getUser() {\n //if I use this.props.user, I have to make the user log back in - can't navigate away and back unless I use localStorage\n axios.get(`${Config.API_URL}/users/${localStorage.getItem('user')}`, {\n headers: { ...
[ { "docid": "44bd9c72981d3962eee45b176e0b171a", "score": "0.75229645", "text": "function getUsername() {\n\tvar username = localStorage.getItem('username');\n\treturn username;\n}", "title": "" }, { "docid": "44bd9c72981d3962eee45b176e0b171a", "score": "0.75229645", "text": "function ...
404d9155dcbcfbf4440d27ef4223460a
Navigate Girvi List Panel By Amount Range
[ { "docid": "8ac0502fa93b0595ccf7bdaf9449046b", "score": "0.56156206", "text": "function navigationGirviListPanelByAmtRange(pageNo, grvAmtRange) {\r\n loadXMLDoc();\r\n xmlhttp.onreadystatechange = function () {\r\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\r\n docum...
[ { "docid": "8d60f9cfd5b87e3c21f57435401bd870", "score": "0.617832", "text": "function addRange(start, finish, scope) {\r\n var i = 0;\r\n for (i = start; i <= finish; i++) {\r\n var item = {\r\n value: i.toString(),\r\n ...
b731bbd339ae23034d964ca2b636e34b
optional parameter just put ?
[ { "docid": "7aad64e263fd3973cfeb680fb435bb94", "score": "0.0", "text": "function add(num1, num2) {\n if (num2)\n return num1 + num2;\n else\n return num1;\n}", "title": "" } ]
[ { "docid": "31d1382fc26cd5f53036cc26fe56ba26", "score": "0.6715582", "text": "function AcceptMaybeParam(may) {}", "title": "" }, { "docid": "7e1afa835859230fbdbcd2e34fa0a44b", "score": "0.6626631", "text": "_setParamIfEmpty(param){\r\n\t\t\r\n\t\tif(param == null) param = {};\r\n\t\t...
922d56392e623f4a2c9e534da3fe34af
draw some locations on the map
[ { "docid": "55c1df982b21590317f662a4202cc21c", "score": "0.0", "text": "function drawLocation(location, opts, name, type) {\n if (typeof opts !== 'object') {\n opts = {};\n }\n opts.position = new google.maps.LatLng(location[0], location[1]);\n opts.map = map;\n opts.title = makeTitl...
[ { "docid": "6aa6b7138805ebe43a4804331ff88614", "score": "0.79534185", "text": "function drawMyLocation() {\n setMapCordinates(updateMarkerCordinates);\n }", "title": "" }, { "docid": "b115ed3753d3ed667387ddf5b6d7b387", "score": "0.72582376", "text": "function drawPo...
e217fa14ea54af525e6d4ef074b70e06
add column by 1
[ { "docid": "9a0455b60f8413fb8483d8eb0c2f7d63", "score": "0.69275033", "text": "addColumn() {\n this.setState(state => ({col: state.col + 1}))\n }", "title": "" } ]
[ { "docid": "0b2b9a7c66cadc1515b468f1efaa831b", "score": "0.6942896", "text": "incrementColNum() {\n this.numCols += 1;\n }", "title": "" }, { "docid": "63d275a5be4d6d094380b2151c7e2952", "score": "0.63854605", "text": "function updateColumns(){\r\n column = 0;\r\n c...
54d812137c75b11cb3f105fd16c938e0
there are backticks to make this html readable
[ { "docid": "138fe0a6c22cab1ab2aa666701c9f9ff", "score": "0.0", "text": "async getHtml(){\n return `\n <h1>Posts</h1>\n\n <p>\n\n Viewing the Posts\n\n </p>\n <p>\n\n <a href=\"/posts\" data-link>View Recent Posts</a>\n\n </p>\n `;\n ...
[ { "docid": "ff6d435ade29b494cd6ab16341ee9ebc", "score": "0.6447308", "text": "function _specialCharsHTML() {\n // Create special characters html.\n return \"\\n <div class=\\\"fr-buttons fr-tabs fr-tabs-scroll\\\">\\n \".concat(_renderSplCharsCategory(categories, selectedCatego...
c4f94b49b46d17c8ac380a0a30e8fe3b
Convert the given Analyzer properties to their TypeScript declaration equivalent.
[ { "docid": "8ee5ad1cf7d6fa668ea150cd47d83c81", "score": "0.6621858", "text": "handleProperties(analyzerProperties) {\n const tsProperties = [];\n for (const property of analyzerProperties) {\n if (property.inheritedFrom || property.privacy === 'private' ||\n this....
[ { "docid": "9e37cebec63ef6e48e880d296e1d0874", "score": "0.49037197", "text": "function analyzeProperties(node, document) {\n const analyzedProps = [];\n if (node.type !== 'ObjectExpression') {\n return analyzedProps;\n }\n for (const property of node.properties) {\n const prop...
008424d5ab56e9af699a940bafe2ba33
Generate a random integer between low and hi
[ { "docid": "baa9c9c810a543ff7a0f5c88cae72ce1", "score": "0.8465631", "text": "function random(low, hi) {\n return Math.floor(Math.random() * (hi - low + 1) + low);\n}", "title": "" } ]
[ { "docid": "0556ebf75c58992c7abd4d530867740f", "score": "0.8594964", "text": "function randomInteger(low, high) {\n\t\treturn low + Math.floor(Math.random() * (high - low));\n\t}", "title": "" }, { "docid": "ee79ab0c183337b2b62726697fb2c31a", "score": "0.8565539", "text": "function r...
f8bb7c2bc880d0dfbb92cae92af391ff
This function is called when someone finishes with the Login Button. See the onlogin handler attached to it in the sample code below.
[ { "docid": "3162a207b296d722c5a901e1afffe8c3", "score": "0.0", "text": "function checkLoginState() {\n FB.getLoginStatus(function(response) {\n statusChangeCallback(response);\n });\n }", "title": "" } ]
[ { "docid": "b0ceddf32c832a8e9c503f9a15f7d387", "score": "0.7523613", "text": "function onLoginComplete() {\n\tlongPoll();\n\t$('#send-button').on('click', sendText);\n\t$('#input-field').on('keypress', inputKeyPressed);\n}", "title": "" }, { "docid": "d48525dded6c138d4c04bc58394fdda8", "...
1e1bbb8a63fc5daec29c9c42c690715f
Adds a user to a group Adds the given user to the given group. Addition may fail if the given group does not already exist.
[ { "docid": "3219d9950dbc78971c304441fcb8e5f6", "score": "0.5271448", "text": "addUser({user,group,owner}) { this.$publish('addUser', {user,group,owner})}", "title": "" } ]
[ { "docid": "6c781648ce443e43aba2dcafadc5236b", "score": "0.74014586", "text": "addUser(user) {\n user.addToGroup(this);\n }", "title": "" }, { "docid": "a985e028431836a5b3902c8ead11572e", "score": "0.7399668", "text": "function addUserToGroup (userUUID, groupPath, callback)...
795aeb6bc9f85b39d12a12478e7f160e
Second of the inherent scene functions which adds game physics and handles the socket connections from the opposing client.
[ { "docid": "d0bee996beb8b239374b853257c21a65", "score": "0.61024404", "text": "function create () {\n //Save scene reference.\n scene = this;\n\n //Add the background.\n this.background = this.add.image(0,0,'background').setOrigin(0,0);\n\n //Add the ground.\n t...
[ { "docid": "146af7bcf1f6a54565330b6ef9301846", "score": "0.69093", "text": "create() {\n\t\tconst scene = this;\n\t\tthis.music = this.sound.add(\"music\", {\n\t\t\tvolume: 0.05,\n\t\t\tloop: true\n\t\t});\n\t\tthis.music.play();\n\n\t\tthis.clamClick = this.sound.add(\"clamClick\", { volume: 2 });\n\t\...
a2db9c4a325a750f81699d7f4d35f569
datepicker script / hkid validation script
[ { "docid": "1918cbb7746832c2e2a3cc1bde5673b6", "score": "0.0", "text": "function IsHKID(str) {\n var strValidChars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n\n // basic check length\n if (str.length < 8)\n return false;\n\n // handling bracket\n if (str.charAt(str.length - 3) == '(' && str...
[ { "docid": "d8bcf0db5cb9c4d1faf8171a7ff7891e", "score": "0.7025868", "text": "function Datepicker() {}", "title": "" }, { "docid": "d39e613ed2c7974e606f1dce7338e94a", "score": "0.6813377", "text": "function d(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepi...
5ed628d561c55d59f8bdd4c6a2e3af9a
Generates food every 'timeout' seconds. If the timeout is not specified, the default is 2 seconds.
[ { "docid": "efa60bcf4c71f2731635cd33d7ae90e5", "score": "0.8513938", "text": "generateFoodEvery(timeout) {\n if (timeout === undefined)\n timeout = 2000;\n this.foodGenerationInterval = setInterval(this.generateFood, timeout);\n }", "title": "" } ]
[ { "docid": "a35102106c872c2604a9c80602ec1a9e", "score": "0.64078265", "text": "function prepareFood(callback)\n{\n setTimeout(callback,5000)\n}", "title": "" }, { "docid": "5eb54c91e7ae6cbbc0d4b3b06f5f381e", "score": "0.6336606", "text": "function cookAndDeliverFood (callback){\r\n ...
bf2e1a828d26c04dd6390fee6739f796
LocationQuery: based on the shapes drawn it starts to query the data
[ { "docid": "e0d9eb0d4d8e60b261f120d9a85aef15", "score": "0.63197184", "text": "function locationQuery (){\n return new Promise(function (resolve, reject) {\n queryKeys = [];\n for (var key in sdata) {\n for (var i=0; i<shape_list.length; i++){\n ...
[ { "docid": "991fa23809617a5ba06ad383d852c3a3", "score": "0.6051095", "text": "function setLocationQuery()\n\t{\n\t\tif(locationMarker !== null)\n\t\t{\n\t\t\tlocationMarker.setMap(null);\n\t\t}\n\t\tif(Circle !== null)\n\t\t{\n\t\t\tCircle.setMap(null);\n\t\t}\n\t\t$('#grp-day').hide(750);\n\t\t$('.day'...
9747da53344f7da41f6c0580edd8ea13
gets the word from the data function and creates the word game kicks of the game
[ { "docid": "73a924f50ef2bed4abd4cbf8434ac3b7", "score": "0.6473169", "text": "function getWords() {\n var data = new Data(),\n min = Math.ceil(0),\n max = Math.floor(data.array.six_wrong.length),\n random = Math.floor(Math.random() * (max - min));\n\n /**\n * check if word...
[ { "docid": "bbc7d2ebd7414cfd5e0e665bc285beeb", "score": "0.7436566", "text": "function getWord() {\n // Pick a random word in the dictionary library\n var randomWord = game.dictionary[Math.floor(Math.random() * game.dictionary.length)];\n // Array of letters of chosen word\n ...
7d211f3fff4d618e8fd66aea78f326f4
Formats the JSON response from the Marvel API into character profiles used by the store
[ { "docid": "215c4576ed7897461180689ccf5dcf6d", "score": "0.65668195", "text": "function formatJSONResponse(json) {\n return json.data.results.map((character) => {\n return {\n id: character.id,\n strenght: character.comics.available,\n description: character.description,\n name: ...
[ { "docid": "9c3c392b09e9facdbbc2ce91ff41591c", "score": "0.64417964", "text": "function formatJSONResponse(json) {\n let character = json.data.results[0];\n return {\n id: character.id,\n strenght: character.comics.available,\n description: character.description,\n name: character.name,\n ...
42d4a4463126d0a2e2be7c56b6259f47
required functions for pigLatin to run
[ { "docid": "5f3283dedc6e6ea09cd65a717e7535bf", "score": "0.0", "text": "function smallestNonNegative(num1, num2){\n if (num1<0) {\n return num2\n } \n \n if (num2<0) {\n return num1\n }\n \n if (num1<num2) {\n return num1\n } else {\n return num2\n }\n \n}", "title": "" } ]
[ { "docid": "ba319d1f34c59a68f093439912a6ca84", "score": "0.7452489", "text": "function convertWordToPigLatin(word) {\n\n }", "title": "" }, { "docid": "0f1c44c7377dc96a14d3dd8594d25098", "score": "0.7244215", "text": "function translatePigLatin(str) {\n\t return str;\n\t}", "...
1aa2919389e92379505f0fca5a93137d
update volume bar and audio volume
[ { "docid": "366b85762d75e117b22b8828f95ffb8f", "score": "0.7121069", "text": "function volumeControl(clikedPoint) {\n const width = volumeContainer.clientWidth;\n const clickX = clikedPoint;\n volumeMemory = clickX / width;\n\n audio.volume = volumeMemory;\n volumeBar.style.width = `${vol...
[ { "docid": "9130b1f88ffe66291eb5b4f1866d7019", "score": "0.82249063", "text": "function setVolume() {\n current_song.volume = volume_slider.value / 100;\n}", "title": "" }, { "docid": "4dc0099405b17571d3d45514ba42aa46", "score": "0.8196972", "text": "function updateVolumeProgressBar...
3f300d1b7c68fed60245dc9f5e379591
Actually enlarging the dot using the outputed eased "p"
[ { "docid": "2737367d973a23b7144b6518e0547e4c", "score": "0.73860294", "text": "function enlargeDot(p) {\n\t \tdot.style.webkitClipPath = 'circle('+(parseInt(dot_clip[0])*(p*4.5+1))+'px at ' + -dot_x + 'px ' + -dot_y + 'px)';\n\t\t}", "title": "" } ]
[ { "docid": "3428322dcf50225629fd682bb5b22d3a", "score": "0.6078223", "text": "display() {\r\n fill(128, 0, 0);\r\n ellipse(this.x + SCALE/2, this.y + SCALE/2, SCALE, SCALE);\r\n }", "title": "" }, { "docid": "b06cf21174340c8e0d5fb22d79c0265c", "score": "0.6072701", "text": "fu...
dcb8173f6e2b0244657b4accb3e17720
Get a list of all the files and add it to "filesToPreLoad"
[ { "docid": "817ee138586cf44291bd112d3a35478b", "score": "0.6025689", "text": "function resyncExistingFiles() {\n var watchedFolders = Object.keys(config.roots);\n var roots = [];\n for (var i = 0; i < watchedFolders.length; i++) {\n // match all files in all directories (excludes .hidden...
[ { "docid": "cd1b4b77014b0f2af4375806ee600b2e", "score": "0.6663019", "text": "function loadFiles (filesSet) {\n for (var f in filesSet) {\n filesProviders['browser'].set(createNonClashingName(f), filesSet[f].content)\n }\n switchToNextFile()\n }", "title": "" }, { "docid": "27...
33a51dc27050290e9f82868efc548eee
Function to handle Save Button
[ { "docid": "bca0f484eed7766b5952e262ac0c0482", "score": "0.0", "text": "function handleSaveBtn(hour) {\n // Variable for time value declared\n var timeValue = $(\".\" + hour).val();\n // Console log timeValue\n console.log(timeValue);\n // Save to local storage\n localStorage.setItem(h...
[ { "docid": "018fb8ab732bd525873753358fbb1f88", "score": "0.7872864", "text": "function OnBtnSave_Click( e )\r\n{\r\n Save( 'generic_save_title' , 'save_confirm_msg' ) ;\r\n}", "title": "" }, { "docid": "018fb8ab732bd525873753358fbb1f88", "score": "0.7872864", "text": "function OnB...
82cb0d83f19dabadec37f36ffe766044
Getting form information for array constructor function for retrieving value for selected state
[ { "docid": "29c3cdbf86237664ac23a9ab53ca751f", "score": "0.0", "text": "function getStatePrice() {\r\n var incomeStatePrice = 0.23;\r\n /*var selectedState = the_calc_Form.elements[\"state\"];\r\n incomeStatePrice = state_prices[selectedState.value]; */\r\n return incomeStatePrice;\r\n}", ...
[ { "docid": "fd5072f0b44ea7faf524db1559eca755", "score": "0.58242065", "text": "function select(state) {\n\t\treturn {\n\t\t\tdata: state.data,\n\t\t\tinfo: state.info\n\t\t};\n\t}", "title": "" }, { "docid": "ab006348e6ebaed0a00cc66255161083", "score": "0.5709213", "text": "function ...
4809479d5ae35cbc8c401d58c6071b85
METHOD 3: split string into words, split words into chars, map over each character to return char uppercase or lower case
[ { "docid": "7e22388733bc9e77c95126f94b8255fe", "score": "0.6369253", "text": "function titleCase(str) {\n return str\n .split(\" \")\n .map((word) => {\n return word\n .split(\"\")\n .map((char, i) => {\n if (i === 0) return char.toUpperCase();\n ...
[ { "docid": "5d560ec33042fddcdbc45ab5dd496b33", "score": "0.71821254", "text": "function titleCaseMap(str){\n\n //break string into array\n var arr = str.split(\" \");\n var mapped = arr.map(function(word){\n return word[0].toUpperCase() + word.slice(1).toLowerCase();\n })\n return mapped.join(' ...
220f5ea3a5a83f6739526899e3aa923b
^ PUBLIC METHOD(S) ^ v PRIVATE METHOD(S) v
[ { "docid": "d6d38ff8db0586111034705a23958f3e", "score": "0.0", "text": "function Tweenable() {\n\t var o = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\t (0, _classCallCheck3.default)(this, Tweenable);\n\n\t // pipe function for _o object\n\t // before creating t...
[ { "docid": "acffe366305a123ddf65c9f97713c0bb", "score": "0.695408", "text": "function ___PRIVATE___(){}", "title": "" }, { "docid": "436632995e3fe68df51c2ef5a924f0cd", "score": "0.66064763", "text": "function _privateMethods() {}", "title": "" }, { "docid": "5a7ca3cf8b648...
d983d161dbb8a357464a141249ee7b7b
Parse a Class Definition Table in a GSUB, GPOS or GDEF table. Returns a function that gets a class value from a glyph ID.
[ { "docid": "d152e956f0a6ca55510fc498f91cd6f2", "score": "0.68145853", "text": "function parseClassDefTable(data, start) {\n var p = new parse.Parser(data, start);\n var format = p.parseUShort();\n if (format === 1) {\n ...
[ { "docid": "0d16f33d64132f45ee41996a9c8efacf", "score": "0.6993817", "text": "function parseClassDefTable(data, start) {\n var p = new parse.Parser(data, start);\n var format = p.parseUShort();\n if (format === 1) {\n // Format 1 specifies a range of consecutive glyph indices, one class ...
9f4d36f5f186fafc1e2c2831d2335489
Batch starts a transaction, at least for purposes of memoizing ComputedValues when nothing else does. During a batch `onBecomeUnobserved` will be called at most once per observable. Avoids unnecessary recalculations.
[ { "docid": "141d05a7271077bc51b4ed658730f131", "score": "0.5388366", "text": "function startBatch() {\n globalState.inBatch++;\n}", "title": "" } ]
[ { "docid": "525115d100379485723088a6ef3e88bf", "score": "0.61157566", "text": "beginBatch() {\n this.transactionManager.beginBatch(null);\n this.batchActive = true;\n this.batchTransactions = [];\n }", "title": "" }, { "docid": "a19fd0e200578963adb1e1a0180168a5", "score": "0.59...
96285d6236146d538e097a540330485b
Now write the function that the event listener will run. It will take what's in the user input and remove it from the todo list array.
[ { "docid": "66c3dcc8334c0066438780869348b2a0", "score": "0.6470433", "text": "function removeItemOnDom() {\n const addIndexInputBox = document.querySelector(\".index-input\");\n let inputedText = addIndexInputBox.value;\n let index = Number(inputedText);\n todos.splice(index, 1);\n clearDom();\n p...
[ { "docid": "776f355446aee713542c22eb2138afd6", "score": "0.75740993", "text": "function delToDo()\n {\n var index = prompt(\"Enter item no. to delete an item\");\n todo.splice(index-1,1);\n console.log(\"To-Do item deleted from the list\");\n }", "title": "" }, { "docid": ...
8e3afc66003b962e03862ad5432b1089
Leftpadding singledigit byte values with left zero
[ { "docid": "4bb42865d4fb53ed39aebbc83b499c8e", "score": "0.632604", "text": "function byte(b){\n if(b.length < 2)\n b = \"0\" + b;\n return b;\n}", "title": "" } ]
[ { "docid": "091b59406a405caf0f11dca404bf8414", "score": "0.64885247", "text": "function withLeadingZero2Dig(s) {\n return (\"0\" + s).slice(-2);\n }", "title": "" }, { "docid": "75e70352af5643d0538a9ce2ff746399", "score": "0.6428373", "text": "function fromBinary(in...
a790c2fdda3be4849d6706f9aece4159
Get an existing BucketOwnershipControls resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
[ { "docid": "ddf95f4f45297126e9e415c7a5ce9e5a", "score": "0.77861595", "text": "static get(name, id, state, opts) {\n return new BucketOwnershipControls(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "title": "" } ]
[ { "docid": "4fc2d4764f3693bc5f9611a0502534d0", "score": "0.5615916", "text": "function GetBucketOwnershipControlsCommand(input) {\n var _this = // Start section: command_constructor\n _super.call(this) || this;\n\n _this.input = input;\n return _this; // End section: command_constructor\n }...
00659233028e89b5d75da6a323c90069
Example For inputString = "aabb", the output should be palindromeRearranging(inputString) = true. We can rearrange "aabb" to make "abba", which is a palindrome.
[ { "docid": "0d8ef7f473e2acf8b0b62f2cf55a726c", "score": "0.8188193", "text": "function palindromeRearranging(inputString) {\n const map = {};\n for (let i = 0; i < inputString.length; i++) {\n if (map[inputString[i]] === undefined) {\n map[inputString[i]] = 1;\n continue;\n }\n if (...
[ { "docid": "9737709364c5acebb7a675365f0f4820", "score": "0.792077", "text": "function palindromeRearranging(inputString) {\n // create object\n // count number of characters\n // if inputstring is even - even number of strings\n // if inputstring is odd - also even Except one character\n ...
3c23954683c259a27c4330f62566fee9
Read binary data (BVARBYTE)
[ { "docid": "4123faa1ed14177b0f8a54e2bf99b22b", "score": "0.7689132", "text": "readBVarByte(callback) {\n this.readUInt8(length => {\n this.readBuffer(length, callback);\n });\n }", "title": "" } ]
[ { "docid": "def56427ab0e544187f021929289be39", "score": "0.6783521", "text": "readBVarChar(callback) {\n this.readUInt8(length => {\n this.readBuffer(length * 2, data => {\n callback(data.toString('ucs2'));\n });\n });\n }", "title": "" }, { "docid": "c1fe8cad2aff241d...
6b2f404488540009b7a5493aa001e5d1
Use display() to return a string with the value of every node from the linked list Example: After adding to front and back it could look something like this (this is just an example): "Disneyland" "Las Vegas" "Yellowstone" "Mount Rushmore" "Gateway Arch" I've given this to you so you can use it to test and it will help...
[ { "docid": "132163e2b89e18977605824dc9a57daa", "score": "0.76258874", "text": "display() {\n if (this.head == null) { //handles the edge case of an empty list\n return null;\n }\n\n var values = this.head.value; // this will hold all the values of the list, starting with ...
[ { "docid": "46841125e60deae7e11c52901e105cd9", "score": "0.7761937", "text": "function display(list) {\n let currentNode = list.head,\n valStr = \"\";\n\n if (!currentNode) {\n console.log(null);\n return null;\n }\n\n // Loop through nodes, adding to string\n while (currentNode.next) {\...
a1090bce586f1e0f8cff0cbcff663719
worker methods run under the global channel context and broadcast to all sockets listening to the channel
[ { "docid": "499dbdb29183f5d200561662897db111", "score": "0.5950564", "text": "spawn(channel, domain, node, workers)\n\t\t\t\t{\n\t\t\t\t\tthis.channel = channel;\n\t\t\t\t\tconst {sources, sinks} = channels[channel];\n\t\t\t\t\tconst {state} = application;\n\t\t\t\t\tapplication.nodes([domain, node], {c...
[ { "docid": "5729838c01a7863e41358b9098372b09", "score": "0.6512833", "text": "function broadcast() {\n\twss.clients.forEach(ws => {\n\t\tsend(ws, ...arguments);\n\t});\n}", "title": "" }, { "docid": "210dcb92780020ab0f8b23fb9d6bd828", "score": "0.6490887", "text": "function Broadcast...
e74176d06616a436f44e5370add0fca6
Response Time vs Request
[ { "docid": "8287b846feb31f4ad2eea35dd529c874", "score": "0.0", "text": "function refreshResponseTimeVsRequest() {\n var infos = responseTimeVsRequestInfos;\n prepareSeries(infos.data);\n if (isGraph($(\"#flotResponseTimeVsRequest\"))){\n infos.createGraph();\n }else{\n var choi...
[ { "docid": "2924d18e98c07b54a492fd913a3b2388", "score": "0.7801827", "text": "function response_time(req, res){\n if (!res._header || !req._startAt) return '';\n var diff = process.hrtime(req._startAt);\n var ms = diff[0] * 1e3 + diff[1] * 1e-6;\n return ms.toFixed(3);\n}", "title": "" }, { ...
52ca050780eec3161c7e09f9fc345508
(String, Array[Patch]) > TurtleSet
[ { "docid": "cd84d74c406210a7c0c7f58883e97717", "score": "0.6868628", "text": "breedOn(breedName, patches) {\n var turtles;\n turtles = flatMap(function(p) {\n return p.breedHereArray(breedName);\n })(patches);\n return new TurtleSet(turtles, this._world);\n }", ...
[ { "docid": "fa43e3f1d58767810238e22a4dccb9af", "score": "0.56101024", "text": "set tangents(value) {}", "title": "" }, { "docid": "b6d5c173381eb5fb0d993aef15143197", "score": "0.55628294", "text": "set triangles(value) {}", "title": "" }, { "docid": "f772db4671cb628c1f80d...
cc3ed39034ec3809b5dfe389a40feb2a
Rewind history cursor on the last entry
[ { "docid": "074f8479d342c352377982add8b263b9", "score": "0.7130382", "text": "rewind() {\n this.cursor = this.entries.length;\n }", "title": "" } ]
[ { "docid": "2bf2ae57fa2282bdf613c3d299cd8709", "score": "0.6855379", "text": "prev() {\n this.historyIndex -= 1;\n }", "title": "" }, { "docid": "9997d62d341e8c3514632a236878dc81", "score": "0.6849693", "text": "undo() {\n if (this.history.length) {\n let ...
d17f720291077aaab2c86b42fe471660
update x scale when clicking the X axis label
[ { "docid": "e48a3e028b6d4b984ac50b17804344a6", "score": "0.61169463", "text": "function xScale(allData, someX) {\n // console.log(someX)\n let xLinearScale = d3.scaleLinear()\n .domain([d3.min(allData, d => d[someX]) * .5, d3.max(allData, d => d[someX]) * 1.1])\n .range([0, width...
[ { "docid": "5de402dd204abc36c78d6ec64dc2d33a", "score": "0.7988376", "text": "function onXScaleChanged() {\r\n var select = d3.select('#xScaleSelect').node();\r\n // Get current value of select element, save to global chartScales\r\n chartScales.x = select.options[select...
c54ff8842d2e19670fa01e190f4fab5e
! moment.js locale configuration
[ { "docid": "397f66da7d48b26a3a8567a29538968f", "score": "0.0", "text": "function t(e,t,n,i){var r={m:[\"eine Minute\",\"einer Minute\"],h:[\"eine Stunde\",\"einer Stunde\"],d:[\"ein Tag\",\"einem Tag\"],dd:[e+\" Tage\",e+\" Tagen\"],w:[\"eine Woche\",\"einer Woche\"],M:[\"ein Monat\",\"einem Monat\"],MM...
[ { "docid": "10d1879eaeed63952d2503fd69f151f3", "score": "0.8290721", "text": "function g(e,t,r){return e+\" \"+function(e,t){return 2===t?function(e){var t={m:\"v\",b:\"v\",d:\"z\"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:\"munutenn\",MM:\"miz\",dd:\"devezh\"}[r],e)}//!...
8fa25f0a5e32c8056193dfc608d67554
Append a origin to the base
[ { "docid": "b39b80295a6c8ab4a10ba0b180615202", "score": "0.5964105", "text": "function addOrigin(base, handleNumber) {\n var origin = addNodeTo(base, options.cssClasses.origin);\n var handle = addNodeTo(origin, options.cssClasses.handle);\n\n addNodeTo(handle, options.cs...
[ { "docid": "e7044f1eb8067d41f3ed57adbba4a1a7", "score": "0.6721298", "text": "set origin(value) {}", "title": "" }, { "docid": "bd9f5a30107c526dfff1522b14d52dca", "score": "0.65891916", "text": "origin(origin) {\n if (arguments.length) {\n this._origin = origin || [0, 0];\n ...
c0b51f1f272675f9eedd5d6ff1d14172
Render the DOM representation of the text of a line. Also builds up a 'line map', which points at the DOM nodes that represent specific stretches of text, and is used by the measuring code. The returned object contains the DOM node, this map, and information about linewide styles that were set by the mode.
[ { "docid": "57f1d0b07ed50992136736cf8ac3ea9e", "score": "0.72590965", "text": "function buildLineContent(cm, lineView) {\n // The padding-right forces the element to have a 'border', which\n // is needed on Webkit to be able to get line-level bounding\n // rectangles for it (in measureChar).\n ...
[ { "docid": "1c14b3fabae5325a3496e185014d8a15", "score": "0.7246114", "text": "function buildLineContent(cm, lineView) {\n\t // The padding-right forces the element to have a 'border', which\n\t // is needed on Webkit to be able to get line-level bounding\n\t // rectangles for it (in measureChar...
58c348920e9b67e8856436b03d6bdc80
TODO Add settings and delete buttons to the league table Settings shows a dialog to update the league settings Delete will delete the league after a confirmation
[ { "docid": "1e8a88183908d0de513239597375773b", "score": "0.0", "text": "render() {\n return (\n <Container>\n <Table responsive=\"sm\" size=\"sm\" striped hover>\n <thead>\n <tr>\n {columns.map((title, ...
[ { "docid": "688a5bec2ae79ea03965f1d60b9c039c", "score": "0.5941201", "text": "function addLeague(league) {\n leagues.push(league); \n }", "title": "" }, { "docid": "0f6328fb01ff735fd129e5798aa4c087", "score": "0.5717912", "text": "function hapusTeam(id){\n deleteById(id);...
84b596bd810d743b014d5fd0b90bcc62
Tablas dinamicas puerta 1 3/4 pulgadas
[ { "docid": "ff19e83f8787ccacb282ad00352922cd", "score": "0.0", "text": "function mostrarDisplay_puerta1_d(id) {\n for(i=1;i<18;i++){\n fila = document.getElementById(id).rows[i].style.display='';\n }\n document.getElementById(\"boton_menu\").setAttribute(\"onclick\",\"ocultarDisplay_pu...
[ { "docid": "acfb75c2fb857c3a7427d73b046a5e5f", "score": "0.6642946", "text": "function montarTabela(){\n montarTabela({dados: [ {id:1,nome:\"Mayra\", p1:6,p2:5}\n ,{id:2,nome:\"Pedro\", p1:6,p2:5}\n ,{id:3,nome:\"Wesley\", p1:6,p2:5}\n ...
528f492e18a1b85ee481c7e1a414bace
Class for parsed ContentDisposition header for v8 optimization
[ { "docid": "9a756c1fe1a3ceb3583c7fc3b3e20f33", "score": "0.738215", "text": "function ContentDisposition (type, parameters) {\n this.type = type\n this.parameters = parameters\n}", "title": "" } ]
[ { "docid": "d30700b335a321f4a43f0405a66d373f", "score": "0.73943967", "text": "function ContentDisposition(type, parameters) {\n this.type = type\n this.parameters = parameters\n}", "title": "" }, { "docid": "d30700b335a321f4a43f0405a66d373f", "score": "0.73943967", "text": "functi...
47df568a9b73cd88fcaca66fe38d0f71
Crear un constructor de objetos Mercury
[ { "docid": "75bdae3252541f32d1ea8cf2cbe0de07", "score": "0.0", "text": "function java() {\n drawStar.call(this,0,-65,40,157.70,'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iNDgiIGhlaWdodD0iNDgiCnZpZXdCb3g9IjAgMCAxNzIgMT...
[ { "docid": "073f8239c41b0ec2e92c1833b6f4aca6", "score": "0.7183456", "text": "function ctor() {}", "title": "" }, { "docid": "3996570f8cae8cc57f7430bf48b0d1a8", "score": "0.7013081", "text": "function constructorObject() {}", "title": "" }, { "docid": "f22cb981733d75c2bc3...
d079ccca195ef491abb496025d652f1d
if we're already writing something, then just put this in the queue, and wait our turn. Otherwise, call _write If we return false, then we need a drain event, so set that flag.
[ { "docid": "009c253a2d7beef89cd4d81326bbc410", "score": "0.0", "text": "function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chu...
[ { "docid": "97108fee10d3698f58fc9e1d41fb0712", "score": "0.7143652", "text": "function onwriteDrain(stream,state){if(state.length===0&&state.needDrain){state.needDrain=false;stream.emit('drain');}}// if there's something in the buffer waiting, then process it", "title": "" }, { "docid": "971...
b9acf92916eaab65bec164658cab2a7d
Return with all standard tab information Id are Index are set once in a group (see GroupManager.prepareGroups)
[ { "docid": "9faaa3ba642f7b4d81cc7b85c30ab42e", "score": "0.0", "text": "function getTabFactory(tab) {\n return Object.assign({\n title: \"New Tab\",\n url: TAB_CONSTANTS.NEW_TAB,\n favIconUrl: \"chrome://branding/content/icon32.png\",\n hidden: false,\n lastAccessed: 0,\n pinned: fals...
[ { "docid": "64f3957ec92b16550eb033f36c6bc65f", "score": "0.5987419", "text": "_getTabContentId(i) {\n return `mat-tab-content-${this._groupId}-${i}`;\n }", "title": "" }, { "docid": "804e7c16a5ec14ca0afa5c2c067300e7", "score": "0.5894297", "text": "_getTabLabelId(i) {\n ...
146b1c820b731ae42ece0bfe0c9ce4b9
create the slider specified by some slider[x] object.
[ { "docid": "197ba56307c9d1f2f677799fcf3ec5ca", "score": "0.0", "text": "function slider_render(obj)\n{\nvar i;\nvar span;\n\n with (window.document)\n {\n\tif (old)\n\t{\n\t write(\"<BR>No browser support for sliders<BR>\");\n\t return;\n\t}\n\n\t// now write out all the bits\n\n\tslider_ren...
[ { "docid": "e47ec8b3c03fd3c79c989ddf759eb153", "score": "0.7116536", "text": "function createSlider() {\n\t// call d3 time slider library\n\td3.select('#slider').call(d3.slider().axis(d3.svg.axis().ticks(13)).min(2000).max(2012).value(2004).step(1)\n\t\t.on(\"slide\", function(evt, value) {\n\t\t\t// on...
9e81f97d7e14312055234733a3c71333
}); get change color
[ { "docid": "bd28d098e4c27050777656636e5b24ca", "score": "0.0", "text": "function changeColor(target){\n for(let i = 0; i < squares.length; i++)\n squares[i].style.backgroundColor = target;\n}", "title": "" } ]
[ { "docid": "561b6df11c1e39b51245386eec11c20c", "score": "0.7876059", "text": "function changeColor(){\n\n}", "title": "" }, { "docid": "53ea9468e782b9fd14c0d248d463a4c2", "score": "0.76318496", "text": "function getColor() {\n return '#357EC7';\n}", "title": "" }, { ...
0a6fcfc5aa1ddea48a88a21ba8c434e2
takes url and makes http request to get API JSON object calls render function with object
[ { "docid": "0378dd2119083cbc622c12c96ffd49c8", "score": "0.7102681", "text": "function getAPI(url) {\n const req = new XMLHttpRequest();\n req.addEventListener(\"load\", () => {\n let file = JSON.parse(req.responseText);\n render(file);\n bindEvents();\n });\n req.open(\"GET\", url, t...
[ { "docid": "566a9efe7f735954f51466de64d354fa", "score": "0.6476034", "text": "function getJSON(url) {\r\n fetch(url, {\r\n method: 'GET',\r\n }).then((response) => response.json())\r\n .then((next) => renderAir(next))\r\n .catch(error => console.error('Error:', error));\r\n}", "ti...
cf14e867385b17f62e8bb8faafe34f8e
A "link" object can be associated to N projects This function loops through projects and update the ".links" property
[ { "docid": "63e52af5f8bab8bf252f7285e20462bc", "score": "0.7407853", "text": "function addLinkIdsToProjects (projects0, links) {\n let projects1 = Object.assign({}, projects0)\n links.forEach(link => {\n const id = link._id\n const projectIds = link.projects // get the array of project ids\n ...
[ { "docid": "0ec363e76ce07dd4dd5f249648964528", "score": "0.6372121", "text": "createSymlinksForProjects(force) {\n if (!force) {\n if (node_core_library_1.FileSystem.exists(this._rushConfiguration.rushLinkJsonFilename)) {\n console.log(colors.green(`Skipping linking -- e...
2363e87985aac0caaae2c9d406b54039
7. Write a program that calculates a number of digits of a given number.
[ { "docid": "8bd038cc7a5523742a8536754d3e2c83", "score": "0.7190765", "text": "function numOfDigits (num) {\n var digitCounter = 0;\n\n if (num < 0){\n num *= -1;\n}\n for (var i = num; i >= 1; i /= 10){\n digitCounter++;\n }\n return digitCounter;\n}", "title": "" } ]
[ { "docid": "919793682e222cb99f40877ccb5d5b45", "score": "0.768565", "text": "function ndigits(number) {\n var ndigits = 0;\n while (number != 0) {\n number = Math.trunc(number / 10);\n ndigits++;\n console.log(number);\n }\n return ndigits;\n}", "title": "" }, { "docid": "19981c...
6c7994516373df674db04249ea39bf03
To check whether the entered value is in the given json.
[ { "docid": "42d682c008a4d95e93ea530e8a011cbc", "score": "0.57073194", "text": "function fnCheckValidData(id, jsonData, name, msgStr) {\n var value = $(id).val();\n if (jsonData != null) {\n if (value != \"\") {\n var selectedValue = jsonPath(jsonData, \"$.Data[?(@.\" + name + \"=...
[ { "docid": "71ee67612f1e27a93ae9479b57567463", "score": "0.74577457", "text": "function _containsValue(json, value) {\n for (k in json) {\n if (typeof json[k] === 'object') {\n if (_containsValue(json[k], value)) {\n return true;\n }\n } else if (typ...
eacc73aa53ed9d8758d107fc14e8b57d
Implementation:2 ends here Using XState, referencing =machine.state= and =machine.state.context= is so common that I like to use shorthand, =interpreter.S= and =interpreter.C= respectively. When the machine has just been instantiated, =machine.initialState= is actually the only state. [[file:../literate/XStateTestInter...
[ { "docid": "77b6f60ed20d88a8b6355e5db71f2c75", "score": "0.64027137", "text": "constructor(machine) {\n this.machine = machine;\n this.state = machine.initialState;\n this.S = this.state;\n this.C = this.state.context;\n }", "title": "" } ]
[ { "docid": "4b2637d988581bfacbd2e287201f5768", "score": "0.73151755", "text": "set_state(intp, x, f, c, s){\n this.interpreter = intp;\n this.x = x;\n this.f = f;\n this.c = c;\n this.s = s;\n }", "title": "" }, { "docid": "f0342de02113123dd574ed4b251d0a37", "score": "0.6...
889c5e1d06b78009891c7f95ca688761
unitsTravelled() takes in known motion equation values and returns a distance in unspecifed units
[ { "docid": "88b7a1a76e3b382b8d114073f2219d82", "score": "0.68858624", "text": "function unitsTravelled(speed, time, acceleration) {\n return (speed * time) + (acceleration * time * time / 2);\n}", "title": "" } ]
[ { "docid": "058ed3ba7604befa8ac2ed375d227cfe", "score": "0.55778635", "text": "function calculateDistance(calories, weight) {\n\t// multiply by 1.60934 to convert from miles to meters\n\t// divide by two because we assume user will walk both to and from taco bell\n\treturn ((calories / (weight * 0.5)) *...
8b7d8a389e3b2cf775691aa050db6314
============================================= Funcion para actualizar una fila en la tabla ascensor_valores_maquinas ==============================================
[ { "docid": "2567b35dfa9d225fd7d7b6bade8bb23e", "score": "0.62408847", "text": "function updateItemsAscensorValoresMaquinas(k_codusuario,k_codinspeccion,k_coditem, n_calificacion,v_calificacion,o_observacion) {\n db.transaction(function (tx) {\n var query = \"UPDATE ascensor_valores_maquinas SET n_ca...
[ { "docid": "34ae046f07d829322a2b75061f5605b0", "score": "0.641064", "text": "function updateItemsAscensorValoresFoso(k_codusuario,k_codinspeccion,k_coditem, n_calificacion,v_calificacion,o_observacion) {\n db.transaction(function (tx) {\n var query = \"UPDATE ascensor_valores_foso SET n_calificacion...
b2f42c1329ebdd4b28abdde45c415c77
A method should always return a promise
[ { "docid": "a27412746f5342f4fb38b0ce3e018dbe", "score": "0.0", "text": "call(verb,endpoint, params , config) {\n\n\t\tlet apiRoot = Settings.get('API',API_BASE_URL);\n\t\tlet url = `${apiRoot}${endpoint}`; \n\n\n\t\tlet caller;\n\t\tif (verb == GET) caller = this.get;\n\t\tif (verb == POST) caller = thi...
[ { "docid": "79c29d67bc2ef8e4a9f51c2b3fccda0d", "score": "0.7182248", "text": "async method(){}", "title": "" }, { "docid": "e6a8b7a5fc43cdd2f01ee892de29a2e7", "score": "0.70980716", "text": "static async method(){}", "title": "" }, { "docid": "e5379f0ae10fb102dc3e56a7e8a0...
99a0c6167e8824f77dbd76ae7ec3bcc4
function handler that get meetupData object from the child component NewMeetupForm and makes http request
[ { "docid": "1a2a973416c8db6acd82f45b9e6a7249", "score": "0.7042236", "text": "function handlerAddMeetup(meetupData) {\n // possible use the 3rd party libraries as e.g. axios instead of the 'fetch()'\n // URL: used FIREBASE real-time database created at https://firebase.google.com/\n // tha...
[ { "docid": "19a99a0212ef3b3314aad5713b81419e", "score": "0.65059614", "text": "function createMeet(event) {\r\n event.preventDefault();\r\n\r\n var rooms_container = document.getElementById(\"rooms-container\");\r\n rooms_container.innerHTML = \"\";\r\n\r\n va...
86840eb677e6fbc961e9f66968837a2d
Pasamos el evento y si hay keydown lo convertimos en true.
[ { "docid": "5f8ae29d902267e54d47892f803a9892", "score": "0.0", "text": "onKeyEvent(event){\n const status = event.type ==='keydown'\n \n switch(event.keyCode){\n case KEY_UP:\n this.movement.up = status\n this.vy = -SPEED\n \n ...
[ { "docid": "539bb0249e2bb208067a3a4221749284", "score": "0.6857637", "text": "Keydown(event) {\n let keyObj = this.Keyboard[event.keyCode];\n if(keyObj) keyObj.IsPressed = true;\n }", "title": "" }, { "docid": "2c1639c3867b9f1d27ed96af8f94ab77", "score": "0.6701913", ...
182a1ad3203c89022fc9b5aaac4aaa6f
Find out state of hands
[ { "docid": "f69b6e0257e148f0250842ff84587a69", "score": "0.5909634", "text": "function updateHandState(handState, hand) {\n switch (handState) {\n case 'closed':\n drawHand(hand, 1, 255);\n break;\n\n case 'open':\n drawHand(hand, 0, 255);\n break;\n\n case 'lasso':\n ...
[ { "docid": "7d85a8bb5082aa1aa939356fe3f14e97", "score": "0.6680085", "text": "getStates() {\n /**\n * Handles extra calculations for weboji morphs\n */\n const morphs = this.data.morphs\n const state = this.data.state || {}\n\n // Smiles\n state.smileRight =\n morphs[0] > thi...
2ac79dd2cbe97667370faac7d31417dd
ensures that an exploration is selected by selecting the first in the list
[ { "docid": "5a36db222d81194364ff1137c098b4ff", "score": "0.6405469", "text": "function ensureExplorationSelected(){\n\tif (!selectedExploration && userLoggedOn() && currentUser.explorations.length > 0){\n\n\t\tvar explTimeStamp = explChooser.options[0].id;\n\t\tvar userExpl = currentUser.getExploration(...
[ { "docid": "4d73e4529ab29f01d8aa6e180379a83e", "score": "0.68566203", "text": "function selectFirst() { \n steps.some(function (step, i) {\n if (step.visible) {\n step.activate();\n return true;\n }\n });\n }", "title": "" ...
0e0e02c1d1336b6befbb7f91c05e607c
Escapes a json pointer path
[ { "docid": "e864bcdadf93c68fc6c6548b803a11cc", "score": "0.5573519", "text": "function escapePathComponent(path) {\r\n\t if (path.indexOf('/') === -1 && path.indexOf('~') === -1)\r\n\t return path;\r\n\t return path.replace(/~/g, '~0').replace(/\\//g, '~1');\r\n\t}", "title": "" } ]
[ { "docid": "55cb4b0265c7f561a5199c9163cfa728", "score": "0.76757246", "text": "function escapeJsonPointerToken(token) {\n return external_querystring_browser_default.a.escape(token.replace(/~/g, '~0').replace(/\\//g, '~1'));\n}", "title": "" }, { "docid": "cb9a86fa9e6dbe55308e0beddbf1d8c9",...
7612464f7cf2ed7ca47f56802191506d
WHEN I open the planner THEN the current day is displayed at the top of the calendar handle displaying the time
[ { "docid": "2d839c76cf0a1553cd27281db12c198b", "score": "0.6039734", "text": "function displayTime() {\n var rightNow = moment();\n timeDisplayEl.text(rightNow.format('MMM DD, YYYY'));\n}", "title": "" } ]
[ { "docid": "3e3507515aea8e8c6cc0c2577ddd061c", "score": "0.67426026", "text": "function plantOfTheDay(){\n\tfindDate();\n\tshowDate();\n}", "title": "" }, { "docid": "a2dff6c4edbf2145191472141d3943d9", "score": "0.6718862", "text": "function displayTime() {\n\tvar rightNow = moment()...
c54ff8842d2e19670fa01e190f4fab5e
! moment.js locale configuration
[ { "docid": "75e434d79e9510980c2bcbb320a0bdc4", "score": "0.0", "text": "function t(e,t,r,n){var a={s:[\"थोडया सॅकंडांनी\",\"थोडे सॅकंड\"],ss:[e+\" सॅकंडांनी\",e+\" सॅकंड\"],m:[\"एका मिणटान\",\"एक मिनूट\"],mm:[e+\" मिणटांनी\",e+\" मिणटां\"],h:[\"एका वरान\",\"एक वर\"],hh:[e+\" वरांनी\",e+\" वरां\"],d:[\"ए...
[ { "docid": "7f8d843d9cd5d5e6ead539004c6d6b17", "score": "0.7247602", "text": "function _initMomentLocale () {\n if (typeof (moment) === 'function') {\n let m = jQuery('html').attr('lang')\n if (m) {\n moment.locale(m)\n }\n }\n}", "title": "" }, { "docid": "46336da39fe253b1ef...