hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40068943022d366d3825ae4f877eb1c5aca3d17b | 1,730 | js | JavaScript | RockroboAlexaZones/script.js | MeisterTR/ioB-scripts | 6127ba7671399b621d06987392eada47f283b431 | [
"MIT"
] | 7 | 2018-07-22T08:52:58.000Z | 2019-10-10T19:12:28.000Z | RockroboAlexaZones/script.js | MeisterTR/ioB-scripts | 6127ba7671399b621d06987392eada47f283b431 | [
"MIT"
] | 8 | 2019-01-02T12:45:05.000Z | 2020-05-09T18:24:50.000Z | RockroboAlexaZones/script.js | MeisterTR/ioB-scripts | 6127ba7671399b621d06987392eada47f283b431 | [
"MIT"
] | null | null | null | let msg = "";
let id = "";
subscribe({
id: "alexa2.0.History.summary",
change: "ne"
}, function(obj) {
id = getState('alexa2.0.History.serialNumber'/*serialNumber*/).val
log('Starte id '+ id)
msg = obj.newState.val;
findrooms();
});
function findrooms (){
log(msg);
let stext = '';
// find keywor... | 26.212121 | 129 | 0.605202 |
4006a1dc40a87fa1eba20fb8909b31074090056c | 5,917 | js | JavaScript | assets/js/custom.js | bobi1539/yagami | b3127d7f99672af20ad2405ebc1b807cd1107750 | [
"MIT"
] | null | null | null | assets/js/custom.js | bobi1539/yagami | b3127d7f99672af20ad2405ebc1b807cd1107750 | [
"MIT"
] | null | null | null | assets/js/custom.js | bobi1539/yagami | b3127d7f99672af20ad2405ebc1b807cd1107750 | [
"MIT"
] | null | null | null | (function ($) {
"use strict";
$(document).ready(function () {
/*---------------------------------------------------
product carousel
----------------------------------------------------*/
$('.product-carousel').owlCarousel({
loop: true,
navText: ['<i... | 28.17619 | 101 | 0.258915 |
4006b656365b59c5e7254aba1200803c81e74e8b | 847 | js | JavaScript | routes/AccountRoutes.js | decoste/Project2 | aa3221400c216a4817e08aaa53ea029c7b888882 | [
"MIT"
] | null | null | null | routes/AccountRoutes.js | decoste/Project2 | aa3221400c216a4817e08aaa53ea029c7b888882 | [
"MIT"
] | 1 | 2021-01-20T23:11:20.000Z | 2021-01-20T23:11:20.000Z | routes/AccountRoutes.js | decoste/project2 | aa3221400c216a4817e08aaa53ea029c7b888882 | [
"MIT"
] | null | null | null | // Requiring our models and passport as we've configured it
const db = require("../models");
const passport = require("../config/passport");
module.exports = function(app) {
app.post("/api/user_data/balance", function(req, res) {
console.log("BALANCE!!!!!", req.body);
db.Accounts.update(req.bod... | 26.46875 | 70 | 0.482881 |
4006df44142fb9b4d66187e2554b24dfd9dd691f | 7,932 | js | JavaScript | PlanetVoodoo/scroll-path/scroll-path.js | gftruj/webzamples | b500ecb2171e288ae6a14a917816d300a6d374c3 | [
"MIT"
] | 19 | 2020-06-24T14:32:28.000Z | 2022-03-21T19:02:40.000Z | PlanetVoodoo/scroll-path/scroll-path.js | gftruj/webzamples | b500ecb2171e288ae6a14a917816d300a6d374c3 | [
"MIT"
] | 1 | 2021-02-11T20:04:49.000Z | 2021-02-16T20:50:50.000Z | PlanetVoodoo/scroll-path/scroll-path.js | gftruj/webzamples | b500ecb2171e288ae6a14a917816d300a6d374c3 | [
"MIT"
] | 13 | 2020-12-29T02:03:53.000Z | 2022-02-04T14:09:27.000Z | // originally by Jan Azzati
// https://github.com/protyze/aframe-curve-component
if (typeof AFRAME === 'undefined') {
throw new Error('Component attempted to register before AFRAME was available.');
}
/**
* Alongpath component for A-Frame.
* Move Entities along a predefined Curve
*/
AFRAME.registerComponent('s... | 37.065421 | 123 | 0.557741 |
40074cb13d5c1395be366d3be2a468aa46b94276 | 488 | js | JavaScript | test/run-wunit.js | zanachka/webdext | 4c3bda9a272063587fba1a5ce24bcfc715460aae | [
"MIT"
] | 80 | 2017-06-12T04:39:25.000Z | 2022-02-12T22:22:15.000Z | test/run-wunit.js | zanachka/webdext | 4c3bda9a272063587fba1a5ce24bcfc715460aae | [
"MIT"
] | null | null | null | test/run-wunit.js | zanachka/webdext | 4c3bda9a272063587fba1a5ce24bcfc715460aae | [
"MIT"
] | 18 | 2017-06-13T06:20:47.000Z | 2021-04-30T21:52:05.000Z | "use strict";
var system = require('system');
if (system.args.length !== 2) {
console.log('Usage: run-wunit.js URL');
phantom.exit(1);
}
var page = require('webpage').create();
page.onConsoleMessage = function(msg) {
console.log(msg);
};
page.open(system.args[1], function(status){
if (status !== "su... | 20.333333 | 48 | 0.590164 |
4008a017ee48338e5e6cad638650527a1a7b708f | 56 | js | JavaScript | web-app/src/pages/dappHEX/index.js | MIPPLTeam/MyERC20_1 | 0ea241323433d853d384665cd28ed0c94c50cd13 | [
"MIT"
] | null | null | null | web-app/src/pages/dappHEX/index.js | MIPPLTeam/MyERC20_1 | 0ea241323433d853d384665cd28ed0c94c50cd13 | [
"MIT"
] | null | null | null | web-app/src/pages/dappHEX/index.js | MIPPLTeam/MyERC20_1 | 0ea241323433d853d384665cd28ed0c94c50cd13 | [
"MIT"
] | null | null | null | import { DAppHEX } from './DAppHEX'
export { DAppHEX }
| 14 | 35 | 0.660714 |
400939bbde2243d537bfae6d200a09a5731e712b | 1,129 | js | JavaScript | exercicios/challenge-30/challenge-30.js | bernardorz/golbyJs | ec38b398f5f935fabead205ed21afb3a276a1a2e | [
"MIT"
] | null | null | null | exercicios/challenge-30/challenge-30.js | bernardorz/golbyJs | ec38b398f5f935fabead205ed21afb3a276a1a2e | [
"MIT"
] | 15 | 2021-05-09T01:46:07.000Z | 2021-09-02T13:40:45.000Z | curso-javascript-ninja-master/Couse-content/challenge-30/challenge-30.js | wellingtonn96/CoursesAndTuturials | 3f4a2027ff1ca0f90a694e2a6f09c96461174b81 | [
"MIT"
] | null | null | null | /*
A loja de carros será nosso desafio final. Na aula anterior, você fez a parte
do cadastro dos carros. Agora nós vamos começar a deixar ele com cara de
projeto mesmo.
Crie um novo repositório na sua conta do GitHub, com o nome do seu projeto.
Na hora de criar, o GitHub te dá a opção de criar o repositório com um
RE... | 34.212121 | 77 | 0.777679 |
400957c93f496da93c222ebfe5a6b2ad0edc20c2 | 170 | js | JavaScript | problem_one/algorithm.js | atrachier/euler_projects | 831a99bf6a3ab0c96cb6d792588862d17c07708d | [
"Apache-2.0"
] | null | null | null | problem_one/algorithm.js | atrachier/euler_projects | 831a99bf6a3ab0c96cb6d792588862d17c07708d | [
"Apache-2.0"
] | null | null | null | problem_one/algorithm.js | atrachier/euler_projects | 831a99bf6a3ab0c96cb6d792588862d17c07708d | [
"Apache-2.0"
] | null | null | null |
exports.countBy = function (x, y, n) {
const num = []
for (let i = 0; i < n; i++) {
if (i % x === 0 || i % y === 0) {
num.push(i)
}
}
return num
}
| 15.454545 | 38 | 0.405882 |
400a98427b1c44a9cb78ec50a4d69216d58e51a5 | 287 | js | JavaScript | app/store/configureStore.js | LibreTask/desktop | 7894816abc42f50038388f3b6aa7df92f53bcf83 | [
"MIT"
] | null | null | null | app/store/configureStore.js | LibreTask/desktop | 7894816abc42f50038388f3b6aa7df92f53bcf83 | [
"MIT"
] | 1 | 2018-11-03T22:36:19.000Z | 2018-11-03T22:36:19.000Z | app/store/configureStore.js | LibreTask/desktop | 7894816abc42f50038388f3b6aa7df92f53bcf83 | [
"MIT"
] | null | null | null | /*
* @link https://libretask.org/
* @license https://github.com/LibreTask/desktop/blob/master/LICENSE.md
*/
if (process.env.NODE_ENV === "production") {
module.exports = require("./configureStore.production");
} else {
module.exports = require("./configureStore.development");
}
| 26.090909 | 71 | 0.696864 |
400af8f5676819db8ff659295e165b9a0ded621f | 108 | js | JavaScript | package/ga.js | HomeofNever/Blog | afb6859ec3f23d18f744085170ede9e55d1e2a0e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | package/ga.js | HomeofNever/Blog | afb6859ec3f23d18f744085170ede9e55d1e2a0e | [
"CC-BY-4.0",
"MIT"
] | 9 | 2020-05-17T03:43:35.000Z | 2022-03-26T10:09:28.000Z | package/ga.js | HomeofNever/Blog | afb6859ec3f23d18f744085170ede9e55d1e2a0e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | const window = require("global/window")
window.ga_api = 'https://async-task.never.workers.dev/optical/blog' | 36 | 67 | 0.759259 |
400b45db3476cc190b64830411a487acc7fb2e4d | 5,564 | js | JavaScript | src/pages/Schedules/index.js | douglasbrandao21/semac-app | 656040be11b0dc9e091fb751038d9221e20228d8 | [
"MIT"
] | null | null | null | src/pages/Schedules/index.js | douglasbrandao21/semac-app | 656040be11b0dc9e091fb751038d9221e20228d8 | [
"MIT"
] | 1 | 2021-09-02T16:44:45.000Z | 2021-09-02T16:44:45.000Z | src/pages/Schedules/index.js | douglasbrandao21/semac-app | 656040be11b0dc9e091fb751038d9221e20228d8 | [
"MIT"
] | null | null | null | import React, { Fragment, useState, useEffect } from "react";
import { StyleSheet } from "react-native";
import * as Animatable from "react-native-animatable";
import Navbar from "~/components/Navbar";
import {
Container,
HeaderContainer,
HeaderSeparator,
Title,
ButtonsContainer,
Button,
ButtonActiveTe... | 24.619469 | 64 | 0.474479 |
400bcd178200264cbf828307636ba6432a5e8b76 | 1,948 | js | JavaScript | src/assets/js/scroll.js | therewasaguy/p5.js-website | f98ab325b88cfdbc726aa0aeb116d99c81f08b9d | [
"MIT"
] | 1 | 2020-08-04T21:51:11.000Z | 2020-08-04T21:51:11.000Z | src/assets/js/scroll.js | therewasaguy/p5.js-website | f98ab325b88cfdbc726aa0aeb116d99c81f08b9d | [
"MIT"
] | null | null | null | src/assets/js/scroll.js | therewasaguy/p5.js-website | f98ab325b88cfdbc726aa0aeb116d99c81f08b9d | [
"MIT"
] | null | null | null | /*
Hastily written scroll to fixed position:
TO DO:
- needs to not fail on resize of resize after scrolling,
- and needs to use animate() to add jquery easing
*/
// if (window.matchMedia("min-width:720px").matches) {
// var elementPosition = $('#menu').offset();
//
// $(window).scroll(function(){
// ... | 26.684932 | 73 | 0.575975 |
400d16c5799a187674cceb0853b6b89f4eead493 | 170 | js | JavaScript | src/utils/getAsyncData.js | chenx18/vue3.x_test | 3e0c2af822feceb0c4aa70a3978dd9aa45c25f16 | [
"MIT"
] | 58 | 2020-06-23T02:25:28.000Z | 2022-03-20T07:33:09.000Z | src/utils/getAsyncData.js | chenx18/vue3.x_test | 3e0c2af822feceb0c4aa70a3978dd9aa45c25f16 | [
"MIT"
] | 1 | 2020-10-11T02:49:05.000Z | 2022-02-10T08:32:06.000Z | src/utils/getAsyncData.js | chenx18/vue3.x_test | 3e0c2af822feceb0c4aa70a3978dd9aa45c25f16 | [
"MIT"
] | 26 | 2020-06-24T01:04:11.000Z | 2022-03-15T06:53:17.000Z | import { time } from './config'
//模拟ajax异步请求
const getAsyncData = data => {
return new Promise(res => setTimeout(() => res(data), time))
}
export default getAsyncData | 28.333333 | 64 | 0.682353 |
400d2d7c3767019592b202f6ee1dc6aa9c892f34 | 7,469 | js | JavaScript | src/views/measures/index.js | pasindumarasinghe/flame-coach-web | 149b7afd34c79c1addf66731c0586660cab7ab04 | [
"MIT"
] | null | null | null | src/views/measures/index.js | pasindumarasinghe/flame-coach-web | 149b7afd34c79c1addf66731c0586660cab7ab04 | [
"MIT"
] | 7 | 2021-10-10T01:38:37.000Z | 2021-12-05T18:46:02.000Z | src/views/measures/index.js | pasindumarasinghe/flame-coach-web | 149b7afd34c79c1addf66731c0586660cab7ab04 | [
"MIT"
] | 7 | 2021-10-15T15:30:19.000Z | 2022-03-19T19:25:04.000Z | import Grid from "@material-ui/core/Grid";
import { makeStyles } from "@material-ui/core";
import React, { useState } from "react";
import Page from "../../components/Page";
import WeightChart from "../../components/Charts/WeightChart";
import Events from "../../components/Charts/Events";
import { filterWeightsPerTime... | 30.991701 | 105 | 0.601419 |
400dd37e4d8025808d2dc62e54cea859347f7b60 | 1,477 | js | JavaScript | src/server.js | ntbm/SimpleTracker | 9ba06e873a94611a47945e7c328c27ff517ba71a | [
"MIT"
] | null | null | null | src/server.js | ntbm/SimpleTracker | 9ba06e873a94611a47945e7c328c27ff517ba71a | [
"MIT"
] | null | null | null | src/server.js | ntbm/SimpleTracker | 9ba06e873a94611a47945e7c328c27ff517ba71a | [
"MIT"
] | null | null | null | const bodyParser = require('body-parser')
const multer = require('multer')
main().then(app => {
const server = app.listen(process.env.PORT || 3000, () => {
console.log(`Server started at PORT ${process.env.PORT || 3000}`)
})
})
async function main () {
const app = require('express')()
app.use(bodyParser.... | 28.403846 | 73 | 0.61002 |
400f2d58288af943a9184855ca3c2073d52673eb | 860 | js | JavaScript | resources/assets/js/components/common/forms/file-upload.js | alooze/oioi.tmp | 52c44db4fb014ab46ce615d43b54c744b27465b3 | [
"MIT"
] | null | null | null | resources/assets/js/components/common/forms/file-upload.js | alooze/oioi.tmp | 52c44db4fb014ab46ce615d43b54c744b27465b3 | [
"MIT"
] | null | null | null | resources/assets/js/components/common/forms/file-upload.js | alooze/oioi.tmp | 52c44db4fb014ab46ce615d43b54c744b27465b3 | [
"MIT"
] | null | null | null | const form = document.querySelector('.dashboard__info-form')
if (form) {
form.addEventListener('change', e => {
if (e.target.matches('input[type=file]') && e.target.files && e.target.files[0]) {
const container = e.target.closest('.dashboard__info-file')
container.classList.add('active')
conta... | 33.076923 | 86 | 0.640698 |
400f5635e352c4ef1f262b5134588fc1443b6159 | 223 | js | JavaScript | src/system/init/initServerStatus.js | jason831127/streamyBackEnd | 71341fc3bd3bd51dcd19df521f15351aa0e11fd0 | [
"MIT"
] | null | null | null | src/system/init/initServerStatus.js | jason831127/streamyBackEnd | 71341fc3bd3bd51dcd19df521f15351aa0e11fd0 | [
"MIT"
] | null | null | null | src/system/init/initServerStatus.js | jason831127/streamyBackEnd | 71341fc3bd3bd51dcd19df521f15351aa0e11fd0 | [
"MIT"
] | null | null | null | module.exports = function (options) {
return new Promise(function (resolve, reject) {
if (!options) return reject(new Error('options required'));
/*
todo... 實作 server 狀態
*/
return resolve();
});
}; | 20.272727 | 63 | 0.609865 |
400f63d12e0447d3e8a500bea37a53fb1ea5fccb | 869 | js | JavaScript | nodeJS/ex/calculadora.js | Christiaan304/javascript | a44edc270bd33fed6e773812c1294897f29b890f | [
"MIT"
] | null | null | null | nodeJS/ex/calculadora.js | Christiaan304/javascript | a44edc270bd33fed6e773812c1294897f29b890f | [
"MIT"
] | null | null | null | nodeJS/ex/calculadora.js | Christiaan304/javascript | a44edc270bd33fed6e773812c1294897f29b890f | [
"MIT"
] | null | null | null | /*const prompt = require("prompt-sync")({sigint: true})*/
let n1 = prompt(`Digite o primeiro número: `)
let n2 = prompt(`Digite o segundo número: `)
let operacao = prompt(`Digite uma operação: `)
let sum = (n1, n2) => Number(n1) + Number(n2)
let sub = (n1, n2) => Number(n1) - Number(n2)
let mul = (n1, n2) => Number(n... | 24.828571 | 58 | 0.542002 |
400fbc6fe6e0f7c215cdd334feffe8cccd018526 | 568 | js | JavaScript | node_modules/@iconify-icons/vs/w-square.js | kimsoonil/react-material-redux | da7322577720e7f9d58018fca5f50a3efe42d7f7 | [
"MIT"
] | 1 | 2021-02-04T06:47:14.000Z | 2021-02-04T06:47:14.000Z | node_modules/@iconify-icons/vs/w-square.js | kimsoonil/react-material-redux | da7322577720e7f9d58018fca5f50a3efe42d7f7 | [
"MIT"
] | null | null | null | node_modules/@iconify-icons/vs/w-square.js | kimsoonil/react-material-redux | da7322577720e7f9d58018fca5f50a3efe42d7f7 | [
"MIT"
] | 1 | 2021-02-04T06:47:14.000Z | 2021-02-04T06:47:14.000Z | var data = {
"body": "<path d=\"M336 0h1120q139 0 237.5 98.5T1792 336v1120q0 139-98.5 237.5T1456 1792H336q-139 0-237.5-98.5T0 1456V336Q0 197 98.5 98.5T336 0zm918 1493q12 0 21-12.5t13-25t11-37.5l269-1044q7-27-9-51t-36-24h-179q-12 0-21 12.5t-13 25t-11 37.5l-134 521l-134-521q-6-24-11-37.5t-14-25.5t-20-12H806q-16 0-25.5 1... | 81.142857 | 498 | 0.725352 |
40104f22f3859bd6932cf8f0a1d9e379b6fef8ee | 253 | js | JavaScript | src/exceptions/FileHandlingError.js | bombies/DynamicJS | 8c1a0eb64766e04e5e6e518dac123d54c8eeaf1b | [
"Apache-2.0"
] | 1 | 2021-10-14T05:53:06.000Z | 2021-10-14T05:53:06.000Z | src/exceptions/FileHandlingError.js | bombies/DynamicJS | 8c1a0eb64766e04e5e6e518dac123d54c8eeaf1b | [
"Apache-2.0"
] | 32 | 2021-11-23T04:27:24.000Z | 2022-03-28T04:27:15.000Z | src/exceptions/FileHandlingError.js | bombies/DynamicJS | 8c1a0eb64766e04e5e6e518dac123d54c8eeaf1b | [
"Apache-2.0"
] | null | null | null | class FileHandlingError extends Error {
constructor(message = '') {
super();
this.name = 'FileHandlingError';
this.message = message;
}
}
module.exports = FileHandlingError;
FileHandlingError.prototype = Error.prototype; | 25.3 | 46 | 0.671937 |
401105123a7e748e3cb55f4b2fcb963597609ffe | 1,510 | js | JavaScript | packages/gnoll/commands/lib.js | sunflowerdeath/murloc | 05657349473f46faf42813be3b27afec855a64d7 | [
"Unlicense"
] | 3 | 2017-09-22T13:33:03.000Z | 2018-11-26T16:04:37.000Z | packages/gnoll/commands/lib.js | sunflowerdeath/murloc | 05657349473f46faf42813be3b27afec855a64d7 | [
"Unlicense"
] | 18 | 2017-09-28T17:53:59.000Z | 2022-03-08T22:21:42.000Z | packages/gnoll/commands/lib.js | sunflowerdeath/murloc | 05657349473f46faf42813be3b27afec855a64d7 | [
"Unlicense"
] | null | null | null | const path = require('path')
const emoji = require('node-emoji')
const chalk = require('chalk')
const rimrafSync = require('rimraf').sync
const getBabelConfig = require('../utils/getBabelConfig')
const paths = require('../utils/paths')
const BabelCompiler = require('../utils/babelCompiler')
module.exports = cmd => {... | 25.166667 | 68 | 0.662252 |
4013423b66aa5db35899f17dbeffaf408350ba9c | 348 | js | JavaScript | src/global/xx-bind-html.directive.js | calary/tms | 5470756b33c05d77616c0fc062640938f654000a | [
"MIT"
] | null | null | null | src/global/xx-bind-html.directive.js | calary/tms | 5470756b33c05d77616c0fc062640938f654000a | [
"MIT"
] | null | null | null | src/global/xx-bind-html.directive.js | calary/tms | 5470756b33c05d77616c0fc062640938f654000a | [
"MIT"
] | null | null | null | directive.$inject = ['$compile'];
function directive($compile){
return {
retrict: 'A',
link: function($scope, $ele, $attr){
$scope.$watch(function(){
return $scope.$eval($attr.xxBindHtml);
}, function(value){
$ele.html(value);
$compile($ele.contents())($scope);
});
}
};
}
... | 21.75 | 46 | 0.577586 |
40139e434ff41890719ad427a955c24b2877c80a | 1,611 | js | JavaScript | .eleventy.js | PastelAzalea/PastelAzalea.github.io | 94482e330ce4461bb1ccf749b71922b4226682d7 | [
"MIT"
] | null | null | null | .eleventy.js | PastelAzalea/PastelAzalea.github.io | 94482e330ce4461bb1ccf749b71922b4226682d7 | [
"MIT"
] | null | null | null | .eleventy.js | PastelAzalea/PastelAzalea.github.io | 94482e330ce4461bb1ccf749b71922b4226682d7 | [
"MIT"
] | null | null | null | const debug = require("debug")("eleventy-homepage");
const postcssImporter = require("postcss-import");
const autoprefixer = require("autoprefixer");
const tailwindcss = require("tailwindcss");
const postcss = require("postcss");
const fs = require("fs");
const uglifyJS = require("uglify-js");
const CleanCSS = require(... | 29.833333 | 75 | 0.649286 |
40145cf1255458ca74614f2a4a9952d792676a31 | 836 | js | JavaScript | index.js | anilkumar-adhikari/JWT_authentication | 1dc59d91cbbd5e9c1049a249dba6cbfdb94ff8a4 | [
"MIT"
] | null | null | null | index.js | anilkumar-adhikari/JWT_authentication | 1dc59d91cbbd5e9c1049a249dba6cbfdb94ff8a4 | [
"MIT"
] | null | null | null | index.js | anilkumar-adhikari/JWT_authentication | 1dc59d91cbbd5e9c1049a249dba6cbfdb94ff8a4 | [
"MIT"
] | null | null | null | const request = require('request');
const mongoose = require('mongoose');
const express = require('express');
const app = express();
const port = process.env.PORT || 9600;
require('dotenv/config');
const cors = require('cors');
// Import Routes
const authRoute = require('./routes/authRoute');
const privateRoute = requ... | 27.866667 | 106 | 0.696172 |
401709b29f17c1924a7e31cd9aacd8e80740a3e2 | 1,897 | js | JavaScript | modules/fileupload/fileuploadcontroller.js | contactjittu/expressapp | 9c5fb1348cebe943366716c47e9895a027d71bcc | [
"MIT"
] | 1 | 2018-09-28T20:56:30.000Z | 2018-09-28T20:56:30.000Z | modules/fileupload/fileuploadcontroller.js | contactjittu/expressapp | 9c5fb1348cebe943366716c47e9895a027d71bcc | [
"MIT"
] | 1 | 2021-05-10T23:49:20.000Z | 2021-05-10T23:49:20.000Z | modules/fileupload/fileuploadcontroller.js | contactjittu/expressapp | 9c5fb1348cebe943366716c47e9895a027d71bcc | [
"MIT"
] | 3 | 2017-09-29T10:59:32.000Z | 2018-07-16T10:46:07.000Z | 'use strict';
const express = require('express');
const router = express.Router();
const multer = require('multer');
const logger = require('../../utils/logger');
const fs = require('fs');
const dir = '././uploads';
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}
const storage = multer.diskStorage({
destination:... | 26.71831 | 91 | 0.611492 |
40174fc215e24661d7dbfd15fd79f975137868ac | 2,644 | js | JavaScript | dist/out-tsc/src/app/layout/chamados/chamados.component.js | IgorHenrique/chamados | 3d2ad2203ab6ba9525c0770021e062da3dcd5ba0 | [
"Apache-2.0"
] | null | null | null | dist/out-tsc/src/app/layout/chamados/chamados.component.js | IgorHenrique/chamados | 3d2ad2203ab6ba9525c0770021e062da3dcd5ba0 | [
"Apache-2.0"
] | null | null | null | dist/out-tsc/src/app/layout/chamados/chamados.component.js | IgorHenrique/chamados | 3d2ad2203ab6ba9525c0770021e062da3dcd5ba0 | [
"Apache-2.0"
] | null | null | null | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... | 48.962963 | 150 | 0.631241 |
401759800f66c8a35fab736431a768ec6dacb85a | 267 | js | JavaScript | client/src/game-context.js | ssauperl/dapp-connect6 | cc08c076280a0bcff602dad874cfea0bc1b87498 | [
"MIT"
] | null | null | null | client/src/game-context.js | ssauperl/dapp-connect6 | cc08c076280a0bcff602dad874cfea0bc1b87498 | [
"MIT"
] | null | null | null | client/src/game-context.js | ssauperl/dapp-connect6 | cc08c076280a0bcff602dad874cfea0bc1b87498 | [
"MIT"
] | null | null | null | import React from "react";
export const dotsColor = {
BLACK: 2,
WHITE: 1
}
export const GameContext = React.createContext({
gameboard: new Array(), turn: 0, playerColor: dotsColor.WHITE, web3: null, accounts: [], selectedAccount: null, contract: null
}); | 29.666667 | 130 | 0.696629 |
4017720cf2fd9d25884df50b96605549948241b0 | 494 | js | JavaScript | src/utils/report.js | eemila/warsawlo | 79f460ebf1e880607d61945c0daaaa0222a1f49a | [
"MIT"
] | null | null | null | src/utils/report.js | eemila/warsawlo | 79f460ebf1e880607d61945c0daaaa0222a1f49a | [
"MIT"
] | null | null | null | src/utils/report.js | eemila/warsawlo | 79f460ebf1e880607d61945c0daaaa0222a1f49a | [
"MIT"
] | null | null | null | const macroURL = 'https://script.google.com/macros/s/AKfycbycBZl68tLHTSJkHPqn_PGUNCsHZq6hA1fzC6vs9kT-r_HQxKU/exec'
const serialize = (data) => Object.entries(data).map(entry => `${ encodeURIComponent(entry[0])} = ${encodeURIComponent(entry[1])}`).join('&')
const report = ({title, description}) => {
let data {
t... | 30.875 | 141 | 0.674089 |
4017b31a4d05104fe9a7ba0f0196e9115338465d | 821 | js | JavaScript | assets/javascripts/kitten/components/molecules/boxes/doc-link-box/stories.js | KissKissBankBank/kitten | 9ddcc5fb8955e2d564bddf2b70a09bcb8b02fa3b | [
"MIT"
] | 44 | 2016-12-14T15:04:17.000Z | 2022-01-15T01:06:13.000Z | assets/javascripts/kitten/components/molecules/boxes/doc-link-box/stories.js | KissKissBankBank/kitten | 9ddcc5fb8955e2d564bddf2b70a09bcb8b02fa3b | [
"MIT"
] | 1,450 | 2016-12-08T13:38:38.000Z | 2022-03-31T16:53:56.000Z | assets/javascripts/kitten/components/molecules/boxes/doc-link-box/stories.js | KissKissBankBank/kitten | 9ddcc5fb8955e2d564bddf2b70a09bcb8b02fa3b | [
"MIT"
] | 3 | 2017-08-11T12:08:20.000Z | 2018-09-18T08:46:25.000Z | import React from 'react'
import { DocLinkBox } from './index'
import { DocsPage } from 'storybook/docs-page'
export default {
title: 'Molecules/Boxes/DocLinkBox',
component: DocLinkBox,
parameters: {
docs: {
page: () => <DocsPage filepath={__filename} importString="DocLinkBox" />,
},
},
decora... | 21.051282 | 79 | 0.628502 |
401a0139f5487bd182b0a80bda1c0bf3684c36b5 | 447 | js | JavaScript | frontend/src/ui/form/Keyboard/keyboards/KeyButton/KeyIcon/TenPower.js | HildoBijl/stepwise | 6b305aaebfc95028886384a840de1b8f8adbcf60 | [
"MIT"
] | null | null | null | frontend/src/ui/form/Keyboard/keyboards/KeyButton/KeyIcon/TenPower.js | HildoBijl/stepwise | 6b305aaebfc95028886384a840de1b8f8adbcf60 | [
"MIT"
] | 27 | 2020-06-11T12:33:20.000Z | 2022-03-23T17:01:40.000Z | frontend/src/ui/form/Keyboard/keyboards/KeyButton/KeyIcon/TenPower.js | HildoBijl/stepwise | 6b305aaebfc95028886384a840de1b8f8adbcf60 | [
"MIT"
] | null | null | null | import React from 'react'
import SvgIcon from '@material-ui/core/SvgIcon'
export default function Character({ char = '' }) {
return (
<SvgIcon>
<text textAnchor="middle" x="12" y="17" fontSize="14" fontFamily="KaTeX_Main, Times New Roman, serif">10</text>
<text textAnchor="middle" x="22" y="10" fontSize="9" f... | 37.25 | 131 | 0.671141 |
401aa14f0faf1268a0c994f464ba31a2dcc84b5f | 1,866 | js | JavaScript | js/startup_tables.js | Mrena/PlaceInfo | b9695cb55f1963cc54e5f79c505fe7084f80a89d | [
"MIT"
] | null | null | null | js/startup_tables.js | Mrena/PlaceInfo | b9695cb55f1963cc54e5f79c505fe7084f80a89d | [
"MIT"
] | null | null | null | js/startup_tables.js | Mrena/PlaceInfo | b9695cb55f1963cc54e5f79c505fe7084f80a89d | [
"MIT"
] | null | null | null | var startup_da_tables = require("./data_access/startup_da_tables");
var startup_tables = function(client,mysql_con,fs){
client.on("create_location_table",function(){
try{
startup_da_tables.createLocationTable(client,mysql_con,fs);
}catch(error){
console.log(error);
}
}).on("delete_lo... | 17.277778 | 68 | 0.585745 |
401b0c50c18735ade81fbcf275192fce31cdadd7 | 805 | js | JavaScript | src/hooks/populate-archivos-compartidos.js | ajomuch92/X-Code-Editor-Backend | 906155d0cc8b3a5371b46a283f036b61fdbb129d | [
"MIT"
] | null | null | null | src/hooks/populate-archivos-compartidos.js | ajomuch92/X-Code-Editor-Backend | 906155d0cc8b3a5371b46a283f036b61fdbb129d | [
"MIT"
] | null | null | null | src/hooks/populate-archivos-compartidos.js | ajomuch92/X-Code-Editor-Backend | 906155d0cc8b3a5371b46a283f036b61fdbb129d | [
"MIT"
] | null | null | null | // Use this hook to manipulate incoming or outgoing data.
// For more information on hooks see: http://docs.feathersjs.com/api/hooks.html
// eslint-disable-next-line no-unused-vars
module.exports = function (options = {}) {
return async context => {
let result = context.result;
let app = context.app;
let... | 29.814815 | 79 | 0.614907 |
401be5aa71dad01bc47eb9ab68abfe574de4126f | 1,724 | js | JavaScript | client/src/components/auth/authactions.js | RyleeAndrews/Total-Screen-Design-Manager-Front-End | 94659174d39ac741fca411eb06c10a6e147bb4ca | [
"MIT"
] | null | null | null | client/src/components/auth/authactions.js | RyleeAndrews/Total-Screen-Design-Manager-Front-End | 94659174d39ac741fca411eb06c10a6e147bb4ca | [
"MIT"
] | null | null | null | client/src/components/auth/authactions.js | RyleeAndrews/Total-Screen-Design-Manager-Front-End | 94659174d39ac741fca411eb06c10a6e147bb4ca | [
"MIT"
] | null | null | null |
'use strict';
import superagent from 'superagent';
import cookie from 'react-cookies';
export const authLogin = (user={}) => dispatch => {
let token = cookie.load("auth");
let authMethod = () => authenticateUsingBasic(user); // {}
if ( token ) { authMethod = () => authenticateUsingToken(token);}
return ... | 21.02439 | 68 | 0.62355 |
401c4120d8558b33a88f56aa101a341ceeb33a2e | 5,544 | js | JavaScript | imports/movies/ui/helpers/movies-create.js | andrewjrhill/kubrick | d333c24d5b64b2206919f99c0e11b8ca94d21d6c | [
"Apache-2.0"
] | 1 | 2018-05-03T13:04:09.000Z | 2018-05-03T13:04:09.000Z | imports/movies/ui/helpers/movies-create.js | andrewjrhill/kubrick | d333c24d5b64b2206919f99c0e11b8ca94d21d6c | [
"Apache-2.0"
] | 2 | 2019-08-06T08:08:09.000Z | 2021-05-09T11:02:51.000Z | imports/movies/ui/helpers/movies-create.js | andrewjrhill/kubrick | d333c24d5b64b2206919f99c0e11b8ca94d21d6c | [
"Apache-2.0"
] | null | null | null | import { _ } from 'meteor/underscore';
import { Template } from 'meteor/templating';
import { sAlert } from 'meteor/juliancwirko:s-alert';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { TheMovieDB } from '/imports/movies/api/TheMovieDB.js';
import { State } from '/imports/global/api/State.js';
impor... | 30.8 | 106 | 0.671717 |
401c9d7fa0f64057fee41165934b834354fde705 | 234 | js | JavaScript | src/Components/Input.js | MortezaMirjavadi/simple_graph_visualizer | 4e84c95aee7e822bdef097a09a76361db5a4ebbc | [
"MIT"
] | null | null | null | src/Components/Input.js | MortezaMirjavadi/simple_graph_visualizer | 4e84c95aee7e822bdef097a09a76361db5a4ebbc | [
"MIT"
] | null | null | null | src/Components/Input.js | MortezaMirjavadi/simple_graph_visualizer | 4e84c95aee7e822bdef097a09a76361db5a4ebbc | [
"MIT"
] | null | null | null | import React from "react";
export default ({ value, getInput, inputId }) => (
<div>
<textarea
value={value}
id={inputId}
onChange={(e) => getInput(e.target.value)}
className={"input"}
/>
</div>
);
| 18 | 50 | 0.551282 |
401e008a94929998c15ba7cd89f5dd4eaa54a935 | 4,767 | js | JavaScript | gulpfile.js | educandu/saml-test-app | 2106fcf2973f1e8a884888fd0222b46704409b2e | [
"MIT"
] | null | null | null | gulpfile.js | educandu/saml-test-app | 2106fcf2973f1e8a884888fd0222b46704409b2e | [
"MIT"
] | null | null | null | gulpfile.js | educandu/saml-test-app | 2106fcf2973f1e8a884888fd0222b46704409b2e | [
"MIT"
] | null | null | null | import url from 'url';
import del from 'del';
import gulp from 'gulp';
import log from 'fancy-log';
import mkdirp from 'mkdirp';
import selfsigned from 'selfsigned';
import { promises as fs } from 'fs';
import Graceful from 'node-graceful';
import { spawn } from 'child_process';
import { Docker } from 'docker-cli-js';
... | 31.156863 | 114 | 0.685127 |
401e0df9d67c2bfb983fd54f7ade70d6f774e698 | 5,589 | js | JavaScript | react-app/src/pages/Houses/index.js | willtecti/mvp-cli-multas | e1ffee4f39489e0364040596c507cafa421c0155 | [
"CC0-1.0"
] | null | null | null | react-app/src/pages/Houses/index.js | willtecti/mvp-cli-multas | e1ffee4f39489e0364040596c507cafa421c0155 | [
"CC0-1.0"
] | 11 | 2021-05-10T23:56:11.000Z | 2022-03-26T01:10:25.000Z | react-app/src/pages/Houses/index.js | willtecti/mvp-cli-multas | e1ffee4f39489e0364040596c507cafa421c0155 | [
"CC0-1.0"
] | null | null | null | import React, { useState, useEffect, useRef } from "react";
import InternalTemplate from '../../templates/Internal'
import service from '../../services/api'
import MapBox from '../../containers/MapBox'
import Error from '../../components/Error'
import Loading from '../../components/Loading'
import {TOKEN} from '../..... | 33.872727 | 144 | 0.455359 |
401e17bd9c4e4ac9f7b195c11e0c6906b1000b69 | 2,326 | js | JavaScript | public/serviceworker.js | perepaul/forex | 77d9b737873ea766f007fb435f4121a548e03e2d | [
"MIT"
] | null | null | null | public/serviceworker.js | perepaul/forex | 77d9b737873ea766f007fb435f4121a548e03e2d | [
"MIT"
] | null | null | null | public/serviceworker.js | perepaul/forex | 77d9b737873ea766f007fb435f4121a548e03e2d | [
"MIT"
] | null | null | null | var staticCacheName = "pwa-v" + new Date().getTime();
var CACHE = 'cache-update-and-refresh';
var filesToCache = [
// '/about',
// '/faq',
// '/privacy',
// '/terms',
// '/login',
// '/register',
'/offline',
'/css/user/app.css',
'/js/user/app.js',
'/images/icons/icon-72x72.png',
... | 29.820513 | 81 | 0.592863 |
401e53062501112eb7f5ac1230c1cf38e052b69f | 1,237 | js | JavaScript | js-test-suite/testsuite/8bc4ad88837b199dcab1c62f224ee41f.js | hao-wang/Montage | d1c98ec7dbe20d0449f0d02694930cf1f69a5cea | [
"MIT"
] | 16 | 2020-03-23T12:53:10.000Z | 2021-10-11T02:31:50.000Z | js-test-suite/testsuite/8bc4ad88837b199dcab1c62f224ee41f.js | hao-wang/Montage | d1c98ec7dbe20d0449f0d02694930cf1f69a5cea | [
"MIT"
] | null | null | null | js-test-suite/testsuite/8bc4ad88837b199dcab1c62f224ee41f.js | hao-wang/Montage | d1c98ec7dbe20d0449f0d02694930cf1f69a5cea | [
"MIT"
] | 1 | 2020-08-17T14:06:59.000Z | 2020-08-17T14:06:59.000Z | load("201224b0d1c296b45befd2285e95dd42.js");
function f(l, m) {
var a = NaN;
var b = 13;
var c = "test";
var d = undefined;
var e = null;
var f = 15.7;
var g = Math.fround(189777.111);
var h = "ABC";
var i = String.fromCharCode(65, 65, 65);
var j = {};
var k = Math.fround("".... | 24.254902 | 44 | 0.506063 |
401ee1a3f0ee71c94f8c6302a1d47a02f57c3617 | 657 | js | JavaScript | src/actions/editProduct.js | meganthadev/stw-frontend | 449ab97d22c07d5a7007a743264ba17a3367d1ed | [
"Unlicense"
] | 1 | 2021-12-07T18:40:45.000Z | 2021-12-07T18:40:45.000Z | src/actions/editProduct.js | meganthadev/stw-frontend | 449ab97d22c07d5a7007a743264ba17a3367d1ed | [
"Unlicense"
] | null | null | null | src/actions/editProduct.js | meganthadev/stw-frontend | 449ab97d22c07d5a7007a743264ba17a3367d1ed | [
"Unlicense"
] | null | null | null |
export const editProduct = (data) => {
return (dispatch) => {
fetch(`http://localhost:3000/api/v1/products/${data.id}`, {
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
},
method: 'PATCH',
body: JS... | 28.565217 | 72 | 0.418569 |
401ee1fba2d4bc3a8e61398c5e4b30f3920dca6c | 1,441 | js | JavaScript | frontend/client/src/components/viewReservationsStaff/EditMealOrder.js | oSirhcel/SES10_eRestaurant | 2744792a2a21e2c1f035e7f9111b7e7771f5ea48 | [
"MIT"
] | null | null | null | frontend/client/src/components/viewReservationsStaff/EditMealOrder.js | oSirhcel/SES10_eRestaurant | 2744792a2a21e2c1f035e7f9111b7e7771f5ea48 | [
"MIT"
] | null | null | null | frontend/client/src/components/viewReservationsStaff/EditMealOrder.js | oSirhcel/SES10_eRestaurant | 2744792a2a21e2c1f035e7f9111b7e7771f5ea48 | [
"MIT"
] | null | null | null | import React from 'react';
import Grid from '@material-ui/core/Grid';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import ReservationDetailsForm from './ReservationDetailsForm';
import ReviewTable from '../createMealOrder/ReviewTable';
import MealOrderController fr... | 31.326087 | 122 | 0.5517 |
401f60d41cc58d4ce3a26058d353b9904adc1f71 | 8,600 | js | JavaScript | scripts/cheat-sheet.js | briwagner/briwagner.github.io | e5d3d3bf2700d5526d65ad6cb3d94004d18d56ca | [
"MIT"
] | null | null | null | scripts/cheat-sheet.js | briwagner/briwagner.github.io | e5d3d3bf2700d5526d65ad6cb3d94004d18d56ca | [
"MIT"
] | null | null | null | scripts/cheat-sheet.js | briwagner/briwagner.github.io | e5d3d3bf2700d5526d65ad6cb3d94004d18d56ca | [
"MIT"
] | null | null | null | var cheatSheet = [
{
title: "count {|obj| block }",
content: "Returns the number of items in enum through enumeration. If an argument is given, the number of items in enum that are equal to item are counted. If a block is given, it counts the number of elements yielding a true value.",
example: "ary = [1,... | 53.416149 | 534 | 0.610233 |
40201c5c1797b1a499803c7cb2e404cd6ed2430b | 1,150 | js | JavaScript | src/store.js | isratjahanen/chrome-event-countdown | ca0993c1756e1d27ad7004797c44961f1a34b4af | [
"MIT"
] | 1 | 2021-12-06T13:11:32.000Z | 2021-12-06T13:11:32.000Z | src/store.js | isratjahanen/chrome-event-countdown | ca0993c1756e1d27ad7004797c44961f1a34b4af | [
"MIT"
] | 7 | 2020-09-11T16:52:35.000Z | 2022-02-18T07:26:33.000Z | src/store.js | isratjahanen/chrome-event-countdown | ca0993c1756e1d27ad7004797c44961f1a34b4af | [
"MIT"
] | 1 | 2021-07-14T21:54:25.000Z | 2021-07-14T21:54:25.000Z | import Vue from 'vue';
import Vuex from 'vuex';
import { set } from '@/utils/storage';
Vue.use(Vuex);
export default new Vuex.Store({
state: {
events: [],
},
mutations: {
ADD_EVENT(state, event) {
state.events.push(event);
},
REMOVE_EVENT(state, eventId) {
const index = state.event... | 19.491525 | 84 | 0.566087 |
402215e28b1de9619f9b9ae7fedd7221779a67d9 | 3,550 | js | JavaScript | chatty_server/server.js | jlum07/chatty-app | 188b9fa84be5b8f4828d8c3db0cca1ade77bf3fc | [
"MIT"
] | null | null | null | chatty_server/server.js | jlum07/chatty-app | 188b9fa84be5b8f4828d8c3db0cca1ade77bf3fc | [
"MIT"
] | null | null | null | chatty_server/server.js | jlum07/chatty-app | 188b9fa84be5b8f4828d8c3db0cca1ade77bf3fc | [
"MIT"
] | null | null | null | // server.js
const express = require('express');
const SocketServer = require('ws').Server;
const querystring = require('querystring');
const fetch = require('node-fetch');
const uuidv4 = require('uuid/v4');
// Set the port to 3001
const PORT = 3001;
// Create a new express server
const server = express()
// Ma... | 23.202614 | 105 | 0.567042 |
4022e2fa0d924db666934cda97f10276ace95c59 | 3,151 | js | JavaScript | gci-vci-react/src/helpers/provisional_helpers.js | ClinGen/gene-and-variant-curation-tools | 30f21d8f03d8b5c180c1ce3cb8401b5abc660080 | [
"MIT"
] | 1 | 2021-09-17T20:39:07.000Z | 2021-09-17T20:39:07.000Z | gci-vci-react/src/helpers/provisional_helpers.js | ClinGen/gene-and-variant-curation-tools | 30f21d8f03d8b5c180c1ce3cb8401b5abc660080 | [
"MIT"
] | 133 | 2021-08-29T17:24:26.000Z | 2022-03-25T17:24:31.000Z | gci-vci-react/src/helpers/provisional_helpers.js | ClinGen/gene-and-variant-curation-tools | 30f21d8f03d8b5c180c1ce3cb8401b5abc660080 | [
"MIT"
] | null | null | null |
export const individualScraper = (individuals, individualMatched) => {
if (individuals) {
individuals.forEach(individual => {
if (individual.proband === true && (individual.variantScores && individual.variantScores.length)) {
individualMatched.push(individual);
}
});
}... | 57.290909 | 203 | 0.671533 |
402363cfad6ef49bd87ba8aa3e3fa36fe2f52733 | 552 | js | JavaScript | lib/commands.js | chunaft/sms-gaming | 8850620c879b24972f7069659268998e0629e505 | [
"MIT"
] | null | null | null | lib/commands.js | chunaft/sms-gaming | 8850620c879b24972f7069659268998e0629e505 | [
"MIT"
] | null | null | null | lib/commands.js | chunaft/sms-gaming | 8850620c879b24972f7069659268998e0629e505 | [
"MIT"
] | null | null | null | // const {
// singlePlayerWelcomeMsg,
// } = require('./messages');
// /**
// * Activates conversation mode
// * @param {("single-player" | "multi-player")} mode mode to activate
// * @param {Express.Request} req express request object
// * @returns {String} activated mode
// */
// async function activateMode(m... | 22.08 | 71 | 0.619565 |
40238184d608b6352c2b1ac73b7f90e8283f4d0b | 334 | js | JavaScript | lib/plugins/fallback.js | marek-saji/suchbot | e5a5af48d0a7bd6722cb1f72f779efb14ebf82f0 | [
"MIT"
] | null | null | null | lib/plugins/fallback.js | marek-saji/suchbot | e5a5af48d0a7bd6722cb1f72f779efb14ebf82f0 | [
"MIT"
] | 55 | 2015-10-15T07:36:00.000Z | 2020-07-19T16:56:40.000Z | lib/plugins/fallback.js | marek-saji/suchbot | e5a5af48d0a7bd6722cb1f72f779efb14ebf82f0 | [
"MIT"
] | null | null | null | const answers = [
'what?',
'Does not compute',
'lol, dunno',
'I have no idea what you mean by that'
];
function onMessage (event)
{
event.respond(answers);
return true;
}
function register (backend)
{
backend.eventEmitter.on('directedmessage', onMessage);
}
module.exports = {
register... | 15.181818 | 58 | 0.640719 |
402517e8974fe44cf6fb53b47dba94de8d51344b | 509 | js | JavaScript | client/src/dictionary.js | oxctdev/anet | 434523b1b9b6987ea769704b503d0f81ddfe19e5 | [
"MIT"
] | 26 | 2017-04-24T18:04:20.000Z | 2020-10-10T10:39:32.000Z | client/src/dictionary.js | oxctdev/anet | 434523b1b9b6987ea769704b503d0f81ddfe19e5 | [
"MIT"
] | 12 | 2017-04-24T17:55:35.000Z | 2017-11-27T13:39:11.000Z | client/src/dictionary.js | oxctdev/anet | 434523b1b9b6987ea769704b503d0f81ddfe19e5 | [
"MIT"
] | 35 | 2017-05-26T22:44:48.000Z | 2022-03-30T00:49:38.000Z |
function Dictionary() {
this._dictionary = {}
this.lookup = function(key, scope = {}) {
let dictEntry = this._dictionary[key] || ""
//Replace each replacement key based on the 'with' object.
if (typeof dictEntry === 'string') {
Object.keys(scope).forEach(key =>
dictEntry = dictEntry.replace('%{' + ke... | 18.178571 | 63 | 0.652259 |
40251a397ac67de61e4b95c35dea0595bca40488 | 137 | js | JavaScript | frontend/src/pages/Details/styles.js | matheussantiago12/CompaniesSolution | f7cfdb49a09f77688ea986ba35f958587cbf3712 | [
"PHP-3.0",
"PHP-3.01",
"IJG",
"Zend-2.0"
] | 4 | 2020-06-19T16:35:39.000Z | 2021-04-14T21:34:04.000Z | frontend/src/pages/Details/styles.js | matheussantiago12/CompaniesSolution | f7cfdb49a09f77688ea986ba35f958587cbf3712 | [
"PHP-3.0",
"PHP-3.01",
"IJG",
"Zend-2.0"
] | 1 | 2021-02-02T16:29:01.000Z | 2021-02-02T16:29:01.000Z | frontend/src/pages/Details/styles.js | matheussantiago12/CompaniesSolution | f7cfdb49a09f77688ea986ba35f958587cbf3712 | [
"PHP-3.0",
"PHP-3.01",
"IJG",
"Zend-2.0"
] | null | null | null | import styled from 'styled-components';
export const Container = styled.div`
width: 80%;
padding: 50px 0;
margin: 0 auto;
`; | 19.571429 | 39 | 0.664234 |
4025b38ac55928cdcddb56ff3ba88ec4375bd628 | 1,013 | js | JavaScript | routes/api/super_user.js | narendraiiitl/Hostel-Managment-Portal | aa71be965bd41c38c41ccd90f979142f51c89527 | [
"MIT"
] | null | null | null | routes/api/super_user.js | narendraiiitl/Hostel-Managment-Portal | aa71be965bd41c38c41ccd90f979142f51c89527 | [
"MIT"
] | null | null | null | routes/api/super_user.js | narendraiiitl/Hostel-Managment-Portal | aa71be965bd41c38c41ccd90f979142f51c89527 | [
"MIT"
] | null | null | null | const express = require("express");
const bodyParser = require("body-parser");
const auth = require("../../middleware/authsuperuser");
const Admin = require("../../models/Admin");
const { reset } = require("nodemon");
const router = express.Router();
router.use(bodyParser.urlencoded({ extended: true }));
router.get("... | 28.138889 | 98 | 0.625864 |
4025ebad37ef7bce70463b028b39cd630556ed5d | 931 | js | JavaScript | index.js | dutake/Shake | 3bb7eaaf27ab14b3a5f868af99c7b2132d5a5ef5 | [
"MIT"
] | 1 | 2020-12-05T03:16:17.000Z | 2020-12-05T03:16:17.000Z | index.js | dutake/Shake | 3bb7eaaf27ab14b3a5f868af99c7b2132d5a5ef5 | [
"MIT"
] | 1 | 2022-01-14T03:32:19.000Z | 2022-01-14T03:32:19.000Z | index.js | dutake/Shake | 3bb7eaaf27ab14b3a5f868af99c7b2132d5a5ef5 | [
"MIT"
] | 1 | 2020-11-28T02:49:06.000Z | 2020-11-28T02:49:06.000Z | const { Plugin } = require('powercord/entities');
module.exports = class Shake extends Plugin {
startPlugin() {
powercord.api.commands.registerCommand({
command: 'shake',
description: 'Shakes your screen',
usage: '{c} <time in seconds>',
executor: async (args) => {
this.generateShake(args);
retu... | 23.871795 | 112 | 0.626208 |
4026184cd6cd09999d00c96e14e1a0b92f4edaef | 13,657 | js | JavaScript | test/test-mongo.js | alexander34ro/chimera-framework-file-support | b8c7ed46ad1ed9e90d9c4b6cd43cfd57c018f95e | [
"MIT"
] | 11 | 2017-09-17T15:02:48.000Z | 2021-12-18T16:21:12.000Z | test/test-mongo.js | goFrendiAsgard/chimera | cfa0c98af685de8696e30f507eba66a72e684b66 | [
"MIT"
] | 1 | 2018-03-21T08:20:42.000Z | 2018-03-23T06:44:16.000Z | test/test-mongo.js | goFrendiAsgard/chimera | cfa0c98af685de8696e30f507eba66a72e684b66 | [
"MIT"
] | 11 | 2017-09-23T01:26:57.000Z | 2021-07-18T15:31:30.000Z | /* eslint-env mocha */
const chai = require('chai')
const assert = chai.assert
const chimera = require('../index.js')
const mongo = chimera.mongo
let softDb = mongo.db('mongodb://localhost/test')
let hardDb = mongo.db('mongodb://localhost/test', {excludeDeleted: false, showHistory: true})
let softGod = mongo.collecti... | 28.995754 | 199 | 0.582119 |
40264ed74fda081a8bbfa2f11f429f9ea595cbb4 | 4,908 | js | JavaScript | DotVPN-2018/js/proxy.js | akalankauk/Cracked-Chrome-Extensions | 2b6e0791b0baa804d9d0a6c69115c67d1719f654 | [
"MIT"
] | 12 | 2018-03-15T22:42:16.000Z | 2021-07-12T04:56:48.000Z | DotVPN-2018/js/proxy.js | PraneethMadush/Cracked-Chrome-Extensions | 2b6e0791b0baa804d9d0a6c69115c67d1719f654 | [
"MIT"
] | 1 | 2019-03-02T15:20:13.000Z | 2021-02-27T02:36:12.000Z | DotVPN-2018/js/proxy.js | akalankauk/Cracked-Chrome-Extensions | 2b6e0791b0baa804d9d0a6c69115c67d1719f654 | [
"MIT"
] | 10 | 2018-03-17T15:44:45.000Z | 2021-12-14T15:55:01.000Z | /**
* Controls the state of the current proxy being used by Chrome.
*
* @constructor
*/
ProxyController = function()
{
// Global status that states if the custom proxy is set.
//this.proxyStatus = false;
// Listen on Proxy Errors.
chrome.proxy.onProxyError.addListener(this.onProxyError.bind(this... | 31.664516 | 84 | 0.47555 |
4026b69678f52957204b6c7cfdf2bfb74ecd4a59 | 3,415 | js | JavaScript | admin/conferences/conferences.committee.js | ejgr-mtsiw/mini-proj2 | be447d1d1d8baab89e1befadfe50660bd55903cf | [
"MIT"
] | null | null | null | admin/conferences/conferences.committee.js | ejgr-mtsiw/mini-proj2 | be447d1d1d8baab89e1befadfe50660bd55903cf | [
"MIT"
] | null | null | null | admin/conferences/conferences.committee.js | ejgr-mtsiw/mini-proj2 | be447d1d1d8baab89e1befadfe50660bd55903cf | [
"MIT"
] | null | null | null | // References to HTML objects
const tblCommittee = document.getElementById("tblCommittee");
const tabCommittee = document.getElementById("nav-committee-tab");
const renderCommittee = async (idConference, conferenceName, urlBase) => {
let strHtml = `
<thead >
<tr><th class='w-100 text-c... | 35.572917 | 175 | 0.482284 |
4026e230fbe9406af5462695d438c97f58dc932d | 134 | js | JavaScript | vite-with-bws/main.js | idlist/issue-repros | c82b5b9e2aa8cc8991e46dd96e7c96c3e9d0faed | [
"MIT"
] | null | null | null | vite-with-bws/main.js | idlist/issue-repros | c82b5b9e2aa8cc8991e46dd96e7c96c3e9d0faed | [
"MIT"
] | null | null | null | vite-with-bws/main.js | idlist/issue-repros | c82b5b9e2aa8cc8991e46dd96e7c96c3e9d0faed | [
"MIT"
] | null | null | null | import { KeepLiveWS } from 'bilibili-live-ws'
new KeepLiveWS(5082)
document.querySelector('#root').innerHTML = `
<p>我加载出来了!</p>
`
| 16.75 | 45 | 0.69403 |
402762de443769ff47d4653f17182c3e7f95826b | 259 | js | JavaScript | public/src/js/comments.js | Shupscom/Developer-Digest | e02f076d74f77a9109fc93af05b4e0ae6ce62c27 | [
"MIT"
] | null | null | null | public/src/js/comments.js | Shupscom/Developer-Digest | e02f076d74f77a9109fc93af05b4e0ae6ce62c27 | [
"MIT"
] | null | null | null | public/src/js/comments.js | Shupscom/Developer-Digest | e02f076d74f77a9109fc93af05b4e0ae6ce62c27 | [
"MIT"
] | null | null | null | /**
* Created by BJ on 20/09/2016.
*/
$(document).ready(function(){
$('.delete').on('click',function(event){
event.preventDefault();
bootbox.confirm('Are you sure',function(){
});
});
function deleteComment(){
}
});
| 16.1875 | 49 | 0.540541 |
40276351fde1068c87f6ea0e21581312a452f8c2 | 52 | js | JavaScript | widgets/HomeButton/nls/vi/strings.js | chenweigis/NovMap | 60b05edcaa9090e492bd7ecfd4d36dbdc2f4ed8e | [
"Apache-2.0"
] | 1 | 2021-02-25T21:24:28.000Z | 2021-02-25T21:24:28.000Z | wab/widgets/HomeButton/nls/vi/strings.js | saurabhgis/Calcitw_WAB | fa5f2e4c11ad65812684debced258d2dd43df253 | [
"MIT"
] | 6 | 2017-05-25T17:35:14.000Z | 2018-06-22T17:49:38.000Z | wab/widgets/HomeButton/nls/vi/strings.js | saurabhgis/Calcitw_WAB | fa5f2e4c11ad65812684debced258d2dd43df253 | [
"MIT"
] | 1 | 2018-06-22T16:54:09.000Z | 2018-06-22T16:54:09.000Z | define(
({
_widgetLabel: "Trang chủ"
})
); | 10.4 | 29 | 0.5 |
4028d1ae025bf8e025d61f80b8ffb68aea09da98 | 1,023 | js | JavaScript | day04/javascript/tschulte/solution.js | matason/aoc-2018 | e3aea3906c26beafbeff32c1c5afbac9bb6a94df | [
"MIT"
] | 17 | 2018-11-24T21:47:57.000Z | 2021-12-05T18:06:27.000Z | day04/javascript/tschulte/solution.js | matason/aoc-2018 | e3aea3906c26beafbeff32c1c5afbac9bb6a94df | [
"MIT"
] | 12 | 2018-11-28T20:42:30.000Z | 2021-05-07T22:57:00.000Z | day04/javascript/tschulte/solution.js | matason/aoc-2018 | e3aea3906c26beafbeff32c1c5afbac9bb6a94df | [
"MIT"
] | 17 | 2018-11-27T10:32:45.000Z | 2018-12-16T23:51:55.000Z | #!/usr/bin/env node
const parseLine = require("./part1.js").parseLine;
const guardMostAsleep = require("./part1.js").guardMostAsleep;
const overlappingSleepTimes = require("./part1.js").overlappingSleepTimes;
const fs = require("fs");
const input = fs.readFileSync("input.txt", "utf-8");
// tag::part1[]
const lines =... | 28.416667 | 74 | 0.68915 |
40292c7dc0184fe1ec9b4426208221d7cfeaa702 | 4,903 | js | JavaScript | protected/assets/ajax-upload/au.js | lamhq/yii2-cms | 38ed53815deaddca9f7b10ba89c7c7618dc8729b | [
"BSD-3-Clause"
] | null | null | null | protected/assets/ajax-upload/au.js | lamhq/yii2-cms | 38ed53815deaddca9f7b10ba89c7c7618dc8729b | [
"BSD-3-Clause"
] | null | null | null | protected/assets/ajax-upload/au.js | lamhq/yii2-cms | 38ed53815deaddca9f7b10ba89c7c7618dc8729b | [
"BSD-3-Clause"
] | null | null | null | String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.replace(new RegExp(search, 'g'), replacement);
};
(function( $ ) {
$.fn.ajaxUpload = function($options) {
var options = $options;
var createEmptyItem = function () {
var inputName = options.name;
if (options.multip... | 27.700565 | 90 | 0.612482 |
40297216126040a3209a1d3fc050d7cd31e6ba68 | 582 | js | JavaScript | .eslintrc.js | skleinjung/shift | 4c18c50cfa171009a1417f8f02cc7dbd7b5694ff | [
"ISC"
] | 1 | 2021-12-07T05:04:33.000Z | 2021-12-07T05:04:33.000Z | .eslintrc.js | skleinjung/shift | 4c18c50cfa171009a1417f8f02cc7dbd7b5694ff | [
"ISC"
] | 130 | 2021-10-31T01:20:17.000Z | 2021-11-30T22:43:57.000Z | .eslintrc.js | skleinjung/shift | 4c18c50cfa171009a1417f8f02cc7dbd7b5694ff | [
"ISC"
] | null | null | null | module.exports = {
extends: [
'react-app',
'react-app/jest',
'@twindigital',
],
overrides: [
{
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
rules: {
// this rule has bugs that give nonsensical errors for our types:
// 'Member constructor should be declared before all priv... | 25.304348 | 102 | 0.560137 |
40298244e84df24aebeffd62792866db0928688d | 1,100 | js | JavaScript | config/alphabet/alphabet-aseMW.js | sutton-signwriting/signmaker | 2dd134e5f819e9e1c5e18d36941623b18c345913 | [
"MIT"
] | 3 | 2021-12-17T13:44:44.000Z | 2022-01-01T21:04:27.000Z | config/alphabet/alphabet-aseMW.js | sutton-signwriting/signmaker | 2dd134e5f819e9e1c5e18d36941623b18c345913 | [
"MIT"
] | null | null | null | config/alphabet/alphabet-aseMW.js | sutton-signwriting/signmaker | 2dd134e5f819e9e1c5e18d36941623b18c345913 | [
"MIT"
] | null | null | null | window.alphabet = {
S10000: ["S10000", "S10110", "S10610", "S10a10", "S10b10"],
S10e00: ["S10e00", "S11010", "S11210", "S11310", "S11510", "S11810", "S11b10", "S11d10"],
S11e00: ["S14110"],
S14400: ["S14510", "S14710"],
S14c00: ["S14c00", "S15010", "S15310", "S15a10", "S15b10", "S15d10", "S16d10", "S17610", "... | 40.740741 | 121 | 0.574545 |
4029ccfe7f8a15ae41b7a638dc08052bc8886d3b | 1,698 | js | JavaScript | src/components/Login/Login.js | luizmr/amazon-clone-app | 87d7bd99ce90c17dc8d87bac6d370561ebab757d | [
"MIT"
] | null | null | null | src/components/Login/Login.js | luizmr/amazon-clone-app | 87d7bd99ce90c17dc8d87bac6d370561ebab757d | [
"MIT"
] | null | null | null | src/components/Login/Login.js | luizmr/amazon-clone-app | 87d7bd99ce90c17dc8d87bac6d370561ebab757d | [
"MIT"
] | null | null | null | import React, { useState } from "react";
import { Link, useHistory } from "react-router-dom";
import logo from "../../assets/blacklogo.png";
import "./Login.css";
import { auth } from "../../firebase/firebase";
function Login() {
const history = useHistory();
const [email, setEmail] = useState("");
const [password,... | 22.945946 | 64 | 0.594229 |
402c50aa6224844bd90aa0cd1aaf2f51f20bf210 | 822 | js | JavaScript | docs/api/html/da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment.js | tbela99/css | 11a1e5597c37cd1ddc28e76e2e5d21973dd4dcba | [
"MIT"
] | 8 | 2020-06-12T13:19:21.000Z | 2022-02-20T07:32:04.000Z | docs/api/html/da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment.js | tbela99/css | 11a1e5597c37cd1ddc28e76e2e5d21973dd4dcba | [
"MIT"
] | 39 | 2020-01-13T07:01:13.000Z | 2022-01-19T23:52:44.000Z | docs/api/html/da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment.js | tbela99/css | 11a1e5597c37cd1ddc28e76e2e5d21973dd4dcba | [
"MIT"
] | 2 | 2020-08-10T21:29:41.000Z | 2021-12-02T17:04:02.000Z | var classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment =
[
[ "evaluate", "da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment.html#ac9dad18176ee7194b72e239c69575679", null ],
[ "render", "da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionCo... | 102.75 | 150 | 0.854015 |
402d5b858ded6399833e8135bbe0ca79b5a1fa98 | 82 | js | JavaScript | src/schemas/Graph.js | seeden/livia | 161a12877f24c5c68d20fb4f8c94d689673af40a | [
"Apache-2.0"
] | 8 | 2015-06-13T07:01:38.000Z | 2016-07-02T20:10:52.000Z | src/schemas/Graph.js | seeden/livia | 161a12877f24c5c68d20fb4f8c94d689673af40a | [
"Apache-2.0"
] | 2 | 2016-01-12T15:31:14.000Z | 2020-04-03T05:10:56.000Z | src/schemas/Graph.js | seeden/livia | 161a12877f24c5c68d20fb4f8c94d689673af40a | [
"Apache-2.0"
] | 1 | 2016-12-05T22:32:00.000Z | 2016-12-05T22:32:00.000Z | import Schema from './Schema';
export default class Graph extends Schema {
}
| 16.4 | 44 | 0.707317 |
402e0769714244e8f87957d9011242a34918382f | 2,909 | js | JavaScript | node_modules/caniuse-lite/data/regions/EC.js | thekitbag/todoodleoo-client | 4d1fb939f3a70107d51a555ec0df497e14d1b298 | [
"Apache-2.0"
] | 42 | 2021-11-17T12:53:34.000Z | 2022-03-27T12:41:39.000Z | node_modules/caniuse-lite/data/regions/EC.js | thekitbag/todoodleoo-client | 4d1fb939f3a70107d51a555ec0df497e14d1b298 | [
"Apache-2.0"
] | 14 | 2021-11-15T11:00:51.000Z | 2022-02-15T07:43:44.000Z | tokweb/node_modules/caniuse-lite/data/regions/EC.js | tokera-com/ate | 42c4ce5a0c0aef47aeb4420cc6dc788ef6ee8804 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-12-08T19:50:08.000Z | 2021-12-08T19:50:08.000Z | module.exports={C:{"51":0.00499,"52":0.02995,"58":0.00499,"64":0.00499,"66":0.00998,"68":0.00998,"72":0.01497,"73":0.01497,"78":0.05989,"80":0.00998,"81":0.00998,"84":0.00998,"88":0.04492,"89":0.02496,"90":0.01497,"91":0.04492,"92":0.01497,"93":0.00998,"94":0.01996,"95":0.02496,"96":0.02995,"97":1.05809,"98":1.9964,"99... | 1,454.5 | 2,908 | 0.58955 |
402ecdd1725d7168caf01dfe8b690372409faf31 | 272 | js | JavaScript | lib/config/awsConfig.js | alexisHetic/S3ImagesResizer | 54ad16008f712b5ea18b3408ea9df5bb249dc376 | [
"MIT"
] | null | null | null | lib/config/awsConfig.js | alexisHetic/S3ImagesResizer | 54ad16008f712b5ea18b3408ea9df5bb249dc376 | [
"MIT"
] | null | null | null | lib/config/awsConfig.js | alexisHetic/S3ImagesResizer | 54ad16008f712b5ea18b3408ea9df5bb249dc376 | [
"MIT"
] | null | null | null |
const getAWSCredentials = () => ({
s3Bucket : process.env.S3_BUCKET,
region : process.env.S3_BUCKET_REGION,
accessKeyId : process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
})
export default getAWSCredentials
| 27.2 | 53 | 0.716912 |
4032018457797467c2dbe424d222a9f662770c82 | 1,412 | js | JavaScript | webpack.prod.js | raakeshmadana/markitdown | 4cf86fed6b9d721117159c9bd75b478a9fbda230 | [
"MIT"
] | 3 | 2018-07-31T08:24:49.000Z | 2019-06-30T07:48:07.000Z | webpack.prod.js | raakeshmadana/markitdown | 4cf86fed6b9d721117159c9bd75b478a9fbda230 | [
"MIT"
] | null | null | null | webpack.prod.js | raakeshmadana/markitdown | 4cf86fed6b9d721117159c9bd75b478a9fbda230 | [
"MIT"
] | null | null | null | const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const Optimi... | 26.641509 | 78 | 0.593484 |
403203205bebe97460c717d12d7e0fd465ebba54 | 32,776 | js | JavaScript | api/resolver/generic/AggregationBuilder.js | axax/lunuc | 928192c686647891c542945a9471ebe1887b46d0 | [
"MIT"
] | 4 | 2019-06-01T09:53:33.000Z | 2021-09-01T19:25:34.000Z | api/resolver/generic/AggregationBuilder.js | axax/lunuc | 928192c686647891c542945a9471ebe1887b46d0 | [
"MIT"
] | null | null | null | api/resolver/generic/AggregationBuilder.js | axax/lunuc | 928192c686647891c542945a9471ebe1887b46d0 | [
"MIT"
] | null | null | null | import Util from 'api/util'
import {getType} from 'util/types'
import {getFormFieldsByType} from 'util/typesAdmin'
import {ObjectId} from 'mongodb'
import config from 'gen/config'
import Hook from 'util/hook'
const comparatorMap = {
':': '$regex',
'=': '$regex',
'==': '$eq',
'===': '$eq',
'>': '$gt... | 34.720339 | 191 | 0.443007 |
4033ab222c5fc4b9cd2b1f5aec505f4d33ceb879 | 1,745 | js | JavaScript | src/containers/_nav.js | fahim-006/impact_adminpanel | 202c812ea8b72c84fc8ea7c26a04624e1295eb4c | [
"MIT"
] | null | null | null | src/containers/_nav.js | fahim-006/impact_adminpanel | 202c812ea8b72c84fc8ea7c26a04624e1295eb4c | [
"MIT"
] | null | null | null | src/containers/_nav.js | fahim-006/impact_adminpanel | 202c812ea8b72c84fc8ea7c26a04624e1295eb4c | [
"MIT"
] | null | null | null | import React from "react";
import CIcon from "@coreui/icons-react";
const _nav = [
{
_tag: "CSidebarNavItem",
name: "Dashboard",
to: "/dashboard",
icon: <CIcon name="cil-speedometer" customClasses="c-sidebar-nav-icon" />,
badge: {
color: "info",
text: "NEW",
},
},
... | 22.662338 | 83 | 0.538109 |
4033e9bad27f02ec81823b13accd126a1b9a8971 | 2,997 | js | JavaScript | client/src/components/cards-game-mode.js | saramorais/Flashcards | d54924a150c4cdd9a4ab95607cf46bfc64d82a44 | [
"MIT"
] | null | null | null | client/src/components/cards-game-mode.js | saramorais/Flashcards | d54924a150c4cdd9a4ab95607cf46bfc64d82a44 | [
"MIT"
] | null | null | null | client/src/components/cards-game-mode.js | saramorais/Flashcards | d54924a150c4cdd9a4ab95607cf46bfc64d82a44 | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import '../style/cards.css';
import { connect } from 'react-redux';
import { fetchCards } from '../actions';
import { Link } from 'react-router-dom';
class CardsGame extends Component {
constructor(props) {
super(props);
this.state = {
currentIndex: 0,
cu... | 27 | 160 | 0.582583 |
40351c2d713d711786067458790c06707784946f | 6,519 | js | JavaScript | Dashboard_front/src/components/Dashboard/components/WidgetsContainer.js | extragornax/dashboard_epitech | 41386beb3a8f347cc4cdefc8bb62140c22700ebb | [
"MIT"
] | null | null | null | Dashboard_front/src/components/Dashboard/components/WidgetsContainer.js | extragornax/dashboard_epitech | 41386beb3a8f347cc4cdefc8bb62140c22700ebb | [
"MIT"
] | null | null | null | Dashboard_front/src/components/Dashboard/components/WidgetsContainer.js | extragornax/dashboard_epitech | 41386beb3a8f347cc4cdefc8bb62140c22700ebb | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import Widget from './Widget';
import axios from 'axios'
import './Widget.css';
export default class WidgetsContainer extends Component {
constructor(props) {
super(props);
this.state = {
data: [],
meteoData: [],
meteoDataSky: [],
apiWidgetAPI: "api/Widget/",
t... | 27.978541 | 80 | 0.612517 |
1a9a0976e0f976f255473b44742aa85dd64cbbfe | 336 | js | JavaScript | src/queries/get-countries.js | tanshunyuan/woo-next | 680d4f9890c72d69d8395d171001e7913b7e2b6c | [
"MIT"
] | null | null | null | src/queries/get-countries.js | tanshunyuan/woo-next | 680d4f9890c72d69d8395d171001e7913b7e2b6c | [
"MIT"
] | null | null | null | src/queries/get-countries.js | tanshunyuan/woo-next | 680d4f9890c72d69d8395d171001e7913b7e2b6c | [
"MIT"
] | null | null | null | import { gql } from "@apollo/client";
/**
* GraphQL countries query.
*/
const GET_COUNTRIES = gql`
query GET_COUNTRIES {
wooCountries {
billingCountries {
countryCode
countryName
}
shippingCountries {
countryCode
countryName
}
}
}
`;
export default... | 15.272727 | 37 | 0.595238 |
1a9ae9d3fb557ec128ed86d0b27a679163046b40 | 1,276 | js | JavaScript | docs/.vuepress/config.js | exreplay/vuex-decorators | 46113bb13aa6f2ced1cbbae331772873742794bd | [
"MIT"
] | null | null | null | docs/.vuepress/config.js | exreplay/vuex-decorators | 46113bb13aa6f2ced1cbbae331772873742794bd | [
"MIT"
] | 4 | 2019-11-02T09:58:32.000Z | 2020-05-22T13:20:54.000Z | docs/.vuepress/config.js | exreplay/vuex-decorators | 46113bb13aa6f2ced1cbbae331772873742794bd | [
"MIT"
] | null | null | null | module.exports = {
title: 'Vuex Decorators',
description: 'Official documentation for @averjs/vuex-decorators',
themeConfig: {
repo: 'exreplay/vuex-decorators',
displayAllHeaders: true,
sidebarDepth: 1,
nav: [
{ text: 'Guide', link: '/guide/' },
{ text: 'Release Notes', link: 'https://... | 25.52 | 93 | 0.468652 |
1a9bfacd5e2e8b4ea3b8863edbdcead1b4d34216 | 2,780 | js | JavaScript | __tests__/generic-name.test.js | fossabot/jest-serializer-functions | e4bf53e88a5e96117f8c742e44f897517ecec449 | [
"MIT"
] | null | null | null | __tests__/generic-name.test.js | fossabot/jest-serializer-functions | e4bf53e88a5e96117f8c742e44f897517ecec449 | [
"MIT"
] | 39 | 2019-03-04T11:15:20.000Z | 2021-08-10T20:39:40.000Z | __tests__/generic-name.test.js | pauldcomanici/jest-serializer-functions | fc658b504596de1baea6fe93ace476f92221043c | [
"MIT"
] | 1 | 2019-05-01T09:50:30.000Z | 2019-05-01T09:50:30.000Z | // tested
import genericName from './../src/generic-name';
// services
import utils from './../src/utils';
jest.mock('./../src/utils');
describe('genericName', () => {
const mocks = {
propName: 'nameForProp',
};
const genericNameByKey = genericName(mocks.propName);
let testSpecificMocks;
beforeAll(() =... | 29.263158 | 94 | 0.65 |
1a9cddef95fca397b2605c3551499c5276192903 | 2,098 | js | JavaScript | src/pages/PetPage.js | 503292/goit-react-hw-04-pet-store | 4ac9672bd0c7726ccf16aae1e9d6203971a0e149 | [
"Unlicense"
] | null | null | null | src/pages/PetPage.js | 503292/goit-react-hw-04-pet-store | 4ac9672bd0c7726ccf16aae1e9d6203971a0e149 | [
"Unlicense"
] | 5 | 2020-09-07T14:27:48.000Z | 2022-02-26T19:00:33.000Z | src/pages/PetPage.js | 503292/goit-react-hw-04-pet-store | 4ac9672bd0c7726ccf16aae1e9d6203971a0e149 | [
"Unlicense"
] | null | null | null | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import GoBackBtn from '../components/GoBackBtn/GoBackBtn';
import pets from '../pets.json';
import css from './Pages.module.css';
class PetPage extends Component {
state = {};
findOnePet = () => {
const { match } = this.props;
r... | 28.351351 | 73 | 0.559581 |
1a9d930861a7d1078af783a26cf4771a6af14d11 | 1,203 | js | JavaScript | csaf-validator-lib/lib/optionalTests/optionalTest_6_2_4.js | secvisogram/csaf-validator-service | 07a375c8ab81a519a6ad5fa724d7e5db3dba7c13 | [
"MIT"
] | null | null | null | csaf-validator-lib/lib/optionalTests/optionalTest_6_2_4.js | secvisogram/csaf-validator-service | 07a375c8ab81a519a6ad5fa724d7e5db3dba7c13 | [
"MIT"
] | null | null | null | csaf-validator-lib/lib/optionalTests/optionalTest_6_2_4.js | secvisogram/csaf-validator-service | 07a375c8ab81a519a6ad5fa724d7e5db3dba7c13 | [
"MIT"
] | null | null | null | import Ajv from 'ajv/dist/jtd.js'
const ajv = new Ajv()
const inputSchema = /** @type {const} */ ({
additionalProperties: true,
properties: {
document: {
additionalProperties: true,
properties: {
tracking: {
additionalProperties: true,
properties: {
revisio... | 22.698113 | 97 | 0.591022 |
1a9df5c0c372be033e9409f5e15f6bd06d8f47da | 1,723 | js | JavaScript | public/javascripts/admin/application.js | hasham2/radiant | 401cb538e2695412e169b2e8d053847512bb71a2 | [
"MIT"
] | 1 | 2016-05-08T17:16:47.000Z | 2016-05-08T17:16:47.000Z | public/javascripts/admin/application.js | hasham2/radiant | 401cb538e2695412e169b2e8d053847512bb71a2 | [
"MIT"
] | null | null | null | public/javascripts/admin/application.js | hasham2/radiant | 401cb538e2695412e169b2e8d053847512bb71a2 | [
"MIT"
] | null | null | null | // Popup Images
Popup.BorderImage = '/images/admin/popup_border_background.png';
Popup.BorderTopLeftImage = '/images/admin/popup_border_top_left.png';
Popup.BorderTopRightImage = '/images/admin/popup_border_top_right.png';
Popup.BorderBottomLeftImage = '/images/admin/popup_border_bottom_left.png';
Po... | 33.134615 | 77 | 0.691236 |
1a9e345e946de55b1387fba8fd2396fee6d4bbb2 | 1,322 | js | JavaScript | recipe-category/recipe-category.service.js | AndreLuisReisSantos/sistoqueBackEnd | 11cf298c47eca2271f851649675191d18c721411 | [
"MIT"
] | null | null | null | recipe-category/recipe-category.service.js | AndreLuisReisSantos/sistoqueBackEnd | 11cf298c47eca2271f851649675191d18c721411 | [
"MIT"
] | null | null | null | recipe-category/recipe-category.service.js | AndreLuisReisSantos/sistoqueBackEnd | 11cf298c47eca2271f851649675191d18c721411 | [
"MIT"
] | null | null | null | const db = require('_helpers/db');
module.exports = {
getAll,
getById,
create,
update,
delete: _delete
};
async function getAll() {
return db.RecipeCategory.findAll();
}
async function getById(id) {
return getRecipeCategory(id);
}
async function create(payload) {
if (await db.RecipeC... | 25.921569 | 102 | 0.691377 |
1a9f279e7a4bce7732df2a102fea011de67f4b19 | 5,170 | js | JavaScript | src/actionresponse.js | aarong/feedme-server-core | 3d391e6dbca82ee7c05cd942c00e115501c472e9 | [
"MIT"
] | null | null | null | src/actionresponse.js | aarong/feedme-server-core | 3d391e6dbca82ee7c05cd942c00e115501c472e9 | [
"MIT"
] | 4 | 2020-07-17T02:16:43.000Z | 2021-09-06T12:56:53.000Z | src/actionresponse.js | aarong/feedme-server-core | 3d391e6dbca82ee7c05cd942c00e115501c472e9 | [
"MIT"
] | null | null | null | import check from "check-types";
import jsonExpressible from "json-expressible";
/**
* Represents an ActionResponse message.
* @typedef {Object} ActionResponse
*/
const proto = {};
/**
* Factory function.
* @param {Server} server
* @param {ActionRequest} areq
* @returns {ActionResponse}
*/
export default fun... | 26.927083 | 85 | 0.69207 |
1a9f5d33f1e9c8ffe5cb605aee2fcdf111a56e9a | 337 | js | JavaScript | docs/example/process/process-umask.js | tsejx/node-guidebook | 247171b628de140819e8ae0ae962b341d9d640ec | [
"MIT"
] | 7 | 2020-09-29T09:21:28.000Z | 2022-03-18T14:37:42.000Z | docs/example/process/process-umask.js | tsejx/node-guidebook | 247171b628de140819e8ae0ae962b341d9d640ec | [
"MIT"
] | 3 | 2020-09-04T15:41:14.000Z | 2022-02-22T13:17:24.000Z | docs/example/process/process-umask.js | tsejx/node-guidebook | 247171b628de140819e8ae0ae962b341d9d640ec | [
"MIT"
] | 2 | 2021-06-13T06:14:33.000Z | 2021-08-09T02:22:58.000Z | // process.umask() 方法用于返回或设置 Node.js 进程的默认创建文件的权限掩码
// 子进程从父进程集成这个掩码
// 不传参数时,默认返回当前掩码,如果传递了参数,创建文件掩码就被设置为参数值,并且返回之前的掩码
const newmask = 0o022;
const oldmask = process.umask(newmask);
console.log(`将 umask 从 ${oldmask.toString(8)} 更改为 ${newmask.toString(8)}`);
// 输出(示例):将 umask 从 22 更改为 22
// Worker 线程能够读取 umask,但是尝试设... | 28.083333 | 75 | 0.744807 |
1a9f6dcdbe995316ca8a240d2701c6b0f08e5bf6 | 1,023 | js | JavaScript | db/letUsSchema.js | IceFractal/LetUs | 4602e396a5d6caa83071cd3bea59347ebabc7346 | [
"MIT"
] | null | null | null | db/letUsSchema.js | IceFractal/LetUs | 4602e396a5d6caa83071cd3bea59347ebabc7346 | [
"MIT"
] | null | null | null | db/letUsSchema.js | IceFractal/LetUs | 4602e396a5d6caa83071cd3bea59347ebabc7346 | [
"MIT"
] | null | null | null | const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = mongoose.Schema.Types.ObjectId;
// define models
const Users = new Schema({
id: { type: String, unique: true, required: true },
name: { type: String, unique: true, required: true },
pic: String,
phoneNumber: String,
frien... | 28.416667 | 69 | 0.676442 |
1a9f7fe99ae01bf3e7127548e6e22968254df4fd | 2,329 | js | JavaScript | js/main.js | isacfadoni/Responsr | 69c96e2a5669e878dc77df966c81b4952663ff15 | [
"MIT"
] | 1 | 2016-05-31T12:54:20.000Z | 2016-05-31T12:54:20.000Z | js/main.js | isacfadoni/Responsr | 69c96e2a5669e878dc77df966c81b4952663ff15 | [
"MIT"
] | 1 | 2016-01-19T01:44:26.000Z | 2016-01-19T01:44:26.000Z | js/main.js | isacfadoni/Responsr | 69c96e2a5669e878dc77df966c81b4952663ff15 | [
"MIT"
] | null | null | null | /*
* Project: Responsr.
* Description: A simple tool for testing responsive layouts.
* Last Update: 2016/04/29
*
* Author: Isac Fadoni
* GitHub: https://github.com/isacfadoni/responsr.app
* Copyright: You can use or edit this code under the MIT license.
*
*/
var Responsr = Responsr || {};
;(function (field,... | 23.29 | 81 | 0.626878 |
1aa098dea613c868d8d0a9fbb219b988dd37f5f8 | 798 | js | JavaScript | __test__/lib/color-contrast-helper.test.js | dcCoder9/Spoke | d307b4590710d92aa9ebdf838d1293e80df28f91 | [
"MIT"
] | 3 | 2018-06-13T19:32:10.000Z | 2019-11-22T12:34:36.000Z | __test__/lib/color-contrast-helper.test.js | dcCoder9/Spoke | d307b4590710d92aa9ebdf838d1293e80df28f91 | [
"MIT"
] | 3 | 2020-12-03T03:35:54.000Z | 2021-09-10T04:44:28.000Z | __test__/lib/color-contrast-helper.test.js | dcCoder9/Spoke | d307b4590710d92aa9ebdf838d1293e80df28f91 | [
"MIT"
] | 2 | 2020-08-18T19:32:05.000Z | 2022-01-29T12:52:51.000Z | import { setContrastingColor } from "../../src/lib/color-contrast-helper";
import theme from "../../src/styles/theme";
describe("test setContrastingColor", () => {
it("returns darkGray when a light color is passed in", () => {
expect(setContrastingColor("#fff")).toEqual(theme.colors.darkGray);
});
it("retu... | 33.25 | 90 | 0.657895 |
1aa0b6459061d8aefe6d85c6a864186e34c1e50a | 859 | js | JavaScript | client/src/components/Modal/Modal.js | GlebMaca/VR_spaceXwatch_map | 32418bcd5687a0893a32425630c1384e4e2f3471 | [
"MIT"
] | 1 | 2018-10-28T23:50:35.000Z | 2018-10-28T23:50:35.000Z | client/src/components/Modal/Modal.js | GlebMaca/VR_spaceXwatch_map | 32418bcd5687a0893a32425630c1384e4e2f3471 | [
"MIT"
] | null | null | null | client/src/components/Modal/Modal.js | GlebMaca/VR_spaceXwatch_map | 32418bcd5687a0893a32425630c1384e4e2f3471 | [
"MIT"
] | 3 | 2020-04-24T02:32:05.000Z | 2022-03-14T23:46:00.000Z | import React, {Component} from 'react';
import './Modal.css'
class Modal extends Component {
render(){
if(this.props.name) {
return(
<div className="modal">
<div onClick={this.props.closeMe} className="modal-close"> X Close</div>
<h2>{this.props.name}</h2>
... | 28.633333 | 83 | 0.49709 |
1aa0c7f7009a1528e4912b8e43589f2884e89cac | 667 | js | JavaScript | lib/SessionManager.js | zeyongTsai/egg-auths | faf1864738473efc266a0b2dc674c965ab0a2a0b | [
"MIT"
] | 3 | 2021-01-14T06:54:00.000Z | 2021-02-05T01:44:15.000Z | lib/SessionManager.js | zeyongTsai/egg-auths | faf1864738473efc266a0b2dc674c965ab0a2a0b | [
"MIT"
] | null | null | null | lib/SessionManager.js | zeyongTsai/egg-auths | faf1864738473efc266a0b2dc674c965ab0a2a0b | [
"MIT"
] | null | null | null | /**
* @class
* @classdesc 会话管理器,主要负责会话 id 的存取,默认在 session 中放置 token 的 uuid,也从 session 中取回
*/
class SessionManager {
/**
* @constructor
* @param {object} ctx egg's ctx
*/
constructor (ctx) {
/**
* egg 的 ctx 对象,通过它来调用相关的其他资源
* @public
*/
this.ctx = ctx
}
/**
* 获取会话 id
* @... | 17.102564 | 77 | 0.571214 |
1aa159a188dacf5f2ec4ef17e570bc03d1d4a702 | 1,293 | js | JavaScript | application/Browser/_Event/Server/native/_IndexedDB/Connector.min.js | nikitabelotelov/coffee | 63cd862b827337a373301677f02d341d59ce2485 | [
"MIT"
] | null | null | null | application/Browser/_Event/Server/native/_IndexedDB/Connector.min.js | nikitabelotelov/coffee | 63cd862b827337a373301677f02d341d59ce2485 | [
"MIT"
] | null | null | null | application/Browser/_Event/Server/native/_IndexedDB/Connector.min.js | nikitabelotelov/coffee | 63cd862b827337a373301677f02d341d59ce2485 | [
"MIT"
] | null | null | null | define("Browser/_Event/Server/native/_IndexedDB/Connector",["require","exports","Core/Deferred","Browser/_Event/Server/native/_IndexedDB/Writer","Browser/_Event/Server/native/_IndexedDB/Reader"],function(e,r,d,s,t){"use strict";if(Object.defineProperty(r,"__esModule",{value:true}),"undefined"!==typeof indexedDB&&null!=... | 1,293 | 1,293 | 0.766435 |
1aa1dff718e2ebe3d65bf01e2c7f15c38765d45a | 1,403 | js | JavaScript | core/examples/luigi-example-angular/src/assets/luigi-config.js | anandsgar-sap/luigi | 5d3418361f2e2fca5b959515274dfc0aa4e8ff8d | [
"Apache-2.0"
] | null | null | null | core/examples/luigi-example-angular/src/assets/luigi-config.js | anandsgar-sap/luigi | 5d3418361f2e2fca5b959515274dfc0aa4e8ff8d | [
"Apache-2.0"
] | null | null | null | core/examples/luigi-example-angular/src/assets/luigi-config.js | anandsgar-sap/luigi | 5d3418361f2e2fca5b959515274dfc0aa4e8ff8d | [
"Apache-2.0"
] | null | null | null | Luigi.setConfig({
navigation: {
nodes: () => [
{
pathSegment: 'project',
label: 'Project',
icon: 'home',
hideFromNav: true,
hideSideNav: true,
loadingIndicator: {
enabled: false
},
viewUrl: 'https://chr-16763-t1-i077611-streamlinecock... | 29.851064 | 245 | 0.546686 |
1aa26af8f39b43a1d6add01a9c899d9f3c829be0 | 215 | js | JavaScript | web/demo/server.js | vinloong/peter_notes | 93fe38dadc5b59ea85b03aff513baeb5f300049f | [
"MIT"
] | 2 | 2019-12-02T02:59:17.000Z | 2019-12-02T02:59:45.000Z | web/demo/server.js | vinloong/peter_notes | 93fe38dadc5b59ea85b03aff513baeb5f300049f | [
"MIT"
] | 6 | 2020-07-18T15:51:40.000Z | 2022-02-27T13:43:25.000Z | web/demo/server.js | uncle-dragon/peter_notes | 0054bb7f6ea4e10ca6e2b00e1c5c839aaad6de91 | [
"MIT"
] | 2 | 2018-11-23T12:42:17.000Z | 2021-10-14T03:22:15.000Z | /**
* Created by rain on 2016/1/25.
*/
'use strict';
/*jslint node:true*/
//from koa
const scaffold = require('fs-web-server-scaffold');
const config = require('./config.js');
module.exports = scaffold(config); | 17.916667 | 51 | 0.669767 |
1aa2999b858feafe0a7c4f9a934f51e19fcc0851 | 392 | js | JavaScript | test/wait.test.js | WKHAllen/dtp.js | fe0f4c934b8c92054be8ea6d16add4af915f8d8f | [
"MIT"
] | null | null | null | test/wait.test.js | WKHAllen/dtp.js | fe0f4c934b8c92054be8ea6d16add4af915f8d8f | [
"MIT"
] | null | null | null | test/wait.test.js | WKHAllen/dtp.js | fe0f4c934b8c92054be8ea6d16add4af915f8d8f | [
"MIT"
] | null | null | null | const { WaitGroup } = require('../dist/wait');
test('test wait group', async() => {
const wg = new WaitGroup();
wg.add(3);
expect(wg.getTotal()).toBe(3);
wg.done();
expect(wg.getTotal()).toBe(2);
wg.done();
expect(wg.getTotal()).toBe(1);
wg.done();
expect(wg.getTotal()).toBe(0);
wg.add();
expect(wg.getTot... | 19.6 | 46 | 0.596939 |
1aa29ed50ded19eaa20e715807311f012d81278e | 1,126 | js | JavaScript | stories/Counter.stories.js | hitosu/duckness | 47093d77e15676d55e797d855c0f42e7ead17d9f | [
"MIT"
] | 2 | 2020-05-20T12:28:35.000Z | 2021-01-25T00:45:20.000Z | stories/Counter.stories.js | hitosu/duckness | 47093d77e15676d55e797d855c0f42e7ead17d9f | [
"MIT"
] | 116 | 2020-07-25T02:21:49.000Z | 2022-03-28T08:07:43.000Z | stories/Counter.stories.js | hitosu/duckness | 47093d77e15676d55e797d855c0f42e7ead17d9f | [
"MIT"
] | null | null | null | import ReactReduxCounterPool from './apps/Counter/react-redux-pool/CounterPool'
import UsePoolCounterPool, { render as UsePoolCounterPool_render } from './apps/Counter/use-pool/CounterPool'
import UsePoolEpicCounterPool, {
render as UsePoolEpicCounterPool_render
} from './apps/Counter/use-pool-epic/CounterPool'
impor... | 37.533333 | 109 | 0.817052 |
1aa2d452dc3a0d85749a64e7dcd949190f275a16 | 708 | js | JavaScript | src/resolvers/Subscription.js | lfresnog/Blog_ExamenFinal | 32fa0a2f04cf1ebaf4258e9c7a7debc85e1ee184 | [
"MIT"
] | null | null | null | src/resolvers/Subscription.js | lfresnog/Blog_ExamenFinal | 32fa0a2f04cf1ebaf4258e9c7a7debc85e1ee184 | [
"MIT"
] | 3 | 2021-05-11T00:47:18.000Z | 2021-09-21T06:29:46.000Z | src/resolvers/Subscription.js | lfresnog/Blog_ExamenFinal | 32fa0a2f04cf1ebaf4258e9c7a7debc85e1ee184 | [
"MIT"
] | null | null | null | const Subscription = {
tellMe: {
subscribe: async (parent, args, ctx, info)=>{
const {mail,token,author} = args;
const {client,pubsub} = ctx;
const db = client.db("examenFinal");
const usersCollection = db.collection("users");
const userFinded = ... | 33.714286 | 90 | 0.591808 |
1aa2e2954f8efeda5034f27a6882a8ce48ccfac0 | 1,494 | js | JavaScript | js/inject.js | jsdelivrbot/huemix-blopscotch | 97cd95fbd8427323c3a73f2e5acc06648fc8d2e0 | [
"MIT"
] | null | null | null | js/inject.js | jsdelivrbot/huemix-blopscotch | 97cd95fbd8427323c3a73f2e5acc06648fc8d2e0 | [
"MIT"
] | null | null | null | js/inject.js | jsdelivrbot/huemix-blopscotch | 97cd95fbd8427323c3a73f2e5acc06648fc8d2e0 | [
"MIT"
] | null | null | null | var s = document.createElement('script');
s.src = "https://cdn.jsdelivr.net/gh/joshisa/huemix-blopscotch/js/hopscotch.highlight.js";
//s.onload = function() {
// this.parentNode.removeChild(this);
//};
(document.head || document.documentElement).appendChild(s);
chrome.extension.sendMessage({}, function... | 41.5 | 123 | 0.589692 |
1aa5d34400e19b7b6c00c5f5d8c95b9de87bde1c | 1,707 | js | JavaScript | assets/js/adminPanel.js | fahrudinwhb/hdr | 0f73aed99b5cb9e93613ac9d64cd0e6b249243d0 | [
"MIT"
] | null | null | null | assets/js/adminPanel.js | fahrudinwhb/hdr | 0f73aed99b5cb9e93613ac9d64cd0e6b249243d0 | [
"MIT"
] | null | null | null | assets/js/adminPanel.js | fahrudinwhb/hdr | 0f73aed99b5cb9e93613ac9d64cd0e6b249243d0 | [
"MIT"
] | null | null | null | $(document).ready(function(){
$('.button-collapse').sideNav();
$('select').material_select();
$('.modal-trigger').leanModal();
$('.materialboxed').materialbox();
$('.tooltipped').tooltip({delay: 20});
// if($(".sidebar").height()>$(".content").height()){
// $(".content").height($(".sidebar").height()... | 28.45 | 112 | 0.510838 |
1aa6c63fd4174dc761bc92520ce77be29adc50a5 | 237 | js | JavaScript | src/dk/ava/constants/TextAlign.js | martinrossil/avamjs | cbe857c14139bef04b6db088f835c094f41206cb | [
"MIT"
] | null | null | null | src/dk/ava/constants/TextAlign.js | martinrossil/avamjs | cbe857c14139bef04b6db088f835c094f41206cb | [
"MIT"
] | null | null | null | src/dk/ava/constants/TextAlign.js | martinrossil/avamjs | cbe857c14139bef04b6db088f835c094f41206cb | [
"MIT"
] | null | null | null | export default class TextAlign
{
// left|right|center|justify
static get LEFT(){ return "left" };
static get CENTER(){ return "center" };
static get RIGHT(){ return "right" };
static get FILL(){ return "justify" };
} | 29.625 | 43 | 0.632911 |
1aa6ef16e0b3175a1d061bb00bef5de4b8b4d52d | 271 | js | JavaScript | src/components/common/toast/index.js | Jane710/ghymall | abb84a954853660434ad8e31eff29de6f7a3cb2d | [
"MIT"
] | null | null | null | src/components/common/toast/index.js | Jane710/ghymall | abb84a954853660434ad8e31eff29de6f7a3cb2d | [
"MIT"
] | 2 | 2022-02-19T05:51:20.000Z | 2022-02-27T09:16:49.000Z | src/components/common/toast/index.js | Jane710/ghymall | abb84a954853660434ad8e31eff29de6f7a3cb2d | [
"MIT"
] | null | null | null | import Toast from './Toast'
const obj={}
obj.install=function(Vue){
const toastContrustor=Vue.extend(Toast)
const toast=new toastContrustor()
toast.$mount(document.createElement('div'))
document.body.appendChild(toast.$el)
Vue.prototype.$toast=toast;
}
export default obj | 27.1 | 43 | 0.785978 |
1aa753d295fd761d7bfa25672b0a6f99d6a9442f | 3,417 | js | JavaScript | duckduckgo-to-google-button.user.js | hpuac/userscripts | c857eb2eea6715758c2342937153986c2554c1b6 | [
"Unlicense"
] | null | null | null | duckduckgo-to-google-button.user.js | hpuac/userscripts | c857eb2eea6715758c2342937153986c2554c1b6 | [
"Unlicense"
] | null | null | null | duckduckgo-to-google-button.user.js | hpuac/userscripts | c857eb2eea6715758c2342937153986c2554c1b6 | [
"Unlicense"
] | null | null | null | // ==UserScript==
// @name DuckDuckGo to Google Button
// @namespace https://puac.de/
// @version 0.1.1
// @description Displays a button on DuckDuckGo that redirects to the same search on Google.
// @author Hans Puac
// @match https://duckduckgo.com/*
// @run-at document-end
// ==/U... | 61.017857 | 1,865 | 0.775534 |
1aa794e3f816451db75d76c57d12833b3c00d685 | 2,170 | js | JavaScript | sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_updates_service_principal_credential.js | AFengKK/azure-sdk-for-js | 5bad5ee4ef8407f7023bd5a7f2ab88b319b16b29 | [
"MIT"
] | 2 | 2020-01-14T11:06:26.000Z | 2022-01-12T08:31:22.000Z | sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_updates_service_principal_credential.js | AFengKK/azure-sdk-for-js | 5bad5ee4ef8407f7023bd5a7f2ab88b319b16b29 | [
"MIT"
] | 13 | 2019-07-17T15:53:17.000Z | 2019-07-25T22:29:53.000Z | sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_updates_service_principal_credential.js | AFengKK/azure-sdk-for-js | 5bad5ee4ef8407f7023bd5a7f2ab88b319b16b29 | [
"MIT"
] | 2 | 2022-01-14T20:55:04.000Z | 2022-01-14T21:22:35.000Z | let nock = require('nock');
module.exports.hash = "380cdec07305d595225bb62df352ebdc";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://endpoint:443', {"encodedQueryParams":true})
.patch('/metricsadvisor/v1.0/credentials/3ee2df85-919c-4e6a-b0b4-dca40b2d7b10', {"dataSourceCredentialType":"Servi... | 41.730769 | 332 | 0.732719 |
1aa8775cab4139093a2704717913aa6102aeff60 | 2,019 | js | JavaScript | src/renderer/curve/database-helper.js | metikha5/ReportGenerator | 9f25c3e1aba02bc29dec639b5063275033ada16e | [
"WTFPL"
] | null | null | null | src/renderer/curve/database-helper.js | metikha5/ReportGenerator | 9f25c3e1aba02bc29dec639b5063275033ada16e | [
"WTFPL"
] | null | null | null | src/renderer/curve/database-helper.js | metikha5/ReportGenerator | 9f25c3e1aba02bc29dec639b5063275033ada16e | [
"WTFPL"
] | null | null | null | import sqlite from 'sqlite-sync'
export default {
initDatabase(databasePath) {
sqlite.connect(databasePath)
},
_getTableColumns(table) {
return new Promise((resolve, reject) => {
sqlite.run(`PRAGMA table_info(${table});`, function(res) {
if (res.error) {
reject(new Error(res.erro... | 24.621951 | 96 | 0.515106 |
1aa9af00e5c65b0636a64d3b66683a894c806a38 | 2,751 | js | JavaScript | test/day-07/instruction-test.js | gbranchaudrubenovitch/advent-of-code-2015 | 117894867c39a401dd647abf90334871856317da | [
"MIT"
] | null | null | null | test/day-07/instruction-test.js | gbranchaudrubenovitch/advent-of-code-2015 | 117894867c39a401dd647abf90334871856317da | [
"MIT"
] | null | null | null | test/day-07/instruction-test.js | gbranchaudrubenovitch/advent-of-code-2015 | 117894867c39a401dd647abf90334871856317da | [
"MIT"
] | null | null | null | var expect = require("chai").expect;
var instructions = require("../../src/day-07/instructions");
describe("Wire connection instructions", () => {
it("can parse a signal-to-wire instruction", () => {
var parsedInstruction = instructions.fromString("123 -> x");
expect(parsedInstruction.from.signal).to.equal(1... | 42.984375 | 71 | 0.682661 |
1aab146050cee1cb97769df164ef3d1764371edf | 1,912 | js | JavaScript | encargado_sala.js | NestorAcabal/pruebaCrud | 1b6dbf0267d256bb0e8ad64eed953d78aa6f9a26 | [
"MIT"
] | null | null | null | encargado_sala.js | NestorAcabal/pruebaCrud | 1b6dbf0267d256bb0e8ad64eed953d78aa6f9a26 | [
"MIT"
] | 1 | 2021-05-10T03:59:05.000Z | 2021-05-10T03:59:05.000Z | encargado_sala.js | NestorAcabal/pruebaCrud | 1b6dbf0267d256bb0e8ad64eed953d78aa6f9a26 | [
"MIT"
] | null | null | null | var express = require('express');
const bodyParser = require('body-parser');
const Sequelize = require('sequelize');
const sequelize = new Sequelize('pruebacruddb', 'root', '', {
dialect: 'mysql'
})
encargado_router = express.Router();
var Model = {};
Model.sequelize = sequelize;
Model.encargado_salas = sequelize... | 26.555556 | 108 | 0.604603 |