This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-08-19T01:45:43.216Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1.install gource using HomeBrew | |
$ brew install gource | |
# 2.install avconv | |
git clone git://git.libav.org/libav.git | |
cd libav | |
# it will take 3-5 minutes to complie, be patient. | |
./configure --disable-yasm | |
make && make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"root": true, | |
"extends": [ | |
"plugin:vue/recommended", | |
"groupon" | |
], | |
"plugins": [ | |
"vue" | |
], | |
"parserOptions": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div v-if="length > 1" class="text-xs-center mt-5"> | |
<v-pagination v-bind="{ length, totalVisible: totalVisibleResponsive, circle }" | |
v-model="page"/> | |
</div> | |
</template> | |
<script> | |
import { pagination, params } from '~/utils/mixins/pagination' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hash from 'object-hash'; | |
import sizeof from 'object-sizeof'; | |
import lruCache from 'lru-cache'; | |
const cacheEnabled = true; | |
const cacheMaxAge = 30 * 60 * 1000; | |
const cacheMaxSize = 128 * 1000 * 1000; | |
const getCacheKey = config => hash({ | |
method: config.method, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<meta http-equiv="cache-control" content="no-cache" /> | |
<meta name="robots" content="noindex, nofollow" /> | |
<title>Tire Size Calculator Help</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (exports.addStudentsValidNames().length) { | |
exports.addStudentsCheckingUsernames(true); | |
$.post('/classroom/check', { | |
students: JSON.stringify(exports.addStudentsValidNames()) | |
}, function (data) { | |
var hasErrors; | |
data.each(function (i) { | |
i.transfer = ko.observable(null); | |
i.errorFields = []; | |
i.warningFields = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ko ifnot: $parent.addStudentsModalEditingMode --> | |
<!-- ko ifnot: $parent.addStudentsShowExistingUsernameScreen --> | |
<h2 data-bind="string: 'confirm.new.students'" class="pull-left"></h2> | |
<div class="pull-right"> | |
<button class="btn" | |
data-bind="string: 'add.students.validate.edits', click: function () { $parent.addStudentsValidateNames(true); }, | |
enable: ($parent.addStudentsHasPotentialErrors() || $parent.addStudentsHasErrors()) && !$parent.addStudentsEditingFields() && !$parent.addStudentsCheckingUsernames()"></button> | |
<button class="btn" | |
data-bind="string: $parent.addStudentsDuplicateUsernames().length ? 'save.and.continue' : 'save.and.close', click: function () { $parent.addStudentsSaveAndClose(false); }, enable: $parent.addStudentsSaveAndCloseEnabled()"></button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['Knockout.Raw', 'jQuery.UI', 'Sugar'], function (ko) { | |
ko.bindingHandlers.autocomplete = { | |
init: function (element, valueAccessor, allBindingsAccessor) { | |
var allBindings = allBindingsAccessor(); | |
$(element).autocomplete(Object.merge({ | |
select: function (event, ui) { | |
valueAccessor()(ui.item); | |
} | |
}, allBindings.autocompleteOptions)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
init: function (elevators, floors) { | |
function queueDestinationForElevator(elevator, floorNum) { | |
if (elevator.destinationQueue.length) { | |
if (isElevatorGoingUp(elevator)) { | |
if (floorNum < elevator.destinationQueue[0]) { | |
if (elevator.currentFloor() < floorNum) { | |
elevator.destinationQueue.splice(0, 0, floorNum); | |
} else { |
NewerOlder