text
stringlengths
1
1.05M
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import Gear2Svg from '@rsuite/icon-font/lib/legacy/Gear2'; const Gear2 = createSvgIcon({ as: Gear2Svg, ariaLabel: 'gear 2', category: 'legacy', displayName: 'Gear2' }); export default G...
#!/usr/bin/env bash # Adapted from the asdf plugin template: # https://github.com/asdf-vm/asdf-plugin-template/blob/main/scripts/shfmt.bash exec shfmt -d .
void Update () { if (delayTime <= 0) { alphaUp = !alphaUp; // Toggle the value of alphaUp if (alphaUp) { // Increase the alpha value of the object's sprite gradually over time float alphaIncrement = 0.1f; // Define the rate of alpha change Color currentColor = sp...
<reponame>renankalfa/Curso_em_Video print('Ol<NAME>!') # Modo 2 mensagem = 'Ol<NAME>!' print(mensagem)
<filename>lib/puppet/type/refacter.rb Puppet::Type.newtype(:refacter) do desc <<-EOT Forces puppet to rerun facter to reload and refresh all facts, if any of the facts matching the given pattern changed. "Before" Example: # this resource sets up a new loopback disk device with # the spec...
import React, { MouseEvent } from 'react'; import Button from '../button/Button'; import './table.scss'; interface TableProps { /** All actions */ actions?: TableAction[]; box?: boolean; /** Custom class name for component */ className?: string; columns: Column[]; data: TableData[]; 'data-testid'?: str...
<reponame>ashutoshstu/apicurio-studio /* * Copyright 2018 JBoss 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 req...
<reponame>Snowgem/bitfrost-ts "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined...
package io.opensphere.hud.glswing; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import java.awt.event.HierarchyEvent; import java.awt.event.HierarchyListener; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import javax.swing.event.InternalFrameAdapter...
/* eslint-disable no-unused-vars */ import { put, call, fork, all, take } from 'redux-saga/effects'; import { GET_MARKET_HISTORY_REQUEST, GET_PROPOSALS_REQUEST, GET_FAUCET_REQUEST, GET_GOVERNANCE_VENUS_REQUEST, GET_PROPOSAL_BY_ID_REQUEST, GET_VOTERS_REQUEST, GET_VOTER_DETAIL_REQUEST, GET_VOTER_HISTORY_...
<gh_stars>0 import org.svetovid.io.SvetovidReader; import org.svetovid.io.SvetovidWriter; class Program1 { public static void main(String[] args) { if (!Svetovid.testIn("r1.txt")) { return; } Red<String> red = new Red<String>(); // Ucitavanje stringova iz fajla u red SvetovidReader fajl = Svetovid.in("...
export enum FragmentShadingRateShift { Vertical2Pixels = 0, Vertical4Pixels = 1, Horizontal2Pixels = 2, Horizontal4Pixels = 3, Max = 0x7fffffff, }
<reponame>dreamer01/moonwalk import * as navigation from "@react-navigation/native"; import { render } from "@testing-library/react-native"; import React from "react"; import { LightThemeProvider } from "../../helpers/testProviders"; import { lightTheme } from "../../theme"; import CalendarCard from "../CalendarCard";...
import unittest from unittest.mock import patch from tmc import points, reflect from tmc.utils import load, load_module, reload_module, get_stdout, check_source from functools import reduce import os import os.path import textwrap import inspect, re import types from random import choice, randint, shuffle exercise = ...
import re def validate_methods(methods: dict, pattern: str) -> bool: class_method_re = re.compile(pattern) is_need_reraise = False for method_name, _ in methods.items(): if method_name in ["constructor", "destructor"]: continue try: if not class_method_re.match(meth...
#!/bin/sh # Set up for run: # need this since I use a LU project # #SBATCH -A lu2020-2-7 # #SBATCH -p lu #SBATCH -A snic2019-3-630 ##SBATCH -A snic2016-x-xxx # use gpu nodes #SBATCH -N 1 #SBATCH -n 1 #SBATCH --exclusive # time consumption HH:MM:SS #SBATCH -t 1:00:00 # name for script #SBATCH -J ou_cpmmh_kalman ...
package be.kwakeroni.parameters.client.api; import be.kwakeroni.parameters.client.api.model.EntryType; import be.kwakeroni.parameters.client.api.model.ParameterGroup; import be.kwakeroni.parameters.client.api.query.Query; import java.util.Optional; /** * Retrieves values of business parameters. */ public interface...
<gh_stars>0 declare const _default: (req: any, res: any) => Promise<void>; /** * @oas [get] /draft-orders * operationId: "GetDraftOrders" * summary: "List Draft Orders" * description: "Retrieves an list of Draft Orders" * x-authenticated: true * tags: * - Draft Order * responses: * 200: * description:...
<gh_stars>0 package com.doanduyhai.elevator.actors import akka.actor.{ActorRef, ActorLogging, Actor} import scala.concurrent.duration._ import scala.concurrent.ExecutionContext.Implicits.global sealed trait ElevatorStatus { def nextStep: ElevatorStatus def isMoving: Boolean } case class Move(currentFloor:Int, t...
#!/usr/bin/env bash # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test marking of spent outputs # Create a transaction graph with four transactions, # A/B/C/D # C spends A # D ...
/** * * @creatTime 下午8:26:49 * @author Eddy */ package tiger.test.request; import javax.inject.Inject; import javax.inject.Named; import org.eddy.tiger.annotated.Request; /** * @author Eddy * */ @Named("dog") @Request public class Dog { @Inject private Cat cat; public void dog() { System.out.println(...
angular.module('marcuraUI.components').directive('maRadioButton', ['$timeout', 'MaValidators', 'MaHelper', function ($timeout, MaValidators, MaHelper) { return { restrict: 'E', scope: { itemTextField: '@', itemValueField: '@', isDisabled: '@', i...
<reponame>Houserqu/datav-admin<gh_stars>1-10 import React, { PureComponent } from 'react'; import { Layout } from 'antd'; import { connect } from 'dva'; import styles from './DesignLayout.less'; const { Content } = Layout; @connect(({ design, loading }) => ({ design, categoryLoading: loading.effects['design/fetch...
<gh_stars>0 package router import ( "github.com/779789571/gin-vue-admin/server/router/autocode" "github.com/779789571/gin-vue-admin/server/router/example" "github.com/779789571/gin-vue-admin/server/router/system" ) type RouterGroup struct { System system.RouterGroup Example example.RouterGroup Autocode autoc...
class AllTypesComponent < LucidComponent::Base include LucidTranslation::Mixin render do DIV 'Rendered!' DIV _('simple') DIV 'abcdef' NavigationLinks() end end
#!/bin/bash -e IMAGE="xeone3-ubuntu1604-analytics-ffmpeg" VERSION="1.2" DIR=$(dirname $(readlink -f "$0")) . "${DIR}/../../../../script/build.sh"
<reponame>JacobLinCool/kimlimjustin.com import Image from 'next/image'; import { ABOUT_ME, METRICS_SRC } from '../../Util/constant'; const AboutMe = () => { return ( <> <h2 className="about-heading" id="about"> About me </h2> <div className="about"> ...
/* This file is part of Peers, a java SIP softphone. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is di...
export * from './lib/pmp-web-shared-ui-picture-label.module';
#!/bin/bash set -o errexit set -o nounset set -o pipefail set -o errtrace CRIPROXY_DEB_URL="${CRIPROXY_DEB_URL:-https://github.com/Mirantis/criproxy/releases/download/v0.14.0/criproxy-nodeps_0.14.0_amd64.deb}" VIRTLET_IMAGE="${VIRTLET_IMAGE:-mirantis/virtlet}" VIRTLET_SKIP_RSYNC="${VIRTLET_SKIP_RSYNC:-}" VIRTLET_SKIP_...
// Verifica se existe uma receita com o mesmo nome no site; import { categories } from "./database.js"; export function toValidatesRecipe(recipeForm) { if (recipeForm.recipe.name.length > 0) { var recipeExists = categories.some(function (category) { return category.recipes.some(function (recipe)...
SELECT name, MAX(price) FROM Products GROUP BY name ORDER BY price DESC
<reponame>tiagoben/juken<gh_stars>10-100 import _ from 'lodash'; import * as env from 'src/common/env'; import queryString from 'src/utils/queryString'; import { GET } from 'src/common/constants'; import run from 'src/utils/run'; export default async (method, url, opts = {}) => { const { body = {}, params =...
#!/usr/bin/env bash set -e mkdir ../dist || true mkdir ../build || true google-closure-compiler-js ../lib/xmlhttprequest.js > ../dist/xmlhttprequest.js TARGET=../dist/nuve.js current_dir=`pwd` # License echo '/*' > $TARGET echo '*/' >> $TARGET # Body cat ../dist/xmlhttprequest.js >> $TARGET cat ../build/nuve.js ...
import React, { Suspense } from "react"; import { AxiosResponse } from "axios"; import { useServerStatus } from "contexts/serverStatusContext"; import MaintainancePage from "pages/MaintainancePage"; import NotFound from "pages/NotFound"; import { Redirect, Route, Switch } from "react-router-dom"; import getStatus from ...
/* * Copyright 2015 lixiaobo * * VersionUpgrade project licenses this file to you 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 requ...
const db = require('../models') const { FAQ } = db const createError = require('http-errors') const faqController = { getAll: async (req, res, next) => { try { const data = await FAQ.findAll() return res.status(200).json({ ok: 1, data }) } catch (error) { return next...
import smtplib, ssl from email.message import EmailMessage sender_email = "<sender's email address>" receiver_email = "<recipient's email address>" password = input("Type your password and press enter:") # Create the email message = EmailMessage() message['Subject'] = 'Welcome to our website' message['From'] = send...
package org.slos.battle.abilities.rule; import org.slos.battle.GameContext; import org.slos.battle.abilities.AbilityEffect; import org.slos.battle.attack.AttackContext; public abstract class AttackRule<T> implements AbilityEffect { private AttackRuleType attackRuleType; public AttackRule(AttackRuleType attac...
package com.esri.ges.processor.plan; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.esri.ges.core.property.PropertyDefinition; import com.esri.ges.core.property.PropertyType; import com.esri.ges.processor.GeoEventProcessorDefinitionBase; public class PlanDefinition ex...
#!/bin/sh PACKAGE_VERSION=$(cat package.json \ | grep name \ | head -1 \ | awk -F: '{ print $2 }' \ | sed 's/[",]//g' \ | tr -d '[[:space:]]') echo $PACKAGE_VERSION
<html> <head> <title> Products </title> </head> <body> <h1> Products </h1> <div> <h2>Sports shoes</h2> <img src="image.jpg" /> <p>High-quality shoes for sports.</p> </div> <div> <h2>T-shirt</h2> <img src="image2.jpg" /> <p>High-quality t-shirt made of cotton.</p> </div> <div> <h2>Cap</h2> <img...
<reponame>Sarveshmrao/DiscordBot-Template<filename>events/message.js const { Collection, MessageEmbed: Embed } = require("discord.js"); const {prefix} = require('../config.json'); const escapeRegex = (string) => { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); }; module.exports = { name: "message",...
// Function to send an email. public void sendEmail(String recipient, String subject, String body) { // Create properties of mail server. Properties properties = new Properties(); properties.put("mail.smtp.host", "SMTP SERVER"); properties.put("mail.smtp.port", "587"); properties.put("mail.smtp....
// Copyright (c) 2014 <NAME>. Portions copyright (c) 2011 // Google Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyrig...
package pl.coderslab.spring01hibernate.repository; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; import javax.transaction.Transactional; @Transactional public class BookRepositoryImpl implements ResetRatingInterface { @PersistenceContext p...
<filename>src/main/scala/markarasev/utils/package.scala package markarasev package object utils { type Seq[+A] = scala.collection.immutable.Seq[A] val Seq: scala.collection.immutable.Seq.type = scala.collection.immutable.Seq }
provision-sqlite3() { ensure-sqlite3-installed } ensure-sqlite3-installed() { if ! has-executable sqlite3; then banner 'Installing SQLite 3' install sqlite3 install apt=libsqlite3-dev rpm=sqlite-devel fi }
// // VHCMsg.h // VHCMessage // // Created by vhall on 2018/9/14. // Copyright © 2018年 vhall. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface VHCMsg : NSObject /** 发消息用户id*/ @property (nonatomic, copy) NSString *joinId; /** 消息id*/ @property (nonatomic, copy) NSString...
<reponame>RTEnzyme/vldb-2021-labs package storage import ( "github.com/pingcap-incubator/tinykv/kv/raftstore/scheduler_client" "github.com/pingcap-incubator/tinykv/kv/util/engine_util" "github.com/pingcap-incubator/tinykv/proto/pkg/kvrpcpb" ) // Storage represents the internal-facing server part of TinyKV, it hand...
<reponame>jrfaller/maracas package main.unused.constructorLessAccessible; public class ConstructorLessAccessiblePackPriv2Priv { ConstructorLessAccessiblePackPriv2Priv() { } ConstructorLessAccessiblePackPriv2Priv(int p) { } }
import { onPlayerData, onPlayerCreated, onPlayerReady, onPlayerDispose, onPlayerBeforeCreated } from "../IComponent"; import { PlayerConfig, PlayerData } from "../../youtube/PlayerConfig"; import { Player } from "../../player/Player"; import { Logger } from '../../libs/logging/Logger'; import { EventType } from '../../...
// import required modules const express = require('express'); const app = express(); const port = 3000; // configure middleware app.use(express.json()); app.use(express.urlencoded({ extended: true })); // define routes app.get('/', (req, res) => { res.send('This is a write scalable Node.js app!'); }); // start the...
let num = 3.14159; let formattedNum = num.toFixed(2); console.log(formattedNum); // 3.14
<!DOCTYPE html> <html> <head> <title>Book List</title> </head> <body> <h1>Book List</h1> <table> <tr> <th>Title</th> <th>Author</th> </tr> <% @books.each do |book| %> <tr> <td><%= book.title %></td> <td><%= book.author %></td> </tr> <% end %> </table> </body> </html>
#!/bin/bash # packages = nfs-utils systemctl start rpcbind systemctl enable rpcbind
<gh_stars>1-10 import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { withStyles } from 'material-ui/styles'; import Grid from 'material-ui/Grid'; import SearchIcon from '@material-ui/icons/Search'; import { Link } from '../../routes'; const emailSubject = 'Real estate property inqui...
#!/bin/sh #AM_VERSION="1.10" if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then # automake-1.10 (recommended) is not available on Fedora 8 AUTOMAKE=automake ACLOCAL=aclocal else ACLOCAL=aclocal-${AM_VERSION} AUTOMAKE=automake-${AM_VERSION} fi if test -f /opt/local/bin/glibtoolize ; then # darwin ...
#!/usr/bin/env bats # shellcheck shell=bats # shellcheck disable=SC2031 load "$GAUDI_TEST_DIRECTORY"/helper.bash @test "gaudi-bash uninstall: verify that the uninstall script exists" { assert_file_exist "$GAUDI_BASH/uninstall.sh" } @test "gaudi-bash uninstall: run the uninstall script with an existing backup file"...
#! /bin/sh # cleans cproject # leaves EPMC metadata , */fulltext.xml # run from CProject directory (e.g. osanctum200) # HTML from XML rm */scholarly.html # per-tree results rm */*.snippets.xml rm */*.count.xml rm -rf search.*.xml word.*.xml species.*.xml rm -rf */results # cooccurrence rm -rf __cooccurrence/ # summar...
<reponame>lahosken/pants<filename>testprojects/src/java/org/pantsbuild/testproject/inccompile/libwithjettyserver/Lib.java package org.pantsbuild.testproject.inccompile.libwithjettydep; public class Lib { void method() { } }
export { New } from "./new";
#!/bin/bash #SBATCH -a 0-2 #SBATCH -o ./cluster_logs/deepens_minima/%A-%a.o #SBATCH -e ./cluster_logs/deepens_minima/%A-%a.e #SBATCH --gres=gpu:1 # reserves GPUs #SBATCH -J deepens-gm # sets the job name. If not specified, the file name will be used as job name # Info echo "Workingdir: $PWD" echo "Started at $(date)"...
from abc import ABC, abstractmethod class AbstractGrid(ABC): def __init__(self, width: int, height: int): self._width = width self._height = height super().__init__() def get_width(self) -> int: return self._width def get_height(self) -> int: return self._height ...
sentence = "This is a sample sentence." output = sentence.upper() print(output)
def get_preferred_language(): preferred_language = '' if 'HTTP_ACCEPT_LANGUAGE' in os.environ: languages = os.environ['HTTP_ACCEPT_LANGUAGE'].split(',') for lang in languages: lang_split = lang.split(';') preferred_language = lang_split[0] break return pre...
import { PortfolioViewComponent } from './portfolio-view/portfolio-view.component'; import { FirstPageComponent } from './first-page/first-page.component'; import { PostListComponent } from './post-list/post-list.component'; import { CreatePostComponent } from './create-post/create-post.component'; import { SignupCompo...
const express = require('express'); const app = express(); const bodyParser = require('body-parser'); // use body parser for managing form submission app.use(bodyParser.urlencoded({extended: true})); // use the Stripe API for payments const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY); // create an arra...
using System; public struct HTOUCHINPUT { private readonly IntPtr value; public HTOUCHINPUT(void* touchInputData) { value = new IntPtr(touchInputData); } public IntPtr Value => value; public static explicit operator HTOUCHINPUT(int value) => new HTOUCHINPUT((void*)value); public...
#!/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...
#!/bin/bash set +x # set -e if [ "$#" -lt 1 ]; then script_name=$(basename "$0") echo "Usage: ${script_name} <input-file-name>" echo "Example: ${script_name} example" exit -1 fi WORKSPACE=$1 # Select/Create Terraform Workspace terraform workspace select "${WORKSPACE}" IS_WORKSPACE_PRESENT=$? if [...
#!/bin/bash set -x set -e export PYTHONUNBUFFERED="True" LOG="experiments/logs/objectnet3d_vgg16_rpn_msr_test_2.txt.`date +'%Y-%m-%d_%H-%M-%S'`" exec &> >(tee -a "$LOG") echo Logging output to "$LOG" time ./tools/test_net.py --gpu $1 \ --def models/VGG16/objectnet3d/test_rpn_msr.prototxt \ --net output/objectne...
var dir_bea2aaa5ee1b83ed83ac6ec2539c5ff9 = [ [ "MultipleNetworksCifar10.cpp", "_multiple_networks_cifar10_8cpp.xhtml", "_multiple_networks_cifar10_8cpp" ] ];
import { TouchableOpacity } from 'react-native' import styled from 'styled-components/native' import { Label } from './Text' /** * Button styling */ const Button = styled.TouchableOpacity` border-radius: 3px; padding: 8px; margin: 0; border: 2px solid ${props => props.theme.colorIndex['grey-2']}; backgroun...
import React from 'react'; interface Props extends React.HTMLAttributes<HTMLDivElement> { } declare const CardBody: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>; export default CardBody; //# sourceMappingURL=CardBody.d.ts.map
import numpy as np from scipy.signal import find_peaks, savgol_filter from scipy.optimize import curve_fit def find_signal_peaks(signal): # Smooth the signal using Savitzky-Golay filter smoothed_signal = savgol_filter(signal, 5, 2) # Find peaks in the smoothed signal peaks, _ = find_peaks(smoothed_sig...
/** bamutil.h **/ /* *| File: bamutil.h |* *| |* *| Copyright (c) 2016-2018 University of Washington All rights reserved. |* *| ...
<filename>src/mono/wasm/runtime/diagnostics.ts // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. import { Module } from "./imports"; import cwraps from "./cwraps"; import type { EventPipeSessionOptions } from "./types"; import type ...
<reponame>shahabyazdi/element-popper import React, { useEffect, useState } from "react"; import ElementPopper from "../../../src/index"; export default function Doc(translate, language) { const [active, setActive] = useState(false); const [active1, setActive1] = useState(false); const [active2, setActive2] = use...
/** * rc oauth */ import copy from 'json-deep-copy' const { APP_HOME, RINGCENTRAL_APP_SERVER } = process.env export default async (req, res) => { const { code, state } = req.query const r = state.includes('ios') ? '/ios-device' : APP_HOME const server = RINGCENTRAL_APP_SERVER + r const data = { ser...
#!/bin/bash cabal run -v0 -- -g=testgrammars/words/words.ebnf -p=sentence -s testgrammars/words/words.txt cabal run -v0 -- -g=testgrammars/dangerousgrammar.ebnf -p=maybeEmpty -s
<reponame>OSWeDev/oswedev export default class CRUDHandler { public static CRUD_ROUTE_BASE: string = '/manage/'; public static getCRUDLink(API_TYPE_ID: string): string { if (!API_TYPE_ID) { return null; } return CRUDHandler.CRUD_ROUTE_BASE + API_TYPE_ID; } public sta...
<reponame>iankit3/searchmovies import React from 'react'; // import Sidebar from './components/Sidebar'; import Main from './components/Main'; // import DataBase from './services/indexedDBService'; class App extends React.Component{ constructor(){ super(); this.state = { selecteduser:{name:{fi...
<filename>spec/number_field_spec.rb<gh_stars>10-100 require 'spec_helper' describe FML::NumberField do it "accepts a number and converts it" do f = FML::NumberField.new({}) f.value = '56.23' expect(f.value).to eq '56.23' expect(f.number).to eq 56.23 end it "validates a number" do invalid_num...
#!/bin/bash export CHECKER_SITE=amazon.co.jp export NOTICE_SLACK_CHANNEL=xxxxxxxx export NOTICE_SLACK_TOKEN=xoxb-xxxxxxxxxxxx export NOTICE_DISCORD_CHANNEL=xxxxxxxx export DISCORD_TOKEN=xxxxxxxx node runner.js
#!/bin/sh if [ -z "$1" ] then echo "Please invoke with setupJakartaEE8Project.sh PROJECT_NAME" exit 1 fi PROJECT_NAME=$1 mvn archetype:generate \ -DarchetypeGroupId=io.costax \ -DarchetypeArtifactId=jakarta8-essentials-archetype \ -DarchetypeVersion=0....
mount none -t proc /proc &>> /dev/null mount none -t sysfs /sys &>> /dev/null mount none -t devpts /dev/pts &>> /dev/null export HOME=/root export LC_ALL=C source /tmp/envs.sh mkdir -p /iso echo "Live-CD" > /etc/hostname source /etc/os-release echo "nameserver 8.8.8.8 nameserver 1.1.1.1 search lan" > /etc/resolv.conf a...
<reponame>aleksandr-kotlyar/java-sitemap-checker package source.type; public class Html { }
use std::future::Future; use std::task::{Context, Poll}; use std::pin::Pin; enum BuilderState<F: Future<Output = ()>> { Building, Executing(Pin<Box<F>>), } struct Executor<F: Future<Output = ()>> { state: BuilderState<F>, } impl<F: Future<Output = ()>> Executor<F> { fn new() -> Self { Executo...
cut -c 2-7
$(document).ready(function() { // login $("#loginn").hide(); $('.fa-sign-in').on('click', function() { $('#loginn').toggleClass('show'); $('.lum').addClass('showingLum'); if ($('#loginn').hasClass('show')) { $('.lum').fadeT...
def add_two(a, b): return a + b sum_of_two = add_two(5, 10) print(sum_of_two)
<reponame>blkmajik/hyperglass export * from './HyperglassProvider';
<filename>services/web/src/modals/ShowRequest.js import React from 'react'; import { Modal, Table, Menu, Divider } from 'semantic'; import modal from 'helpers/modal'; import CodeBlock from 'components/Markdown/Code'; import RequestBlock from 'components/RequestBlock'; import { API_URL } from 'utils/env'; @modal expor...
// +build !windows package idtools // import "github.com/docker/docker/pkg/idtools" import ( "bytes" "fmt" "io" "os" "path/filepath" "strings" "sync" "syscall" "github.com/docker/docker/pkg/system" "github.com/opencontainers/runc/libcontainer/user" ) var ( entOnce sync.Once getentCmd string ) func mk...
<reponame>kasunsk/grpc-spring-boot-starter package org.lognet.springboot.grpc.demo; import io.grpc.examples.calculator.CalculatorGrpc; import io.grpc.examples.calculator.CalculatorOuterClass; import org.lognet.springboot.grpc.GRpcService; import org.springframework.boot.SpringApplication; import org.springframework.b...
from types import FunctionType from typing import Set from bytecode import Bytecode def linenos(f): # type: (FunctionType) -> Set[int] """Get the line numbers of a function.""" return {instr.lineno for instr in Bytecode.from_code(f.__code__) if hasattr(instr, "lineno")}
# 5/14/19 # 10/18/20: Disable linuxbrew. Lot of conflicts on ubuntu 18.04. Maybe # turn into a function. #[[ -f /home/linuxbrew/.linuxbrew/bin/brew ]] && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) # w/o the 'g' prefix #PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"
<reponame>DevelopIntelligenceBoulder/ngrxblog<filename>tools/tasks/seed/build.bundles.app.ts import { join } from 'path'; import * as Builder from 'systemjs-builder'; import { BOOTSTRAP_MODULE, JS_PROD_APP_BUNDLE, JS_DEST, SYSTEM_BUILDER_CONFIG, TMP_DIR } from '../../config'; const BUNDLER_OPTION...
<filename>lib/components/command_bar.js var CommandBar = React.createClass({ displayName: "CommandBar", getDefaultProps: function () { return { commands: [] }; }, commands: function () { return this.props.commands.map(function (cmd, idx) { return React.createElement( "button", ...