text
stringlengths
1
1.05M
fn process_mp3_frame(frame: &[u8]) -> Option<(u32, u32)> { if frame.len() < 4 { return None; } let frame_sync = (frame[0] as u16) << 4 | (frame[1] as u16 >> 4); let mpeg_version = (frame[1] >> 3) & 0b11; let layer = (frame[1] >> 1) & 0b11; let protection = frame[1] & 0b1; let bitrat...
#!/usr/bin/env bash source streamlit/bin/activate streamlit run expenses.py data/config.ini
<filename>libs/desktop/shared/ui/src/lib/antd/Picker/DatePicker/index.ts import { Dayjs } from 'dayjs' import dayjsGenerateConfig from 'rc-picker/es/generate/dayjs' import generatePicker from 'antd/es/date-picker/generatePicker' import 'antd/es/date-picker/style/css' const DatePicker = generatePicker<Dayjs>(dayjsGener...
using System; public class GeometricShape { public string Name { get; set; } public string Color { get; set; } public double Area { get; set; } public override string ToString() { return $"Name: {Name}, Color: {Color}, Area: {Area}"; } } class Program { static void Main() { ...
#!/bin/sh IMAGE_NAME=oci-oke-cli IMAGE_TAG=0.2.0 REPOSITORY_ID=$IMAGE_NAME:$IMAGE_TAG if [ -z $1 ]; then REPOSITORY_ID=$IMAGE_NAME:$IMAGE_TAG else REPOSITORY_ID=$1/$IMAGE_NAME:$IMAGE_TAG fi docker build --build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \ --build-arg VCS_REF=`git rev-parse --shor...
package tkohdk.lib.calcstr.checker; import java.util.Arrays; /** * Created by takeoh on 2018/04/19. */ public class OperatorChecker implements OperatorCheckerInterface { /** * 与えられた文字(列)が演算子かどうかを判定する * @param val 演算子かどうかを判定する文字列 * @return boolean */ public boolean isOperator(String val)...
#! /bin/sh echo "resetting to 0,0,0,0" rostopic pub -1 /robot/joint1_position_controller/command std_msgs/Float64 "data: 0.0" & rostopic pub -1 /robot/joint2_position_controller/command std_msgs/Float64 "data: 0.0" & rostopic pub -1 /robot/joint3_position_controller/command std_msgs/Float64 "data: 0.0" & rostopic pub...
#!/bin/bash CATEGORY="$1" ACTION="$2" if [ $CATEGORY == "clean" ]; then if [ $ACTION == "yarn" ]; then echo "Yarn garbage collection started" echo "" echo " - dropping node_modules folder..." rm -rf node_modules echo " Done" echo " - removing .yarn cached files..." rm -rf .yarn/cac...
// Copyright © 2018 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribu...
<filename>calc_server/code/calc_server_add.go package main import ( "calc_util" "flag" "fmt" "log" "net/http" "strconv" ) func handler(w http.ResponseWriter, r *http.Request, url string) { output := calc_util.ResultMsg{} a, err := parseFloatQueryParamAndTransform(r, "a", url) if err != nil { output.Error ...
<reponame>kennethsequeira/Hello-world const HWBulgaria = () => alert('Hello World from Bulgaria! 🇧🇬'); HWBulgaria();
// @flow import Input from '../postcss/input'; import SafeParser from './safe-parser'; export default function safeParse(css, opts) { const input = new Input(css, opts); const parser = new SafeParser(input); parser.tokenize(); parser.loop(); return parser.root; }
<reponame>infinitiessoft/skyport-api<gh_stars>0 package com.infinities.skyport.cache.service; import java.io.Serializable; import java.util.concurrent.ScheduledFuture; import javax.annotation.Nullable; import com.infinities.skyport.async.service.AsyncNetworkServices; import com.infinities.skyport.async.service.netwo...
swig -python -c++ maxpooling2d.i c++ -c -fpic ../../code_test/maxpooling2d.cpp c++ -c -fpic maxpooling2d_wrap.cxx -I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8 c++ -bundle -flat_namespace maxpooling2d.o maxpooling2d_wrap.o -undefined suppress -o _maxpooling2d.so
import Credential from './../models/credential'; import pageController from './page-controller'; import userTypeHelper from './../helper/credential/user-type'; import changeOnChatHelper from './../helper/employee/change-on-chat'; async function updateApiPassword(req, res) { let credential = new Credential(); cre...
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
<reponame>nightskylark/DevExtreme 'use strict'; var jQuery = require("jquery"); var ajax = require("../../core/utils/ajax"); var useJQuery = require("./use_jquery")(); if(useJQuery) { ajax.inject({ sendRequest: function(options) { if(!options.responseType && !options.upload) { ...
function processPageRules(page, oldPage) { if (page.path !== oldPage.path) { // Assuming deletePage and createPage functions perform the respective actions deletePage(oldPage); createPage(page); return "Deleted old page, Created new page"; } if (page.path === '/senryu/show/') { page.matchPath ...
package com.qht.dto; import java.util.List; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.annotation.JSONField; public class MsgBodyParameter { String GroupId; List<String> ToMembers_Account; String Content; @JSONField(name = "GroupId") public String getGroupId() { return G...
hashmap = {} hashmap['Item1'] = 'This is item 1' hashmap['Item2'] = 'This is item 2' hashmap['Item3'] = 'This is item 3' hashmap['Item4'] = 'This is item 4' hashmap['Item5'] = 'This is item 5'
#!/bin/bash echo "Starting release and build" CURRDIR="$(pwd)" export GIT_MERGE_AUTOEDIT=no ONDEVELOP="$(git branch | grep '* develop')" if [ -z "${ONDEVELOP}" ]; then echo "Must be on develop branch to get started" exit 1 fi GITSTATUS="$(git status --porcelain=1)" if [ ! -z "${GITSTATUS}" ]; then echo "No fi...
#include<iostream> #include<string.h> // Converting strings to lowercase char* toLowerCase(char* s) { int length = strlen(s); for (int i = 0; i < length; i++) { s[i] = tolower(s[i]); } return s; }
class TaskManager: def __init__(self): self.tasks = [] def delete(self, task): if not task: return -1 for index, elem in enumerate(self.tasks): if elem['task_id'] == task['task_id']: del self.tasks[index] return task['task_id'] ...
#!/bin/sh tmux new-session -d -s 'DEV' tmux new-window -t $'DEV':1 tmux send-keys 'htop' C-m tmux split-window -h tmux send-keys 'source venv/bin/activate' C-m 'jupyter-lab --port=8001' C-m tmux split-window -v tmux send-keys 'nvidia-smi -l 1' C-m tmux -2 attach-session -d
<gh_stars>0 # Option 1 : Take the bus to the college. # Distance from the college is 5 miles. college_dist = 5 # Bus speed is 25 mph. bus_speed = 25 # Each stop delays the bus by 2 mins. stop_delay = 2 # Number of stops is 10. stops = 10 # Calculate the commute time in minutes when taking the bus. # We convert mph ...
#!/bin/sh chown sampledb:sampledb "${SAMPLEDB_FILE_STORAGE_PATH}" exec su sampledb -c 'env/bin/python -m sampledb "$0" "$@"' -- "$@"
<filename>loop_functions/mpga_loop_functions/mpga.cpp<gh_stars>10-100 #include "mpga.h" #include <cstdio> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <sys/mman.h> #include <fcntl.h> #include <signal.h> #include <iostream> #include <fstream> #include <argos3/core/simulator/simulator.h> #inc...
#!/usr/bin/env bash # # Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
'use strict'; const { getResolvedSchema, getParentShapeInForm, getValue, printSchema, handleResponse } = require('@bbp/nexus-shacl-helpers'); const createForm = require('./form-generation'); const { fillForm, sendForm } = require('./form-actions'); const config = require('../config'); let rev; const urlParts = locatio...
#!/usr/bin/env bash ## ************************************************************************* # Deployment script for Magento 2 based apps. # # This is friendly user script, not user friendly # There are no protection from mistakes. # Use it if you know how it works. ## **************************...
import json def write_section_annos_to_json(section_annos, json_file): with open(json_file, 'w') as outfile: json.dump(section_annos, outfile, indent=4)
<reponame>davidleiva/folio_portfolio import React, { useContext } from 'react' import styled from 'styled-components' import { Container, Row, Col } from 'react-bootstrap' import GlobalContext from '../../context/GlobalContext' import { Section, Title, ButtonIcon } from '../../components/Core' import Availability from...
package com.sbsuen.fitfam.user; import org.springframework.data.mongodb.repository.MongoRepository; public interface UserRepository extends MongoRepository<User,String> { }
#!/bin/bash # trova tutti gli enigmi di un certo autore # se un autore contiene spazi deve essere racchiuso tra virgolette AUTORE=$(echo $1 | sed -e "s/ /%20/g") echo "# tutti gli enigmi dell'autore $1" echo $(curl -s localhost:8080/enigmi/cercaenigmi/autore/$AUTORE) echo
<?php namespace Property; class Location { // Implementation of Property\Location class } class MainEntityOfPage { // Implementation of Property\MainEntityOfPage class } class Name { // Implementation of Property\Name class } class ReceiveAction { private $location; private $mainEntityOfPage; ...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
import string import random def generate_password(min_length=8, max_length=16): # generate random password from the given options random_password = '' pool = string.ascii_letters + string.digits + string.punctuation # randomly select characters from the pool and combine them # to form the password length = r...
package visao; import java.io.IOException; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; import javafx.stage.StageStyle; public class aplicacao extends Application { private Parent pa...
/* global game Phaser game_state */ game_state.end = function() {}; game_state.end.prototype = { preload: function() { }, create: function() { this.scoreText = game.add.text(16, 16, "Game Over", { fontSize: '64px', fill: '#ffffff' ...
#!/bin/bash # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. assert_errors "$1" check . --all --no-flowlib --show-all-errors --include-warnings --color=always --unicode=always
<reponame>gabmontes/node-coindesk-api if (!Array.prototype.includes) { require('core-js/fn/array/includes') } const request = require('./request') const formatDate = require('./formatDate') // memoize 1' function getSupportedCurrencies() { return request('/supported-currencies.json') } // memoize 1' TTL 15" func...
<filename>observatory-platform/observatory/platform/cli/platform_command.py # Copyright 2020 Curtin University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
def even_number_filter(number): return number % 2 == 0 numbers = [25, 35, 8, 2, 10] filtered_list = list(filter(even_number_filter, numbers)) print(filtered_list)
<gh_stars>1-10 #include <errno.h> #include <hiredis/hiredis.h> #include <poll.h> #include <pthread.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "thredis.h" struct redis_wait { struct redis_wait* next; redisReply* reply; pthread_mutex_t mutex; pthread_cond_t done; }; s...
module.exports = { run: () => 'implied' }
echo '[+] Installing Dependencies...' pkg update pkg upgrade echo '[!]Python' pkg install python echo '[!]PHP' pkg install php echo '[!]wget' pkg install wget echo '[!]unzip' pkg install unzip echo '[!]openssh' pkg install ssh echo '[+]Requests' pip install requests echo '[+] Installed.'
<reponame>Blockception/BC-Minecraft-Bedrock-Vanilla-Data /* Auto generated */ export * from "./BehaviorPack"; export * from "./Block"; export * from "./Entity"; export * from "./Item"; export * from "./LootTable"; export * from "./Trading";
/* * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
#[derive(Copy, Clone, Debug)] pub enum MobTargetMode { NearbyCell = 0, NearbyPlayer = 1, Clockwise = 2, Anticlockwise = 3, ClockwiseNext = 4, } #[derive(Copy, Clone, Debug)] pub enum Direction { North, East, South, West, } pub fn calculate_next_move(current_position: (i32, i32), cu...
<filename>SOLVER/src/core/output/element-wise/eigen_element_op.hpp // // eigen_element_op.hpp // AxiSEM3D // // Created by <NAME> on 28/7/20. // Copyright © 2020 <NAME>. All rights reserved. // // eigen for element output #ifndef eigen_element_op_hpp #define eigen_element_op_hpp #include "eigen_station.hpp" #in...
# test spark-streaming-local rm -rf /root/test_bmr_spark/output; ${SPARK_HOME}/bin/spark-submit --class WordCount uber-spark_word_count_normal-1.0.0-snapshot.jar file:///root/test_bmr_spark/README file:///root/test_bmr_spark/output # test spark-streaming-yarn hdfs dfs -rmr bos://bmrtest-bj/4c0c80c8-5550-439e-7bce-9c72...
#!/bin/bash set -ex # Wait for docker, else network might not be ready yet while [[ `systemctl status docker | grep active | wc -l` -eq 0 ]] do sleep 2 done # enable CPU manager # kubeadm 1.11 uses a new config method for the kubelet if [ -f /etc/sysconfig/kubelet ]; then # TODO use config file! this is depr...
#!/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License");...
<filename>src/pasa/cbentley/layouter/swing/demo/RunLayouterDemoSwingAbstract.java /* * (c) 2018-2020 <NAME> * This code is licensed under MIT license (see LICENSE.txt for details) */ package pasa.cbentley.layouter.swing.demo; import java.awt.Image; import java.io.IOException; import java.util.List; impor...
<filename>dist/controllers/user.d.ts import { Request, Response } from 'express'; export declare let postLogin: (req: Request<import("express-serve-static-core").ParamsDictionary>, res: Response) => Response; export declare let getUser: (req: Request<import("express-serve-static-core").ParamsDictionary>, res: Respons...
package com.threathunter.bordercollie.slot.tool; import java.io.*; import java.util.ArrayList; import java.util.concurrent.CountDownLatch; public class ITLauncher { public static void main(String[] args) throws Exception { String javaHome = System.getProperty("java.home"); final String javaLaunch...
import React, { useState, useEffect } from 'react' import { styled } from 'linaria/react' import warning from '@assets/warning.png' import ok from '@assets/ok.png' export const Alert = ({ runEffect, success = false, color, text = success ? 'Успешно' : 'Произошла ошибка' }) => { const [visible, setVisible] =...
from pybloom_live import BloomFilter # Common words to store in bloom filter words = ["the", "be", "and", "of", "a", "in", "to", "have", "to", "it", "I", "that", "for", "you", "he", "with", "on", "do", "say", "this", "they", "is", "an", "at", "but", "we", "his", "from", "that", "not", "by", ...
package com.emmanuellmota.metamodel; @GenerateModel public class ImmutableObject { private final String name; public ImmutableObject(String name) { this.name = name; } public String getName() { return name; } }
fn slugify_label(section: &str, label: String) -> String { let section_lower = section.to_lowercase(); let label_modified = label .to_lowercase() .replace(" ", "_") .chars() .filter(|c| c.is_alphanumeric() || *c == '_') .collect::<String>(); format!("{}:{}", section_l...
package io.cattle.platform.api.parser; import io.cattle.platform.archaius.util.ArchaiusUtil; import io.github.ibuildthecloud.gdapi.request.ApiRequest; import io.github.ibuildthecloud.gdapi.request.parser.DefaultApiRequestParser; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import org.ap...
import './src/marble.scss';
#!/usr/bin/env bash set -e QT_CFG='' BUILD_CONFIRM=0 COMPILE_JOBS=1 MAKEFLAGS_JOBS='' if [[ "$MAKEFLAGS" != "" ]]; then MAKEFLAGS_JOBS=$(echo $MAKEFLAGS | egrep -o '\-j[0-9]+' | egrep -o '[0-9]+') fi if [[ "$MAKEFLAGS_JOBS" != "" ]]; then # user defined number of jobs in MAKEFLAGS, re-use that number COMPILE...
'use strict'; var study = angular.module('study', []); study.controller('StudyCtrl', ['$scope', '$routeParams', '$window', '$location', 'IndexedDb', '$timeout', function ($scope, $routeParams, $window, $location, IndexedDb, $timeout) { $scope.collectionId = $routeParams.id; $scope.cards = []; $scope.card...
import random import numpy class QueueManager: def __init__(self, size): self.queue = [element+1 for element in range(size)] def finalState(self): random.shuffle(self.queue) def invalidState(self): for index, element in numpy.ndenumerate(self.queue): if element - (inde...
fn area_triangle(a: f64, b: f64, c: f64) -> f64 { let s = (a + b + c) / 2.0; (s * (s - a) * (s - b) * (s - c)).sqrt() }
<reponame>dylmeadows/lambdadepot<gh_stars>0 package io.lambdadepot.function.checked; public interface CheckedPredicate0 { boolean test() throws Throwable; }
#!/bin/bash ############################################################################### # This script is used to streamline running E2E tests for Linux. ############################################################################### set -e function clean_up() { print_highlighted_message 'Clean up' echo '...
<reponame>112batman/GooseStandalone import { join } from 'path'; import Inquirer from 'inquirer'; import replaceInFile from '../lib/replaceInFile.js'; export default async ({ asarExtractPath }) => { replaceInFile(join(asarExtractPath, 'app_bootstrap', 'Constants.js'), `const UPDATE_ENDPOINT = settings.get('UPD...
<filename>proto/test/v1/proto2/test_all_types/test_all_types.pb.go // Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/test/v1/proto2/test_all_types.proto package test_all_types import ( fmt "fmt" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" duration "github.c...
<reponame>aaeabdo/coding-challenge-1 require 'spec_helper' require_relative '../../../logic/package/creator' RSpec.describe Logic::Package::Creator do subject(:call) { described_class.call(model, creation_params) } let(:model) { class_double('Package') } let(:creation_params) do { name: ...
#!/bin/bash echo "=========================================================" date cd /home/pi/prog/garden_pi/utils sudo PYTHONPATH=/home/pi/prog/garden_pi ./water.py
#!/bin/bash ROOT_DIR=$(dirname $(dirname $(realpath "$0"))) find ${ROOT_DIR} -name Manifest -exec grep ^DIST "{}" \; \ | awk '{print$7" *"$2}' \ | (cd /usr/portage/distfiles/ && sha512sum -c)
import { Meteor } from 'meteor/meteor'; import { settings } from '../../settings'; Meteor.startup(function() { settings.add('AutoTranslate_Enabled', false, { type: 'boolean', group: 'Message', section: 'AutoTranslate', public: true }); settings.add('AutoTranslate_GoogleAPIKey', '', { type: 'string', group: 'Message'...
<reponame>Xi-Plus/OJ-Code // By KRT girl xiplus #include <bits/stdc++.h> #define endl '\n' using namespace std; struct Node{ int visit,low; vector<int> son; }node[110]; int ans; void dfs(int i,int p,int d){ node[i].visit=node[i].low=d; bool ap=false; int child=0; for(int s:node[i].son){ if(s==p)continue; if(n...
#!/bin/sh # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
CREATE TABLE version_owner_actions ( id SERIAL PRIMARY KEY, version_id INTEGER REFERENCES versions(id) ON DELETE CASCADE, owner_id INTEGER REFERENCES users(id), owner_token_id INTEGER REFERENCES api_tokens(id), action INTEGER NOT NULL, time TIMESTAMP NOT NULL DEFAULT now() );
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { interval, pipe } from 'rxjs'; import { map, startWith } from 'rxjs/operators'; import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'; import { JanusService } from '@shared/services/janus.service'; imp...
#!/usr/bin/env bash set -e # exit on errors BASE_DIR="$( cd "$(dirname "$0")" ; pwd -P )" # Folders in which whitesource has to be run declare -a FOLDERS=("client" "core" "website/landingpage/dev" "website/fiddle" "plugins" ...
<reponame>multiplex/multiplex.js<filename>src/lib/collections/stack.js import Collection from './collection'; import buffer from '../utils/buffer'; import extend from '../utils/extend'; import iterableSymbol from '../iteration/iterable-symbol'; import error, {ERROR_EMPTY_COLLECTION} from '../utils/error'; /** * Initia...
package pl.allegro.tech.boot.leader.only; import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.lang.Nullable; import pl.allegro.tech.boot.leader.only.api.Leader; import static org.springframework.core.annotation.AnnotationUtils.findAnnotation; final class LeaderOnlyBeanPostPr...
import numpy as np import tensorflow as tf from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras.layers import Dense, Embedding, LSTM from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam vocab = ['This', 'is', 'a', 'sentence', 'that', 'the', 'mod...
var SongFlag = 0 var SongScale = 1 function NewSongQuery() { for (i = 1; i <= 16; i++) { let tr = tab.tHead.children[0], tr2 = document.getElementById('tbm').children[0], th = document.createElement('th'), td = document.createElement('td'); th.innerHTML = tab.ro...
<filename>Mosaic Decoration II/main.cpp #include <iostream> using namespace std; unsigned long long w,h,a,b,m,c,res=0; int main() { cin >> w >> h >> a >> b >> m >> c; unsigned long long int maxRight = w / a + (w%a==0 ? 0 : 1); unsigned long long int maxBottom = h / b + (h%b==0 ? 0 : 1); unsigned lon...
const request = require('supertest'); const server = require('../server'); const db = require('../../data/db-config'); describe('articles router', () => { it('does not return data unless there is a valid JSON web token in the header', async () => { const res = await request(server).get('/api/articles'); ...
<gh_stars>0 /// <reference path="../common/models.ts" /> /// <reference path="../common/messaging.ts" /> /// <reference path="config.ts" /> /// <reference path="utils.ts" /> /// <reference path="interfaces.ts"/> /// <reference path="quoter.ts"/> /// <reference path="safety.ts"/> /// <reference path="statistics.ts"/> //...
<filename>src/modules/Balance/Balance.tsx import * as React from 'react'; import { compose } from 'redux'; import { Route, Switch } from 'react-router-dom'; import { userIsLogged, userAcceptedTOS, userConfirmedSecurityNotice } from 'modules/shared/checkAuth'; import { Module } from 'shared/types/app'; import { layout...
#!/bin/bash # parse command-line options while [ "$1" != "" ]; do case $1 in -a | --all ) shift ALL=1 ;; * ) exit 1 esac shift done FILES='' if [[ ${ALL} ]]; then # compile all echo "Compiling all *.less files" FILES=`find . -na...
#! /bin/sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2014-01-03.01 # libtool (GNU libtool) 2.4.6 # Provide generalized library-building support services. # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996-2015 Free Software Foundati...
<reponame>leiteszeke/cookunity-ui import Button from './Button'; import { ButtonProps, ButtonIconPosition, ButtonSize, ButtonVariant, } from './Button.types'; export { ButtonProps, ButtonIconPosition, ButtonSize, ButtonVariant }; export default Button;
package com.ibm.socialcrm.notesintegration.ui.utils; /**************************************************************** * IBM OpenSource * * (C) Copyright IBM Corp. 2012 * * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * ****************************************************...
<reponame>smagill/opensphere-desktop<gh_stars>10-100 package io.opensphere.core.geometry.constraint; import io.opensphere.core.model.time.TimeSpan; import net.jcip.annotations.Immutable; /** * A strict time constraint that requires that the active time span exactly * matches (or doesn't match) a certain time...
#!/usr/bin/env bash if [[ $TRAVIS_BRANCH == 'master' ]] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then source travis/extract.sh source travis/docker.sh sbt "+ test" "mleap-serving/test" "+ publishSigned" "mleap-serving/docker:publish" else sbt "+ test" "mleap-serving/test" fi
/** @noSelfInFile */ declare function SupportItemCooldownReset(killedUnit: CBaseEntity, killerEntity: CBaseEntity): void; declare function ForeheadProtectorOnItemPickedUp(hero: CDOTA_BaseNPC_Hero, itemName: string): void; declare function ChakraArmorOnItemPickedUp(hero: CDOTA_BaseNPC_Hero, itemName: string): void;
'use strict'; const config = require('./config'); const sqlite3 = require('sqlite3').verbose(); const db = new sqlite3.Database(config.database_path); db.serialize(function () { db.run('CREATE TABLE games (name TEXT, token TEXT)'); db.run('CREATE INDEX index_by_name on games(name)'); db.run('CREATE TABLE ...
<filename>src/main/resources/schema.sql -- I'm sorry I had to do this barbaric thing. R2DBC does not support query derivation as of Dec 2019. 😿 CREATE TABLE FETCHLIN_PAGE ( id SERIAL PRIMARY KEY, url_ VARCHAR(255), name_ VARCHAR(255), interval_ INT, max_number_of_revisions INT, dom_element VA...
import React from "react"; const formsRoutes = [ // // // // // // // project progressive { path: "/projects/oil-gaz-en-cour/", component: React.lazy(() => import("./projectsProgress/oilGaz/OilGaz")) }, { path: "/projects/enrgies-renewable-en-cour", component: React.lazy(() => imp...
package chylex.hee.item.base; import java.util.List; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.EnumAction; impo...
package patron.mains.managers.app; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.URLDecoder; import java.util.Properties; /** * The type App manager configuration. */ public class AppManagerConfiguration { private Properties properties; private...