content
stringlengths
10
4.9M
n = int(raw_input()) res = 0 x = 1 while True: t = x p = 1 s = 0 while t: s += p*(t%2) t /= 2 p *= 10 if s > n: break res += 1 x += 1 print res
//Set sets the value for the average counting. func (a *Avg) Set(in int) { a.mlock.Lock() defer a.mlock.Unlock() a.count++ a.sum += in }
<reponame>edotau/goFish<filename>code/code.go // Package code describes biological sequence letters coded by bytes and sometimes encoded into hash int64s package code
<gh_stars>0 //import { App, AppProps, Annotations } from 'aws-cdk-lib'; //import { Construct } from 'constructs'; import { Project } from '../src/project'; import { resetRegionEnvironmentalVariables } from './utils/reset-region'; const config = { name: 'foo', author: { organization: 'Acme Corp', name: '<NA...
// handle DownloadRequests by sending the request to the book server func (c *Client) sendDownloadRequest(d *DownloadRequest) { core.DownloadBook(c.irc, d.Book) c.send <- WaitResponse{ MessageType: WAIT, Status: "Download request received", } }
class StarSystem: """A star system.""" def __init__( self, aName): self._name = aName self._techLevel = fudgeThrow() self._envLevel = fudgeThrow() self._resLevel = fudgeThrow() def getName( self): return self._name def getScore( self): ...
import java.util.*; public class codeforces { public static void main(String[] args){ //System.out.println(maxPath(new long[][]{{1,1,1},{1,-1,1},{1,1,1}})); Scanner input = new Scanner(System.in); int n = input.nextInt(); long[][] a = new long[3][n]; for(int i = 0; i < 3;i++){ for(int j = 0; j < ...
def PrepareClientVm(self, vm): super(Redshift, self).PrepareClientVm(vm) self.InstallAndAuthenticateRunner(vm)
Ron Dziuda’s family calls it "the black cloud.’’ When Ron applies for hundreds of jobs and no one calls back with an offer? The Black Cloud. When his daughter applies for her dream position and someone else gets it? The Black Cloud. Or when he and his wife Sue celebrate their anniversary with a dinner out and they suf...
// parent = parent of current node private static void dfs(int root, int parent, int[] disc, int[] low, boolean[] visited, Map<Integer, List<Integer>> graph, List<List<Integer>> out) { visited[root] = true; disc[root] = time++; low[root] = disc[root]; List<Integer> neighbors = graph.get...
use crate::buffer::Buffer; use crate::term::Term; use crate::term_seq::ClearScreen; use crate::term_seq::Goto; use std::io; use std::io::prelude::*; pub struct Tui { buf: Buffer, term: Term<io::Stdout>, } impl Tui { pub fn new() -> Self { Self { buf: Buffer::new(), term: Te...
def _config2von(self, config: dict, access: str = None) -> dict: rv = {k: config.get(k, self._defaults[k]) for k in ('auto_create', 'auto_remove')} rv['access'] = access or self.default_access for key in ('seed', 'did', 'link_secret_label'): if key in config: rv[key] ...
TERMS OF SALE EVERYTHING IS SOLD “AS IS - WHERE-IS”. EVERYTHING MUST BE PAID FOR IN FULL AND REMOVED BY 4:00 P.M. DAY OF SALE. Although we believe the descriptions of the items to be correct, neither Rosen Auctions, The Attorney General nor any Consignor makes any representations or warranty as to the condition of the ...
IMPROVED ARTIFICIAL NEURAL NETWORK THROUGH METAHEURISTIC METHODS AND ROUGH SET THEORY FOR MODERN MEDICAL DIAGNOSIS A novel meta-heuristic soft computing model with feature selection implemented using Rough set (RS) theory for the diagnosis of coronary artery disease in diabetes patients is proposed in this study. The ...
<gh_stars>0 package com.k1l3.wheredoesithurt.models; import java.io.Serializable; public class Day implements Serializable { DayClick dayClick; public Day() { dayClick = new DayClick(); } public DayClick getDayClick() { return dayClick; } public void setDayClick(DayClick day...
def top_right(self): return self.rects[Scale.TOP_RIGHT]
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.PreRepayPlanTermVO import PreRepayPlanTermVO class AlipayPcreditLoanBudgetQueryResponse(AlipayResponse): def __init__(self): super(AlipayPc...
package test import ( "github.com/stretchr/testify/mock" bussiness "gomux_gorm/src/auth_module/bussiness/entities" token "gomux_gorm/src/auth_module/frameworks/token" ) // DecodedTokenSpy ... type DecodedTokenSpy struct { mock.Mock token.IDecodedToken } // Decoded ... func (d *DecodedTokenSpy) Decoded(t string...
/** * This returns a statically allocated iterator that is backed by a vector. The vector * makes it safe against concurrent modification exceptions, but after calling * this function, you should iterate fully through the returned Iterator * for garbage collection to be fully optimized. * @return An Iterator ...
import numpy as np import tifffile as tif import torch from pathlib import Path import random from torch.utils.data import Dataset from typing import Callable, Optional, List, Tuple class USGSSegmentationDataset: def __init__(self, data_folder: Path, transform: Callable = None, mask: Optional[List[bool]] = None...
/*Ham nhan ket qua tra ve*/ @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode){ case PICKFILE_RESULT_CODE: if(resultCode == RESULT_OK) {Uri s...
/* * Copyright 2018 IBM Corp. All Rights Reserved. * * 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 o...
<filename>src/main/groovy/io/swagger/model/Ga4ghWesParameterTypes.java package io.swagger.model; /** * Gets or Sets ga4gh_wes_parameter_types */ public enum Ga4ghWesParameterTypes { DIRECTORY("Directory"), FILE("File"), PARAMETER("Parameter"); private String value; Ga4ghWesParameterTypes(String...
<filename>src/config/options/index.ts<gh_stars>1-10 import Confidence from 'confidence' import auth from './auth' import cronJob from './cronJob' import mongo from './mongo' import swagger from './swagger' import logger from './logger' import hapiRateLimit from './hapiRateLimit' // For development criteria based cons...
/** * Loads available resources from program arguments. * * @author Kelvin Kellner * @author Nish Tewari */ void load_available_resources(int argc, char *args[]) { num_resources = argc - 1; available_resources = (int *)malloc((num_resources) * sizeof(int)); ...
Performance Analysis of Energy Conservation Techniques for Wireless Sensor Networks In this paper, the problem of energy management in Wireless Sensor Network (WSN) for data collecting, computing and transfer is investigated. Battery powered sensors need efficient management due to limited energy resources, and energy...
// GetStances returns the Stances field value func (o *ItemWeapon) GetStances() []ItemWeaponStances { if o == nil { var ret []ItemWeaponStances return ret } return o.Stances }
// Decode reads the next packet from the underlying reader. // It blocks other calls to Decode until return. func (d *Decoder) Decode() (ctx *proto.PacketContext, err error) { d.mu.Lock() defer d.mu.Unlock() return d.readPacket() }
import { mock } from 'mockjs'; module.exports = () => mock({ id: '@id', name: '@cname', comment: '@cword(20, 100)', 'type|1': [1, 2], })
from Simulation.Agents import Proposer, Acceptor from Simulation.Network import Network from Simulation.Message import MessageTypes from Inputs import read_input def simulate(proposers, acceptors, max_ticks, events): network = Network(proposers, acceptors) for i in range(max_ticks): if len(events) ==...
// Copyright 2013 bee 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 applicable law or agreed to in ...
import { QUIT_ERROR } from "../types"; // here it gores the actions // here it goes the function events
//#include<bhaai.h> #include<bits/stdc++.h> using namespace std; #define to int64_t #define mo 1000000007 #define fr(a,e) for(int64_t i=a;i<=e;i++) #define yah_faster_baby ios_base::sync_with_stdio(0);cin.tie(0); to n,ans,dp[103][2],x; //float dp[103][103]; //vector <int> v[200005]; //char s[100005]; int m...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #ifndef COLUMNSORTPROXYMODEL_H #define COLUMNSORTPROXYMODEL_H #if !defined(Q_MOC_RUN) #include <QA...
<filename>src/a_star.go /* * Copyright (c) 2021 <NAME>. * All rights reserved. * See LICENSE.txt in project root for license information. * Authors: * <NAME> <<EMAIL>> */ package main import ( "fmt" "math" "strconv" "strings" ) type MazeAStarVisit struct { gScore int fScore int previous *MazeASta...
<filename>testsuite/test_0146/data/test.cpp #include <gtest/gtest.h> #include <pxr/base/tf/token.h> #include <pxr/base/vt/value.h> #include <pxr/usd/sdf/assetPath.h> #include "render_delegate/utils.h" #include <cinttypes> #include <vector> PXR_NAMESPACE_USING_DIRECTIVE std::vector<AtString> _GetStringArray(const A...
/** * Shorthand for the following <p> * <code>it.intervalInsert(new Node(new Interval(low, high)));</code> * * @param it an interval treap * @param low the low value of the interval to insert in to the treap * @param high the high value of the interval to insert in to the treap * @return ...
/** * Messages de l'application * @return */ @Bean public ResourceBundleMessageSource messageSource() { ResourceBundleMessageSource resourceBundleMessageSource = new ResourceBundleMessageSource(); List<String> filesToLoad=new LinkedList<String>(); ClassPathResource res = new ClassPathResource("i18n/mess...
// Error can be either of the following types: // // - ApiException /* Retrieves the list of service links for the authorized customer. See {@link ServiceType} for information on the various linking types supported. @param selector describing which links to retrieve @throws ApiException */ func (service ...
""" Functions for geometrical image transformation and warping. """ import sys import time import numbers from functools import wraps from collections import namedtuple import numpy as np import scipy.ndimage from scipy.signal import convolve2d from sunpy import log from sunpy.util.exceptions import warn_user __all_...
<reponame>DavidMChan/ChineseCheckers<gh_stars>1-10 #ifndef ENDGAME_DB_ELEMENT_H #define ENDGAME_DB_ELEMENT_H struct DBElement{ unsigned char a : 6, b : 6, c : 6, d : 6; }; #endif
import java.util.Scanner; public class Main { private static int[] first = new int[6]; private static int[] second = new int[6]; public static void main(String[] args) { Scanner scan = new Scanner(System.in); for(int i = 0; i < 6; i++){ first[i] = scan.nextInt(); } for(int i = 0; i < 6; i++){ second...
Network analysis as a method of evaluating enterprise networks in regional development projects The support of enterprise networks has an important role in the strategies and implementation of the EU’s cohesion policy programmes. Clustering and networking has become an instrument to increase the competitiveness of ent...
Improving the Security of SMS-based Services using Electronic Signatures - Towards SMS-based Processing of Transactional m-Government Services SMS is still one of the most popular mobile communication technologies. Simplicity, cost efficiency, and low bandwidth requirements account for the SMS technology’s continuing ...
original = list(input()) modified = original[::] s = [] index = 0 for j in range(len(original)): if(original[j]=='a'): index = j else: s.append(original[j]) if(original.count('a')==len(original)): print(''.join(original)) else: last = original[index+1:] s = s[:len(s)-len...
def store_user(request, response, project_key, user_id): projects = {} json_str = request.cookies.get('projects') if json_str is not None: try: projects = json.loads(json_str) except (ValueError, KeyError, TypeError): print "JSON format error" logging.exce...
<reponame>openshift-cherrypick-robot/sdn package main import ( "context" "github.com/Microsoft/hcsshim/internal/log" "github.com/Microsoft/hcsshim/internal/oc" "github.com/containerd/containerd/namespaces" shim "github.com/containerd/containerd/runtime/v2/shim" "github.com/sirupsen/logrus" "go.opencensus.io/tr...
Role model: Cameron Smith says players should accept the responsibility that comes with playing NRL footy. Credit:Matt King On Thursday, as the Kangaroos side came together at Coogee ahead of the Four Nations, the captain was asked if he was angry that little had changed. "Absolutely," he told this column. "I don't see...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ export * as interfaces from "./interfaces"; export { PrivateVault__factory } from "./PrivateVault__factory"; export { VaultHub__factory } from "./VaultHub__factory";
Most parents will tell you they love their children equally. Mothers and fathers will try to convince you they distribute their love evenly — they’ll say they love their babies the same. Not only is this impossible, it doesn’t even work. When it comes to multiple offspring, the key is to love them differently. Individ...
<reponame>moxley/chat package chat // Message a message type Message struct { Body string From *Client To *Client ToStr string }
A few weeks before The Paris Review’s Spring Revel, the Transom asked Courtney Love if she would be in attendance to watch her grandmother, the novelist Paula Fox, accept the Hadada Award. No, she would not. “Paula’s absolute dislike of me is shocking and inexplicable,” Ms. Love told us. The strained relationship is...
Of course there's a lot of overlap when it comes to porn and copyright infringement. The entire business model of many porn aggregation sites seems to be to steal videos from subscription services and offer them for free, although the relationship between such sites is more complicated than you might think. The ACL ca...
package com.brainacad.module_1.LabWork_1_4; /** * Created by a.zemlyanskiy on 01.09.2016. * Write a console program that prints result of Bitwise operators for two integer variables. */ public class Lab_Work_1_4_6 { public static void main(String[] args) { int a = 0x000F; int b = 0x2222; ...
Getty Images The encore for Ted Wells officially has run longer than his debut. As noted by NFL Media’s Albert Breer, the Wells-led investigation into the #DeflateGate scandal has now consumed more time than the investigation conducted by Wells regarding the Dolphins bullying scandal. In Miami, Wells’ work was done i...
// ListOwners retrieves a list of the group's owners. The owners are a set of users who are allowed to // modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in // Exchange or groups that are synchronized from an on-premises environment. // // GET /groups/{id}/own...
Profound bradycardia following release of cardiac tamponade. Hypothesis for reflex control. A 58-year-old patient with chronic renal failure presented for routine hemodialysis, and was noted to have severe hypotension and findings on examination compatible with cardiac tamponade. The patient had emergency construction...
// NewIngressCollector creates a new collector for the Kubernetes Ingress // resource. func NewIngressCollector() *IngressCollector { return &IngressCollector{ metadata: &collectors.CollectorMetadata{ IsStable: false, Name: "ingresses", NodeType: orchestrator.K8sIngress, }, processor: processors.New...
/** * Created by luying on 17/2/7. */ public class ChaseCmd extends UserBaseCmd{ int targetId; public ChaseCmd(byte[] bytes){ parse(bytes); } public int getTargetId() { return targetId; } public void setTargetId(int targetId) { this.targetId = targetId; } pub...
//----------------------------------------------------------------------------- // Compute vertex buffer for terrain that is a 2D grid. // The computed terrain spans [0,1] in texture coordinates (inclusive on edges). // The array pointed to by pResult is assumed to have m_numVertices elements, which are filled in by va...
/** * Adds condition to root node * @param condition * @return */ public boolean addCondition(AdvancedConditionsNode condition) { whereCondition.add(new DefaultMutableTreeNode(condition)); return false; }
Ethnicity and Health Care in Cervical Cancer Survival: Comparisons between a Filipino Resident Population, Filipino-Americans, and Caucasians Few studies have assessed and compared cervical cancer survival between developed and developing countries, or between ethnic groups within a country. Fewer still have addressed...
// simple test to make sure the C bindings to offsetof() are valid. func TestLmapOffsets(t *testing.T) { if lname_offset() >= lnext_offset() { t.Fatalf("lname offset (%d) should be l.t. lnext offset (%d)", lname_offset(), lnext_offset()) } }
//========================================================================== // // Bismillahir-Rahmanir-Rahim // // ========================================================================== #include <bits/stdc++.h> #define ll long long int #define f(x...
<filename>src/intercept/nextError.ts /* eslint-disable */ // @ts-nocheck import i18n from '@/i18n/index.ts' import { Message } from 'element-ui' export default function (to, from, next: Function, path = '/404') { console.log('错误路由处理') const error = process.env.VUE_APP_ROUTER_ERROR_PAGE_JUMP // next(new Error()) ...
Emerging Diagnostic and Therapeutic Potentials of Human Hair Proteomics The use of noninvasive human substrates to interrogate pathophysiological conditions has become essential in the post‐ Human Genome Project era. Due to its high turnover rate, and its long term capability to incorporate exogenous and endogenous su...
Figure 1. Schematics (not to scale) of the fabrication process steps (top) and the corresponding optical microscope images (bottom) of a representative all-2D FET. (i) Transfer of large-area CVD grown bilayer graphene onto a Si/SiO 2 substrate. (ii) Bilayer graphene patterning by O 2 plasma to define S/D contacts. (iii...
/* * Wrap the REST call. * TODO: Add logic later to handle HDFS HA related exception * to failover with a retry for the HA HDFS scenario. */ static void RestRequest(PxfOptions *options, ClientContext * client_context, char *rest_msg) { Assert(options->pxf_host != NULL && options->pxf_port > 0); CallRest(opt...
<gh_stars>0 import os import tempfile import json import pathlib import pytest import pandas import eco class TestPackager: @pytest.fixture def packager(self): from eco.packager import Packager return Packager() def test_packager(self, packager): assert packager._version == eco...
May the Blessed Virgin Mary, through her intercession, inspire fraternity in all those who venerate her, so that they may be reunited, in God’s own time, in the peace and harmony of the one people of God, for the glory of the Most Holy and indivisible Trinity! Joint Declaration of Pope Francis and Patriarch Kirill o...
def dots2mm( self, point ): return Point( self.dots2mm_X(point.x), self.dots2mm_Y(point.y) )
// LikePhoto takes in a context and photo id, returns abbreviated versions of the picture and user. // Likes a photo on behalf of the logged-in user. This requires the `write_likes` scope. // https://unsplash.com/documentation#like-a-photo func (c *Client) LikePhoto(ctx context.Context, photoID string) (*LikeResponse, ...
<reponame>ostdotcom/ost-wallet-sdk-android<filename>ostsdk/src/main/java/com/ost/walletsdk/ui/util/CommonUtils.java<gh_stars>10-100 /* * Copyright 2019 OST.com 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 ...
<gh_stars>0 import CountryMaster from './country'; import StateMaster from './state'; import CityMaster from './city'; export { CountryMaster, StateMaster, CityMaster };
def _get_many(self, ids, _record_builder, chunk_size): chunks = [ids[x:x+chunk_size] for x in range(0, len(ids), chunk_size)] for chunk in chunks: ids_found = 0 results = (self.session.query(schema.Record) .filter(schema.Record.id.in_(chunk))) f...
/// Returns a unit vector in x direction. /// /// ``` /// assert_eq!(lina::Vec2f::unit_x(), lina::vec2(1.0, 0.0)); /// ``` pub fn unit_x() -> Self where Self: HasX<Scalar = T>, { let mut out = Self::zero(); *out.x_mut() = T::one(); out }
<gh_stars>0 pub mod dmc; pub mod noise_channel; pub mod square_channel; pub mod triangle_channel;
Like most offices, we are coffee-fueled here at DataHero. Thus, when I came across some data on coffee production, I had to look into it a little more. Contributing so far only to the demand on coffee production, researching coffee distribution yielded many new perspectives and considerations. Factors like weather (Bra...
package com.xw.exception; import com.xw.ErrorCode; public class CheckException extends BaseException { private final int code; public CheckException(ErrorCode apiErrorCode) { super(apiErrorCode.getMessage()); this.code = apiErrorCode.getCode(); } /** * 用于一种code对英语多种语义的情况,需要加re...
package site.wanjiahao.gulimall.order.config; import lombok.extern.slf4j.Slf4j; import org.springframework.amqp.core.Binding; import org.springframework.amqp.core.Exchange; import org.springframework.amqp.core.Queue; import org.springframework.amqp.core.TopicExchange; import org.springframework.amqp.support.converter....
// RemoveEdge removes the connection from this node to the destination node. // Returns the cost of the edge that is removed. If the edge did not exist, // RemoveEdge returns nil. func (v *Vertex) RemoveEdge(dst *Vertex) Cost { e := v.out[dst] if e == nil { return nil } delete(e.src.out, e.dst) delete(e.dst.in, ...
import AWS from "aws-sdk"; import * as firebaseAdmin from "firebase-admin"; import { QuerySnapshot, DocumentChange, DocumentData } from "@google-cloud/firestore"; import { singular as singularize } from "pluralize"; import "isomorphic-fetch"; import AWSAppSyncClient from "aws-appsync"; import { AUTH_TYPE } from ...
Correlation of (18F) FDG PET/CT Parameters with Haematological Parameters in Esophageal Cancers and the Effect of These Parameters on Survival Objective: In the present study, we aimed to investigate the relationship between metabolic (SUVmax) and volume-based (18F)FDG PET/CT parameters (metabolic tumour volume (MTV) ...
package issues.i1580; import io.jooby.annotations.PUT; import io.jooby.annotations.Path; import io.jooby.annotations.PathParam; @Path("/pets") public class Controller1580 { @PUT @Path("/{id}") public Data1580 updatePet(Data1580 body, @PathParam String id) { // -> leads to NPE return body; } }
# -*- encoding: utf-8 -*- try: from django.core.urlresolvers import reverse except ImportError: from django.urls import reverse from django.test import TestCase from django.test.client import Client class Test(TestCase): def setUp(self): pass def test_raport_autorow(self): c = Client...
pub struct HttpResponse { pub content_type: String, pub content_length: usize, pub body: String, } impl HttpResponse { pub fn write_response(&self) -> String { format!( "HTTP/1.1 200 OK\r\n\ Content-Type: {}\r\n\ Content-Length: {}\r\n\ \r\n\ ...
def FindSuspects(dep_to_file_to_changelogs, dep_to_file_to_stack_infos, stack_deps, get_repository, ignore_cls=None): suspects = SuspectMap(ignore_cls) for dep, file_to_stack_infos in dep_to_file_to_stack_infos.iteritems(): file_to_changelogs = dep_to_file_to_c...
name = 'automake' version = '1.15' authors = [ 'GNU' ] description = \ ''' Automake ''' build_requires = [ 'autoconf-2.69' ] variants = [ ['platform-osx', 'arch-x86_64'] ] tools = [ ] def commands(): env.PATH.append('{root}/bin') if building: env.ACLOCAL_PATH = '{root}/s...
<reponame>macfire10/hospitalrun-frontend<gh_stars>0 import sortBy from 'lodash-es/sortBy' import React, { useState } from 'react' import { resources } from '@shared/config/i18n' import useTranslator from '@shared/hooks/useTranslator' import SelectWithLabelFormGroup, { Option } from './SelectWithLabelFormGroup' import ...
<filename>pkg/crypto/algorithm/rc4md5/rc4md5.go package rc4md5 import ( "crypto/cipher" "crypto/md5" "crypto/rc4" "github.com/golang/glog" ) const ( rc4MD5KeyLen = 16 rc4MD5IVLen = 16 ) //AES implementation aes encrypt and decrypt type RC4MD5 struct { Name string } //NewAES is return a AES handler func New...
/** * Utility methods used by the test class(es). * */ public abstract class AbstractTest { void waitForPass(long timeToWaitInSeconds, Runnable r) { waitForPass(timeToWaitInSeconds, false, r); } void waitForPass(long timeToWaitInSeconds, boolean showExceptions, Runnable r) { long expireTimeInNanos = Syst...
Obama has commuted the sentences of 348 federal inmates since he took office. (Pablo Martinez Monsivais/AP) President Obama granted clemency to 42 inmates Friday as part of an ongoing effort to release federal prisoners who are serving prison terms resulting from sentencing laws that the White House said were “outdate...
import { spawnTemplate } from "." export const builderSpawnLogic = (room: Room) => { return spawnTemplate({ role: 'builder', room }) }
-- Copyright 2017 <NAME> <<EMAIL>> -- SPDX-License-Identifier: MIT {-# LANGUAGE FlexibleContexts #-} module XMonad.MyConfig.Notify ( applyMyUrgencyHook , popupCurDesktop , myDefaultPopup, myNotify, myNotifyColored) where -- needs `notify-osd` and `libnotify` -- See: https://pbrisbin.com/post...
/** * Handle a change to the ClearStateRecord parameter */ void Pco::onClearStateRecord(TakeLock& takeLock) { if(paramClearStateRecord) { paramStateRecord = ""; paramClearStateRecord = 0; } }
Brit Dee, Contributor Activist Post Having devastated millions of lives as co-conspirator in the illegal and immoral Iraq war – and then having raked in millions of pounds through business contacts made during his time as prime minister – war criminal Tony Blair is apparently trying to edge his way back into British ...
<gh_stars>1-10 from pyramid.view import view_config from pyramid import i18n from memex import search from memex import storage from h import feeds _ = i18n.TranslationStringFactory(__package__) def _annotations(request): """Return the annotations from the search API.""" result = search.Search(request).run...
//Thread-4: Calculate the number of courses from SOC public class Thread4 implements Runnable{ public void run(){ try{ ExtractData ex = new ExtractData(); ArrayList<String> course = ex.course(); ArrayList<String> SOC = new ArrayList<String>(); ...
n = int(input()) won = list(input()) A_won = len([1 for i in won if i=='A']) print("Anton" if A_won>n-A_won else "Danik" if A_won<n-A_won else "Friendship")
a=int(input()) for i in range(a): s=int(input()) ans=[] for i in range(s//2): ans.append(2*(i+1)-1) ans.append(ans[-1]+1) if(s%2==1): ans.append(s) print(len(ans)) print(*ans)