text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
AP Chief Minister Chandrababu Naidu on Thursday regretted that Dr B. R. Ambedkar's mention was not allowed to be made by opposition YCP MLAs in the State Assembly. During the discussion pertaining to Dr Ambedkar's 125th birth anniversary celebrations, the YCP MLAs' attitude had put paid to the mention of the father of the Constitution. Talking to newsmen, the Chief Minister said the YCP leaders, including Jaganmohan, were rather new to the assembly conventions. He also remarked that the YCP MLAs were wont to do what their leader says. | english |
package p005cm.aptoide.p006pt.search.view;
import p026rx.p027b.C0132p;
/* renamed from: cm.aptoide.pt.search.view.Ga */
/* compiled from: lambda */
public final /* synthetic */ class C4705Ga implements C0132p {
/* renamed from: a */
public static final /* synthetic */ C4705Ga f8336a = new C4705Ga();
private /* synthetic */ C4705Ga() {
}
public final Object call(Object obj) {
return SearchResultPresenter.m9061a((String) obj);
}
}
| java |
<gh_stars>0
package com.carl.mvpdemo.pub.utils;
import android.content.Context;
import android.os.Environment;
import com.carl.mvpdemo.BuildConfig;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
/**
* @author Carl
* @version 1.0
* @since 2018/3/23
*/
public class FileUtils {
/**
* 将log日志写入sdCard
*/
public static void writeLogToSDCard(String tag, String content) {
String fileType = "Log";
long currentTime = System.currentTimeMillis();
StringBuffer writeContent = new StringBuffer();
//时间/包名/tag
writeContent.append(TimeUtils.TimeFormat3Date(currentTime)).append("/").append(BuildConfig.APPLICATION_ID).append("/").append(tag).append(":");
//内容
writeContent.append(content);
writeToSDCard(fileType, writeContent.toString());
}
/**
* 将崩溃日志写入sdCard
*/
public static void writeCrashToSDCard(String fileContent) {
String fileType = "Crash";
writeToSDCard(fileType, fileContent);
}
/**
* 默认使用追加的方式
*
* @param fileType 文件类型
* @param fileContent 文件内容
*/
public static void writeToSDCard(String fileType, String fileContent) {
writeToSDCard(fileType, fileContent, true);
}
public static void writeToSDCard(String fileType, String fileContent, boolean append) {
//如果SD卡不存在或无法使用,则无法把信息写入SD卡
if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
return;
}
long currentTime = System.currentTimeMillis();
//文件路径
StringBuffer filePath = new StringBuffer();
//sdCard/PDA/包名/fileType/
filePath.append(Environment.getExternalStorageDirectory().getPath()).append("/Carl/").append(BuildConfig.APPLICATION_ID).append("/").append(fileType).append("/");
//后缀
String fileNameSuffix = ".txt";
//文件名
StringBuffer fileName = new StringBuffer();
fileName.append(fileType).append(TimeUtils.TimeFormat2DataV2(currentTime)).append(fileNameSuffix);
File dir = new File(filePath.toString());
if (!dir.exists()) {
dir.mkdirs();
}
File file = new File(filePath.toString() + fileName);
try {
PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(file, append)));
StringBuffer writeContent = new StringBuffer();
writeContent.append(fileContent).append("\n");
pw.println(writeContent);
pw.close();
} catch (Exception e) {
}
}
public static boolean retrieveApkFromAssets(Context context, String fileName, String path) {
boolean bRet = false;
try {
InputStream e = context.getAssets().open(fileName);
File file = new File(path);
boolean lNewFile = file.createNewFile();
FileOutputStream fos = new FileOutputStream(file);
byte[] temp = new byte[1024];
int i;
while ((i = e.read(temp)) > 0) {
fos.write(temp, 0, i);
}
fos.close();
e.close();
bRet = true;
} catch (IOException var10) {
var10.printStackTrace();
}
return bRet;
}
public static void deleteFiles(String path) {
File file = new File(path);
if (!file.exists()) {
return;
}
//1級文件刪除
if (!file.isDirectory()) {
file.delete();
} else if (file.isDirectory()) {
//2級文件列表
String[] filelist = file.list();
//獲取新的二級路徑
for (String aFilelist : filelist) {
File filessFile = new File(path + "\\" + aFilelist);
if (!filessFile.isDirectory()) {
filessFile.delete();
} else if (filessFile.isDirectory()) {
//遞歸調用
deleteFiles(path + "\\" + aFilelist);
}
}
file.delete();
}
}
}
| java |
Notes are private!
Notes are private!
Notes are private!
Notes are private!
Notes are private!
I picked up this title because I was reassured it was an amazingly crafted tale of political intrigue. Political intrigue? The main character couldn’t I picked up this title because I was reassured it was an amazingly crafted tale of political intrigue. Political intrigue? The main character couldn’t political intrigue herself out of a corn maze at a pumpkin farm.
Girl stop pretending to visit the library and pick up a god damned book IN THE LIBRARY. Libraries. Plural. That you encounter. Maybe one on the topic of communication.
This chick hasn’t gotten a single brain cell left from the memory loss, so much so she’s traipsing around a market with her maid instead of, I dunno, hiring a tutor to bring her up to speed on the past 3 years she missed, but somehow can fight her way out of several situations with battle hardened warriors.
I wish I could pick up a magic horse only I could control and then literally not even think about it or ask anyone about it for 200 plus pages.
Notes are private!
Notes are private!
Notes are private!
Notes are private!
Notes are private!
| english |
<gh_stars>1000+
{"id":"00411","group":"easy-ham-2","checksum":{"type":"MD5","value":"795ae1b91264d007f60721c1c89a5ea7"},"text":"From <EMAIL> Thu Aug 15 10:51:33 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id 96F4B43C37\n\tfor <jm@localhost>; Thu, 15 Aug 2002 05:49:46 -0400 (EDT)\nReceived: from phobos [127.0.0.1]\n\tby localhost with IMAP (fetchmail-5.9.0)\n\tfor jm@localhost (single-drop); Thu, 15 Aug 2002 10:49:46 +0100 (IST)\nReceived: from lugh.tuatha.org (<EMAIL> [172.16.58.35]) by\n dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g7EIiY430306 for\n <<EMAIL>>; Wed, 14 Aug 2002 19:44:34 +0100\nReceived: from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org\n (8.9.3/8.9.3) with ESMTP id TAA24129; Wed, 14 Aug 2002 19:43:36 +0100\nReceived: from matrix.netsoc.tcd.ie (netsoc.tcd.ie [134.226.83.50]) by\n lugh.tuatha.org (8.9.3/8.9.3) with ESMTP id TAA24104 for <<EMAIL>>;\n Wed, 14 Aug 2002 19:43:30 +0100\nX-Authentication-Warning: lugh.tuatha.org: Host netsoc.tcd.ie\n [172.16.31.10] claimed to be matrix.netsoc.tcd.ie\nReceived: from matrix (localhost [127.0.0.1]) by matrix.netsoc.tcd.ie\n (Postfix) with ESMTP id DCD403445A for <<EMAIL>>; Wed,\n 14 Aug 2002 19:42:59 +0100 (IST)\nDate: Wed, 14 Aug 2002 19:42:58 +0100\nTo: \"'<EMAIL>'\" <<EMAIL>>\nSubject: POTW (Was Re: [ILUG] mirroring on a running system)\nMessage-Id: <<EMAIL>>\nReferences: <<EMAIL>>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\nIn-Reply-To: <<EMAIL>>\nUser-Agent: Mutt/1.3.23i\nX-Operating-System: SunOS matrix 5.8 Generic_108528-09 sun4u sparc\nFrom: <NAME> <<EMAIL>>\nMail-Followup-To: ilug@linux.ie\nX-Delivery-Agent: TMDA/0.59\nSender: ilug-admin@linux.ie\nErrors-To: ilug-admin@linux.ie\nX-Mailman-Version: 1.1\nPrecedence: bulk\nList-Id: Irish Linux Users' Group <ilug.linux.ie>\nX-Beenthere: ilug@linux.ie\n\nTakers galore possibly (me inclusive). Especially when the subject\nis more on-topic :-)\n\nGary.\n\nOn Wed, Aug 14, 2002 at 10:08:03AM +0100, <NAME> wrote:\n> All right, can't get pissed though as its a week-day. If we were to do\n> it in Lucan, that would be another story ;--)\n> \n> Do we have many takers? \n> \n> CW\n> \n> -------------\n> On Wed, Aug 14, 2002 at 09:22:27AM +0100, <NAME> mentioned:\n> > When are we going to have a pint? \n> \n> Tuesday next week. Boars Head, Capel st.\n> \n> Kate\n\n-- \nIrish Linux Users' Group: <EMAIL>\nhttp://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.\nList maintainer: listmaster@linux.ie\n\n\n"} | json |
{"ast":null,"code":"import React from\"react\";import{Link}from\"react-router-dom\";function Nav(){return/*#__PURE__*/React.createElement(\"nav\",{className:\"navbar navbar-expand-lg navbar-dark bg-primary\"},/*#__PURE__*/React.createElement(\"a\",{className:\"navbar-brand\",href:\"/\"},\"React Reading List\"),/*#__PURE__*/React.createElement(Link,{to:\"/books\",style:{color:\"white\"}},/*#__PURE__*/React.createElement(\"strong\",null,\"savedBooks\")));}export default Nav;","map":{"version":3,"sources":["/Users/LX/gt-ft/homework/googlebook/client/src/components/Nav/index.js"],"names":["React","Link","Nav","color"],"mappings":"AAAA,MAAOA,CAAAA,KAAP,KAAkB,OAAlB,CACA,OAASC,IAAT,KAAqB,kBAArB,CAEA,QAASC,CAAAA,GAAT,EAAe,CACb,mBACE,2BAAK,SAAS,CAAC,gDAAf,eACE,yBAAG,SAAS,CAAC,cAAb,CAA4B,IAAI,CAAC,GAAjC,uBADF,cAKI,oBAAC,IAAD,EAAM,EAAE,CAAE,QAAV,CAAoB,KAAK,CAAE,CAAEC,KAAK,CAAE,OAAT,CAA3B,eACE,+CADF,CALJ,CADF,CAYD,CAED,cAAeD,CAAAA,GAAf","sourcesContent":["import React from \"react\";\nimport { Link } from \"react-router-dom\";\n\nfunction Nav() {\n return (\n <nav className=\"navbar navbar-expand-lg navbar-dark bg-primary\">\n <a className=\"navbar-brand\" href=\"/\">\n React Reading List\n </a>\n {\n <Link to={\"/books\"} style={{ color: \"white\" }}>\n <strong>savedBooks</strong>\n </Link>\n }\n </nav>\n );\n}\n\nexport default Nav;\n"]},"metadata":{},"sourceType":"module"} | json |
import { createReducer } from 'redux-act'
import { setLanguage, fillSearchIndex, setMarkdownFiles } from './actions'
const initialState = {
language: 'en',
blockTime: 200,
algorithm: 'RandomY',
difficulty: 333,
searchIndex: null,
searchDocs: null,
markdownFiles: null,
}
const handleSetLanguage = (state, newLanguage) => {
if(state.language !== newLanguage) {
return {
...state,
language: newLanguage,
}
}
}
const handleFillSearchIndex = (state, {docsMap, idx}) => ({
...state,
searchIndex: idx,
searchDocs: docsMap,
})
const handleSetMarkdownFiles = (state, mdFiles) => ({
...state,
markdownFiles: mdFiles,
})
const actions ={
[setLanguage]: handleSetLanguage,
[fillSearchIndex]: handleFillSearchIndex,
[setMarkdownFiles]: handleSetMarkdownFiles,
}
const reducer = createReducer(actions, initialState)
export default reducer
| javascript |
Religion has been at the centre of human societal existence since time immemorial. Religion is, and has always been, an indispensable and ineffaceable part of our lives. The Karnataka High Court’s much-awaited judgment on hijab has upheld the state government’s circular of February 5. The 129-page judgment is on the expected lines with the three-judge full bench headed by Chief Justice Ritu Raj Awasthi discussing at length the doctrine of essentiality and how hijab is not an essential religious practice of Islam, and, therefore, concluding that the petitioners’ arguments against hijab are liable to rejection.
Strangely, the learned judges made no reference whatsoever to the acceptance of the review of the Sabarimala judgment (2018) and framing of seven questions by the seven-judge bench of the Supreme Court. The Sabarimala review (2020) clearly shows that the Supreme Court itself is in doubt about the correctness of the essentiality doctrine and whether courts should assume the role of clergy. The judgment is also historic as it has given much importance to discipline and control over liberty and diversity: The high court has upheld the dress code because it would promote harmony.
Religious freedom is premised on the belief that every human being has the inherent dignity to explore his or her conscience and pursue the truth. Religious practice promotes the well-being of individuals, families, and the community and its denial may unnecessarily lead to frustration, depression and exclusion. The judgment begins with a quote from Sara Slininger that the history of the hijab is quite complex and has been influenced by the intersection of religion and culture. While some women no doubt veil themselves because of societal pressure, others do so by choice. But the judgment spent hardly any time on the question of “choice” made by the few Muslim girls.
The court has rightly concluded that freedom of religion under Article 25 has been subordinated and made subservient to all other fundamental rights. But in this case, there was no question of conflict between competing fundamental rights. To say that freedom of religion is merely an individual right is equally controversial as freedom of religion under Article 26 is indeed a group right given to every religious denomination or any section thereof, and unlike Article 25, it has not been subjected to other fundamental rights. In fact, the essentiality doctrine originated in the context of the expression “in matters of religion” used in Article 26.
The Supreme Court in Shirur Mutt (1954) held that the term “religion” in Article 25 covers all rituals and practices that are “integral” to the religion. In this manner, the judiciary took it upon itself to determine what is integral — and what is not — to religion. In doing so, it implicitly rejected the “assertion test” of the United States, “whereby a [plaintiff] could just assert that a particular practice was a religious practice” and courts would not probe it any further.
The Karnataka HC has now said that hijab is not integral to Islam. This author has been writing that essential religious practices doctrine is erroneous and gives courts extremely wide powers in purely theological matters. It looks too simplistic to say this or that is not a core belief. But then should we privilege one practice over another? The insistence that essential practices must originate at the time of the founding of the religion is also absurd. On the matter of the tandav dance in the Anand Margi case, the apex court denied protection to tandav dance because the Anand Margi faith came in 1955 but dance was introduced in 1966. Religions do evolve over time. To say whatever is not in the Vedas or the Srutis is not an essential Hindu practice may greatly undermine the freedom of religion of Hindus.
The Indian Young Lawyers Association judgment (2018) that insists on the foundation of the practice and has been relied upon by the Karnataka HC that the foundation of the practice must precede the religion itself or should be co-founded at the origin of the religion is itself deeply problematic and is now under review in the Supreme Court. In Gandhi v. State of Bombay (1954), the Supreme Court had said that no outside authority has any right to say that these are the essential parts of religion and it is not open to the secular authority of the state to restrict or prohibit them in any manner they like.
If we go by the Karnataka High Court judgment that hijab is not essential Islamic practice because there is no punishment for not having hijab, it may lead to the conclusion that adultery and homosexuality are to be considered as haram (prohibited) as there are severe punishments for them under Islam. In spite of their decriminalisation, these will remain sins in the eyes of religion.
The judgment clearly says that, “the Holy Quran does not mandate wearing of hijab or headgear for Muslim women. Whatever is stated in the 66 above suras, we say, is only directory, because of absence of prescription of penalty or penance for not wearing hijab, the linguistic structure of verses supports this view”. The conclusion of the court that, “It is not that if the alleged practice of wearing hijab is not adhered to, those not wearing hijab become sinners, Islam loses its glory and it ceases to be a religion,” would seriously curtail the scope of religious freedom of all religions because this can be said about most religious practices. No religion would lose glory because of the state disallowing a particular practice.
The judgment has taken an extremely narrow view of the freedom of conscience and has demanded too heavy a burden of proof.
Academic administrators may celebrate this judgment as it gives them extraordinary powers to discipline their students. The judgment is a milestone as far as the control model of administration is concerned. Strangely the court found it fit to quote Rex v Newport (1929) judgment about the upholding of caning for smoking a cigarette outside school. The judges are not aware that there are schools that do not have uniforms.
The judgment is a clear setback to the liberty model of administration as it says fundamental rights have relative content and their efficacy levels depend upon the circumstances in which they are sought to be exercised. The court even said that the petitions do not involve the claim about substantive rights such as the right to privacy and freedom of expression but merely derivative rights. Finally, the court strangely held that in so-called “qualified public places” like schools, there cannot be the assertion of individual rights to the general detriment of general discipline and decorum. The court went on to conclude that even the substantive rights themselves metamorphose into a kind of derivative rights in such places. In fact, the court has quoted fundamental duties provisions at several places as if the same were justiciable like fundamental rights. | english |
<filename>src/State/Interfaces/IActions.ts
import CollisionType from '../../Shared/Util/Constants/CollisionType';
import State from '../State';
interface IActions {
focus(): void;
blur(): void;
invalidate(): void;
validate(): void;
topOut(): void;
bottomOut(): void;
scroll(): void;
open(
maxBodyHeight: number,
collisionType: CollisionType,
isScrollable: boolean
): void;
close(): void;
makeScrollable(): void;
makeUnscrollable(): void;
selectOption(index: number): void;
focusOption(index: number, shouldScrollToView?: boolean): void;
search(): void;
resetSearch(): void;
keying(): void;
resetKeying(): void;
useNative(): void;
closeOthers?(): void;
scrollToView?(stateProxy: State, scrollToMiddle?: boolean): void;
}
export default IActions; | typescript |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function () {
'use strict';
var module = angular.module('pnc.common.directives');
/**
* @ngdoc directive
* @name pnc.common.directives:pncScmValidator
* @restrict A
* @param {string} pnc-scm-validator
* String including list of allowed protocols separated by "|"
* @param {string} pnc-exact-host
* Optional host restriction
* @description
* <protocol>(://)<host><path>.git<parameters>
* Check wheter SCM field is valid.
* List of allowed protocols (separated by "|"):
* - "git" -> example git://github.com/user/project.git#v1.0
* - "ssh" -> example ssh://user@host.xz:port/path/to/repo.git/ or ssh://host.xz:port/path/to/repo.git/
* - "http" -> example http://github.com/user/project.git
* - "https" -> example https://github.com/user/project.git
* - "git+ssh" -> example git+ssh://github.com/user/project.git
* - "git@" -> example git@github.com:user/project.git
* @example
* <input pnc-scm-validator="git|ssh|http|https|git+ssh|git@" pnc-exact-host="user@host.xz:port" ... >
* @author <NAME>nar
*/
module.directive('pncScmValidator', function () {
var isScmUrl = function(allowedProtocols, exactHost, url) {
allowedProtocols = allowedProtocols.replace('git@', 'git@[\\w\\.]+').replace('git+ssh', 'git\\+ssh');
exactHost = exactHost && exactHost.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
var pattern = new RegExp(
'^(?:'+ allowedProtocols +')' + // protocols
':(?:\\/\\/)?' + // protocol separator
(exactHost ? exactHost + '(\\/[\\w\\.:~_-]+)+\\.git' : '[\\w\\.@:\\/~_-]+') + // repository
//'\\.git' + // suffix
'(?:\\/?|\\#[\\d\\w\\.\\-_]+?)$'); // parameters
return pattern.test(url);
};
return {
restrict: 'A',
require: 'ngModel',
scope: {
allowedProtocols : '@pncScmValidator',
exactHost : '=pncExactHost'
},
link: function(scope, ele, attrs, ctrl){
ctrl.$validators.invalidScmUrl = function(value) {
return !value || isScmUrl(scope.allowedProtocols, scope.exactHost, value);
};
}
};
}
);
})();
| javascript |
Hello, friends today we are going to upload the Royal Touch Laminates Catalogue 2022 PDF to assist you all. Many of you are in search of the Royal Touch Laminates Catalogue 2022 in PDF format but are unable to find it anywhere don’t worry we are here to help you. From here you will get all the important details related to Royal Touch Laminates Catalogue 2022 also you can download it by clicking on the link given at the end of this article.
1978 was the year when five brothers Ashwin Patel, Arvind Patel, Dinesh Patel, Bharat Patel, and Jitendra Patel from Gujarat decided to change the way India looked at laminates. They wanted to change the country’s perception that laminates were just an economical, hard-to-find backdrop. The dream came true when Royal Touch’s first manufacturing unit was established in the city of Wadwan. It’s a start-up built on two simple rules Ever-changing designs and never-changing quality, A Royal customer should be treated like royalty Over time, Royal Touch has grown to become India’s most premium laminate brand with a wide variety of designs. And the promise of impeccable quality.
- Olympic Decor LLP offers India’s most premium and luxury laminates, Royale Touche was built with the idea that a laminate is not just an invisible background. With this ideology, we have aimed to reinvent the way people looked at laminates.
- Royale Touche products are manufactured at top-notch facilities with modern equipment imported from Spain and Italy.
- We use imported papers with highly stable and resistant pigments to guarantee the longevity of our products. We also have a 48-hour delivery promise.
- 600+ Designs, 40+ Realistic Textures. 3 Sizes. And 1 New Design every 4 Days.
You can download the Royal Touch Laminates Catalogue 2022 PDF by clicking on the link given below.
| english |
<filename>mavenproject1-web/src/main/java/konverteri/ProfesorKonverter.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package konverteri;
import ejb.SBProfesorLocal;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import model.Profesor;
/**
*
* @author admin
*/
@FacesConverter("profesorKonverter")
public class ProfesorKonverter implements Converter{
SBProfesorLocal sBProfesor = lookupSBProfesorLocal();
@Override
public Object getAsObject(FacesContext context, UIComponent component, String value) {
return sBProfesor.vratiProfesora(Long.parseLong(value));
}
@Override
public String getAsString(FacesContext context, UIComponent component, Object value) {
return String.valueOf(((Profesor)value).getProfesorId());
}
private SBProfesorLocal lookupSBProfesorLocal() {
try {
Context c = new InitialContext();
return (SBProfesorLocal) c.lookup("java:app/mavenproject1-ejb-1.0-SNAPSHOT/SBProfesor");
} catch (NamingException ne) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception caught", ne);
throw new RuntimeException(ne);
}
}
}
| java |
body{
margin:0;padding:0;
}
a{
text-decoration:none;
}
.t{
margin-left:auto;
margin-right:auto;
width:1000px;
height:100px;
}
.t img{
width:100px;
}
#q{
width:200px;
padding-bottom:12px;
}
.t .q_1{
width:240px;
height:100px;
float: right;
}
.d{
width:100%;
background:#de112e;
}
.dd1{
width:970px;
height:570px;
margin:0 auto;
padding-top:30px;
}
.dd1 img{
width:600px;
height:570px;
}
.d1{
float:right;
width:360px;
height:400px;
margin-left:auto;
margin-right:auto;
margin-top:80px;
background-color:#ffffff;
}
.d2{
width:360px;
height:51px;
background-color:#ffffff;
border-bottom: 1px solid #ffffff;
}
.d3{
width:300px;
height:51px;
margin-left:auto;
margin-right:auto;
}
.d3 .zhu{
margin: 0;
float: left;
font-size: 25px;
margin-top: 10px;
color: #666;
}
.d4{
width:360px;
height:350px;
}
.d5{
padding:10px 30px;
width:300px;
height:310px;
}
.d6{
width:300px;
}
.d6 a{
color:#666;
font-size:14px;
}
.d6 a:hover{
color:#de112e;
}
.d7 input{
width:300px;
height:40px;
margin: 0 auto;
}
.d7 input{
cursor: pointer; /* 改变鼠标的悬停时的样式 pointer 小手样式 */
}
.kongge{
width:300px;
height:19px;
}
.denglu{
padding-top:7px;
float:right;
font-size:14px;
}
#yong{
padding-left:40px;
width:248px;
height:32px;
background-image: url('../img/小图标4.png');
background-repeat: no-repeat; /* 背景图不平铺 */
background-position: 8px 8px; /* 背景图x y 轴的移动 */
}
#mima{
padding-left:40px;
width:248px;
height:32px;
background-image: url('../img/小图标3.png');
background-repeat: no-repeat; /* 背景图不平铺 */
background-position: 8px 8px; /* 背景图x y 轴的移动 */
}
#mima2{
padding-left:40px;
width:248px;
height:32px;
background-image: url('../img/小图标3.png');
background-repeat: no-repeat; /* 背景图不平铺 */
background-position: 8px 8px; /* 背景图x y 轴的移动 */
}
.yan{
width:106px;
height:32px;
padding-left:40px;
}
.yan2{
float:right;
padding-top:16px;
padding-right:38px;
}
.w{
width:990px;
margin:0 auto;
}
.s{
padding-bottom: 30px;
text-align: center;
}
.s .link a{
margin: 0 10px;
color:#000000;
text-decoration: none;
} | css |
import { Components, Interactions } from 'plottable';
import debounce from 'lodash/debounce';
import flatten from 'lodash/flatten';
import {
createXScale,
createYScale,
createColorScale,
createXAxis,
createYAxis,
createLegend,
createSeriesPlot,
} from './plottable-utils';
import Tooltip from './Tooltip';
import './TimewrapChart.css';
let synchronousUpdates = false;
export default class {
// For testing only
static useSynchronousUpdates() {
synchronousUpdates = true;
}
constructor(el, colorPalette) {
this.el = el;
this.el.classList.add('custom-timewrap-visualization');
this.el.innerHTML = '<div class="render-to" width="100%" height="100%"></svg>';
this.colorPalette = colorPalette;
this.tooltip = null;
this.selectedPoint = null;
this.clickHandler = null;
if (!synchronousUpdates) {
this.update = debounce(this.update, 10);
}
this.clickInteractionCallback = this.clickInteractionCallback.bind(this);
}
update(data, config, seriesNames) {
if (this.chart) {
this.clear();
}
const scales = {
x: createXScale(data),
y: createYScale(),
color: createColorScale(seriesNames, this.colorPalette),
};
const rotateXLabels = config.xLabelRotation === 'on';
const xAxis = createXAxis(scales.x, data, rotateXLabels);
const yAxis = createYAxis(scales.y);
const gridlines = new Components.Gridlines(null, scales.y);
const legend = createLegend(scales.color, config.legendPlacement);
const showMarkers = config.pointMarkers === 'on';
const plots = flatten(data.map((dataSeries, i) => {
const seriesName = seriesNames[i];
return createSeriesPlot(dataSeries, seriesName, scales, showMarkers);
}));
this.plotGroup = new Components.Group([gridlines, ...plots]);
if (!legend) {
this.chart = new Components.Table([
[yAxis, this.plotGroup],
[null, xAxis],
]);
} else if (config.legendPlacement === 'bottom') {
this.chart = new Components.Table([
[yAxis, this.plotGroup],
[null, xAxis],
[null, legend],
]);
} else {
this.chart = new Components.Table([
[yAxis, this.plotGroup, legend],
[null, xAxis, null],
]);
}
this.chart.renderTo(this.el.querySelector('div.render-to'));
const tooltipDateFormat = config.tooltipFormat || 'MMM Do, YYYY h:mm A';
this.tooltip = new Tooltip(scales.color, tooltipDateFormat);
if (config.drilldown) {
this.tooltip.onShow(this.onTooltipShow.bind(this));
this.tooltip.onHide(this.onTooltipHide.bind(this));
}
this.tooltip.attachTo(this.plotGroup);
if (config.drilldown) {
this.clickInteraction = new Interactions.Click();
this.clickInteraction.onClick(this.clickInteractionCallback);
this.clickInteraction.attachTo(this.plotGroup);
}
}
onTooltipShow(point) {
this.selectedPoint = point;
this.el.style.cursor = 'pointer';
}
onTooltipHide() {
this.selectedPoint = null;
this.el.style.cursor = '';
}
remove() {
this.clear();
this.clickHandler = null;
}
clear() {
if (this.clickInteraction) {
this.clickInteraction.offClick(this.clickInteractionCallback);
this.clickInteraction.detachFrom(this.plotGroup);
}
if (this.chart) {
this.chart.destroy();
}
if (this.tooltip) {
this.tooltip.destroy();
}
}
clickInteractionCallback(point, e) {
if (!this.selectedPoint || !this.clickHandler) {
return;
}
const { date, fieldName, fieldValue } = this.selectedPoint.datum;
const clickInfo = {
date: date.toDate(),
[fieldName]: fieldValue,
};
this.clickHandler(clickInfo, e);
}
onClick(handler) {
this.clickHandler = handler;
}
} | javascript |
Aside from the defeat to the ruling Bharatiya Janata Party in the Goa assembly polls, one thing that majorly embarrassed the Congress on Thursday was losing a part of its vote bank to the state’s youngest political outfit, the Revolutionary Goans Party.
The RGP got registered with the Election Commission just a month ago. It also won its maiden seat, St Andre, with candidate Veeresh Borkar.
RG, as the party is popularly called, gave Rahul Gandhi (RG)’s party a run for its money and hurt the Congress’s vote share in at least five major constituencies.
The Congress won 11 seats in Goa, almost 8 below their expectations, say party leaders. But what hurt them the most was how Goa’s youngest party, Revolutionary Goans, set them back by taking away 1,000-1,500 votes each in Curtorim, Valpoi, Shiroda, and Curchorem.
“It is bad enough we could not win despite our hard work, but a young party like RG has taught us a few lessons,” said a senior Congress leader.
Led by former Aam Aadmi Party worker Manoj Parab, RGP started out as a social organisation built on the premise of fighting to preserve the rights of persons of Goan origin. The party fielded candidates against several heavyweights in the state — including chief minister Pramod Sawant (Sanquelim) and health minister Vishwajit Rane (Valpoi).
Read all minute-by-minute news updates for Uttar Pradesh election results 2022, Punjab election results 2022, Uttarakhand election results 2022, Manipur election results 2022, and Goa election results 2022.
Click here for seat-wise LIVE result updates. | english |
<gh_stars>0
/* */
define(['exports', 'aurelia-dependency-injection', 'aurelia-templating', 'aurelia-router', 'aurelia-metadata'], function (exports, _aureliaDependencyInjection, _aureliaTemplating, _aureliaRouter, _aureliaMetadata) {
'use strict';
exports.__esModule = true;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
var RouterView = (function () {
function RouterView(element, container, viewSlot, router) {
_classCallCheck(this, _RouterView);
this.element = element;
this.container = container;
this.viewSlot = viewSlot;
this.router = router;
this.router.registerViewPort(this, this.element.getAttribute('name'));
}
RouterView.prototype.bind = function bind(executionContext) {
this.container.viewModel = executionContext;
};
RouterView.prototype.process = function process(viewPortInstruction, waitToSwap) {
var _this = this;
var component = viewPortInstruction.component,
viewStrategy = component.view,
childContainer = component.childContainer,
viewModel = component.executionContext,
viewModelResource = component.viewModelResource,
metadata = viewModelResource.metadata;
if (!viewStrategy && 'getViewStrategy' in viewModel) {
viewStrategy = viewModel.getViewStrategy();
}
if (viewStrategy) {
viewStrategy = _aureliaTemplating.ViewStrategy.normalize(viewStrategy);
viewStrategy.makeRelativeTo(_aureliaMetadata.Origin.get(component.router.container.viewModel.constructor).moduleId);
}
return metadata.load(childContainer, viewModelResource.value, viewStrategy, true).then(function (viewFactory) {
viewPortInstruction.behavior = metadata.create(childContainer, {
executionContext: viewModel,
viewFactory: viewFactory,
suppressBind: true,
host: _this.element
});
if (waitToSwap) {
return;
}
_this.swap(viewPortInstruction);
});
};
RouterView.prototype.swap = function swap(viewPortInstruction) {
viewPortInstruction.behavior.view.bind(viewPortInstruction.behavior.executionContext);
this.viewSlot.swap(viewPortInstruction.behavior.view);
if (this.view) {
this.view.unbind();
}
this.view = viewPortInstruction.behavior.view;
};
var _RouterView = RouterView;
RouterView = _aureliaDependencyInjection.inject(Element, _aureliaDependencyInjection.Container, _aureliaTemplating.ViewSlot, _aureliaRouter.Router)(RouterView) || RouterView;
RouterView = _aureliaTemplating.noView(RouterView) || RouterView;
RouterView = _aureliaTemplating.customElement('router-view')(RouterView) || RouterView;
return RouterView;
})();
exports.RouterView = RouterView;
}); | javascript |
#![crate_id(name="tty", version="1.0.0", author="<NAME>")]
/*
* This file is part of the uutils coreutils package.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Synced with http://lingrok.org/xref/coreutils/src/tty.c
*/
#![allow(dead_code)]
#![feature(macro_rules)]
extern crate getopts;
extern crate libc;
use std::{str,os};
use std::io::println;
use std::io::stdio::stderr;
use getopts::{optflag,getopts};
#[path = "../common/util.rs"]
mod util;
extern {
fn ttyname(filedesc: libc::c_int) -> *libc::c_char;
fn isatty(filedesc: libc::c_int) -> libc::c_int;
}
static NAME: &'static str = "tty";
#[allow(dead_code)]
fn main () { os::set_exit_status(uumain(os::args())); }
pub fn uumain(args: Vec<String>) -> int {
let options = [
optflag("s", "silent", "print nothing, only return an exit status")
];
let silent = match getopts(args.tail(), options) {
Ok(m) => {
m.opt_present("s")
},
Err(f) => {
println!("{}", f);
usage();
return 2;
}
};
let tty = unsafe { str::raw::from_c_str(ttyname(libc::STDIN_FILENO)) };
if !silent {
if !tty.as_slice().is_whitespace() {
println(tty.as_slice());
} else {
println!("not a tty");
}
}
let exit_code = unsafe {
if isatty(libc::STDIN_FILENO) == 1 {
libc::EXIT_SUCCESS
} else {
libc::EXIT_FAILURE
}
};
exit_code as int
}
fn usage () {
safe_writeln!(&mut stderr() as &mut Writer, "usage: tty [-s]");
}
| rust |
The global BPO market is expected to touch $13.7 billion by 2007 from its present size of $1.8 billion. Even by 2004, the market is expected to grow up to $6.4 billion. However, this seven-fold increase in market size in the next five years does not necessarily mean good news for the Indian service providers. Gartner analyst Debashish Sinha warned that India might totally miss out on this $13.7 billion pie unless the Indian players do not undergo a radical change in their business model.
Sinha’s prescription: Indian service providers should prioritize process and domain expertise over operational expertise. “Currently, most of the Indian service providers are primarily concentrating on running the contact centers. Though this is important, in the long run they would need to focus more on domain/process skills to compete on a global outsourcing market,” he said.
Speaking at the Gartner Annual Summit 2003 in Mumbai, Sinha also debunked the long perpetrated myths about advantages India offers. Employee loyalty, perceived to be an advantage two years back, just does not exist today with industry attrition rates reaching up to 40 percent. Even the cost and wage arbitrage are becoming less of an issue with Indian players charging around $six-$16 per hour as against $29-$35 in the US. Just like India, even Philippines, Jamaica, Ireland and Canada are today having access to a large labor pool.
According to Gartner, Convergys CMG was the top contact center vendor in 2002 with revenue of $1.39 billion, followed by EDS with $1.1 billion and Teletech with $1.01 billion. In comparison, Wipro Spectramind and Daksh were the biggest Indian offshore contact centers with revenues of $39 million and $33 million, respectively. This, feels Sinha, makes it obvious that Indian players have a lot of catching up to do. He also predicted that Indian vendors with inherent IT skills have a better scope than pure-play BPO players to succeed in the Long run. This would be good news for Spectramind (Wipro), Progeon (Infosys), Msource (MphasiS) and E-serve (HCL). WNS and AFS in the airlines domain were also specifically pointed out as two potentially growth companies.
With US already suffering 6.4 percent job loss owing to outsourcing and the number on the rise, Indian vendors, advised Sinha, should now also brace themselves up for the consequent backlash.
| english |
<reponame>manoj755/Manoj-Singh-Bisht
import { Component, OnInit } from '@angular/core';
import { DBService } from 'app/db.service';
declare var $: any;
@Component({
selector: 'app-add-candidate',
templateUrl: './add-candidate.component.html',
styleUrls: ['./add-candidate.component.scss']
})
export class AddCandidateComponent implements OnInit {
store = { candidateName: '', gender: '', mobileNo: '', email: '' };
updateid: any;
countries = [];
genders = [];
constructor(public db: DBService) { }
ngOnInit() {
this.LoadDropDown();
}
candidatesave = function () {
debugger;
this.db.store('candidatedetail/', this.store, ((response): void => {
debugger;
this.updateid = response.id;
$('#addcandidate').modal('hide');
this.loadInternalData()
this.db.addmessageandremove('Candidate added successfully.');
}));
}
LoadDropDown(): void {
this.db.list('master/country', {
'gi': 'rolecreating'
}, ((response): void => {
this.countries = response;
}));
this.db.list('master/gender', {
'gi': 'rolecreating'
}, ((response): void => {
this.genders = response;
}));
}
}
| typescript |
<filename>cloudformation/solution-assistant/src/lambda_function.py
import boto3
from pathlib import Path
import sys
sys.path.append('./site-packages')
from crhelper import CfnResource
import datasets
helper = CfnResource()
@helper.update
@helper.create
def on_create(event, _):
folderpath = Path("/tmp")
solutions_s3_bucket = event["ResourceProperties"]["SolutionsS3BucketName"]
solutions_s3_object = (
"Explaining-credit-decisions/dataset/german.data" # noqa
)
filepaths = datasets.generate_datasets(
solutions_s3_bucket, solutions_s3_object, folderpath
)
s3_client = boto3.client("s3")
s3_bucket = event["ResourceProperties"]["S3BucketName"]
for filepath in filepaths:
object_name = filepath.relative_to(folderpath)
object_name = str(Path("datasets", object_name))
s3_client.upload_file(str(filepath), s3_bucket, object_name)
def on_update(_, __):
pass
def delete_sagemaker_endpoint(endpoint_name):
sagemaker_client = boto3.client("sagemaker")
try:
sagemaker_client.delete_endpoint(EndpointName=endpoint_name)
print(
"Successfully deleted endpoint "
"called '{}'.".format(endpoint_name)
)
except sagemaker_client.exceptions.ClientError as e:
if "Could not find endpoint" in str(e):
print(
"Could not find endpoint called '{}'. "
"Skipping delete.".format(endpoint_name)
)
else:
raise e
def delete_sagemaker_endpoint_config(endpoint_config_name):
sagemaker_client = boto3.client("sagemaker")
try:
sagemaker_client.delete_endpoint_config(
EndpointConfigName=endpoint_config_name
)
print(
"Successfully deleted endpoint configuration "
"called '{}'.".format(endpoint_config_name)
)
except sagemaker_client.exceptions.ClientError as e:
if "Could not find endpoint configuration" in str(e):
print(
"Could not find endpoint configuration called '{}'. "
"Skipping delete.".format(endpoint_config_name)
)
else:
raise e
def delete_sagemaker_model(model_name):
sagemaker_client = boto3.client("sagemaker")
try:
sagemaker_client.delete_model(ModelName=model_name)
print("Successfully deleted model called '{}'.".format(model_name))
except sagemaker_client.exceptions.ClientError as e:
if "Could not find model" in str(e):
print(
"Could not find model called '{}'. "
"Skipping delete.".format(model_name)
)
else:
raise e
def delete_s3_objects(bucket_name):
s3_resource = boto3.resource("s3")
try:
s3_resource.Bucket(bucket_name).objects.all().delete()
print(
"Successfully deleted objects in bucket "
"called '{}'.".format(bucket_name)
)
except s3_resource.meta.client.exceptions.NoSuchBucket:
print(
"Could not find bucket called '{}'. "
"Skipping delete.".format(bucket_name)
)
def delete_ecr_images(repository_name):
ecr_client = boto3.client("ecr")
try:
images = ecr_client.describe_images(repositoryName=repository_name)
image_details = images["imageDetails"]
if len(image_details) > 0:
image_ids = [
{"imageDigest": i["imageDigest"]} for i in image_details
]
ecr_client.batch_delete_image(
repositoryName=repository_name, imageIds=image_ids
)
print(
"Successfully deleted {} images from repository "
"called '{}'. ".format(len(image_details), repository_name)
)
else:
print(
"Could not find any images in repository "
"called '{}' not found. "
"Skipping delete.".format(repository_name)
)
except ecr_client.exceptions.RepositoryNotFoundException:
print(
"Could not find repository called '{}' not found. "
"Skipping delete.".format(repository_name)
)
@helper.delete
def on_delete(event, __):
# remove sagemaker endpoint
resource_name = event["ResourceProperties"]["SolutionPrefix"]
endpoint_names = [
"{}-explainer".format(resource_name),
"{}-predictor".format(resource_name)
]
for endpoint_name in endpoint_names:
delete_sagemaker_model(endpoint_name)
delete_sagemaker_endpoint_config(endpoint_name)
delete_sagemaker_endpoint(endpoint_name)
# remove sagemaker endpoint config
# remove files in s3
s3_bucket = event["ResourceProperties"]["S3BucketName"]
delete_s3_objects(s3_bucket)
# delete images in ecr repository
ecr_repository = event["ResourceProperties"]["ECRRepository"]
delete_ecr_images(ecr_repository)
def handler(event, context):
helper(event, context)
| python |
<reponame>sophiekoonin/website<gh_stars>1-10
---
title: Hem curve
path: /en/docs/patterns/simon/options/hemcurve
pattern: simon
option: hemCurve
---
How much do you want the hem to curve upwards?
> - This applies only to the baseball and slashed hem styles. If you chose a straight hem, this will be ignored.
> - This value can never be more than the length bonus. If it is, it will silently be set to the length bonus value.
> - If you set this to zero, you'll get a straight hem regardless of what hem style you pick.
| markdown |
// Copyright 2021 Matrix Origin
//
// 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, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package updates
import (
"bytes"
"encoding/binary"
"io"
"github.com/matrixorigin/matrixone/pkg/vm/engine/tae/common"
"github.com/matrixorigin/matrixone/pkg/vm/engine/tae/iface/txnif"
"github.com/matrixorigin/matrixone/pkg/vm/engine/tae/txn/txnbase"
)
func init() {
txnif.RegisterCmdFactory(txnbase.CmdDelete, func(int16) txnif.TxnCmd {
return NewEmptyCmd(txnbase.CmdDelete)
})
txnif.RegisterCmdFactory(txnbase.CmdUpdate, func(int16) txnif.TxnCmd {
return NewEmptyCmd(txnbase.CmdUpdate)
})
txnif.RegisterCmdFactory(txnbase.CmdAppend, func(int16) txnif.TxnCmd {
return NewEmptyCmd(txnbase.CmdAppend)
})
}
type UpdateCmd struct {
*txnbase.BaseCustomizedCmd
dbid uint64
dest *common.ID
update *ColumnNode
delete *DeleteNode
append *AppendNode
cmdType int16
}
func NewEmptyCmd(cmdType int16) *UpdateCmd {
cmd := &UpdateCmd{}
cmd.BaseCustomizedCmd = txnbase.NewBaseCustomizedCmd(0, cmd)
cmd.cmdType = cmdType
if cmdType == txnbase.CmdUpdate {
cmd.update = NewColumnNode(nil, nil, nil)
} else if cmdType == txnbase.CmdDelete {
cmd.delete = NewDeleteNode(nil)
} else if cmdType == txnbase.CmdAppend {
cmd.append = NewAppendNode(nil, 0, nil)
}
return cmd
}
func NewAppendCmd(id uint32, app *AppendNode) *UpdateCmd {
impl := &UpdateCmd{
append: app,
cmdType: txnbase.CmdAppend,
dest: app.controller.meta.AsCommonID(),
dbid: app.controller.meta.GetSegment().GetTable().GetDB().ID,
}
impl.BaseCustomizedCmd = txnbase.NewBaseCustomizedCmd(id, impl)
return impl
}
func NewDeleteCmd(id uint32, del *DeleteNode) *UpdateCmd {
impl := &UpdateCmd{
delete: del,
cmdType: txnbase.CmdDelete,
dest: del.chain.controller.meta.AsCommonID(),
dbid: del.chain.controller.meta.GetSegment().GetTable().GetDB().ID,
}
impl.BaseCustomizedCmd = txnbase.NewBaseCustomizedCmd(id, impl)
return impl
}
func NewUpdateCmd(id uint32, update *ColumnNode) *UpdateCmd {
impl := &UpdateCmd{
update: update,
cmdType: txnbase.CmdUpdate,
dest: update.chain.controller.meta.AsCommonID(),
dbid: update.chain.controller.meta.GetSegment().GetTable().GetDB().ID,
}
impl.BaseCustomizedCmd = txnbase.NewBaseCustomizedCmd(id, impl)
return impl
}
func (c *UpdateCmd) GetUpdateNode() *ColumnNode {
return c.update
}
func (c *UpdateCmd) GetAppendNode() *AppendNode {
return c.append
}
func (c *UpdateCmd) GetDeleteNode() *DeleteNode {
return c.delete
}
func (c *UpdateCmd) GetDBID() uint64 {
return c.dbid
}
func (c *UpdateCmd) GetDest() *common.ID {
return c.dest
}
// TODO
func (c *UpdateCmd) String() string {
return ""
}
func (c *UpdateCmd) GetType() int16 { return c.cmdType }
func (c *UpdateCmd) WriteTo(w io.Writer) (n int64, err error) {
var sn int64
if err = binary.Write(w, binary.BigEndian, c.GetType()); err != nil {
return
}
if err = binary.Write(w, binary.BigEndian, c.ID); err != nil {
return
}
if err = binary.Write(w, binary.BigEndian, c.dbid); err != nil {
return
}
if err = binary.Write(w, binary.BigEndian, c.dest.TableID); err != nil {
return
}
if err = binary.Write(w, binary.BigEndian, c.dest.SegmentID); err != nil {
return
}
if err = binary.Write(w, binary.BigEndian, c.dest.BlockID); err != nil {
return
}
switch c.GetType() {
case txnbase.CmdUpdate:
sn, err = c.update.WriteTo(w)
case txnbase.CmdDelete:
sn, err = c.delete.WriteTo(w)
case txnbase.CmdAppend:
sn, err = c.append.WriteTo(w)
}
n += sn + 2 + 4
return
}
func (c *UpdateCmd) ReadFrom(r io.Reader) (n int64, err error) {
if err = binary.Read(r, binary.BigEndian, &c.ID); err != nil {
return
}
if err = binary.Read(r, binary.BigEndian, &c.dbid); err != nil {
return
}
c.dest = &common.ID{}
if err = binary.Read(r, binary.BigEndian, &c.dest.TableID); err != nil {
return
}
if err = binary.Read(r, binary.BigEndian, &c.dest.SegmentID); err != nil {
return
}
if err = binary.Read(r, binary.BigEndian, &c.dest.BlockID); err != nil {
return
}
switch c.GetType() {
case txnbase.CmdUpdate:
n, err = c.update.ReadFrom(r)
case txnbase.CmdDelete:
n, err = c.delete.ReadFrom(r)
case txnbase.CmdAppend:
n, err = c.append.ReadFrom(r)
}
n += 4
return
}
func (c *UpdateCmd) Marshal() (buf []byte, err error) {
var bbuf bytes.Buffer
if _, err = c.WriteTo(&bbuf); err != nil {
return
}
buf = bbuf.Bytes()
return
}
func (c *UpdateCmd) Unmarshal(buf []byte) error {
bbuf := bytes.NewBuffer(buf)
_, err := c.ReadFrom(bbuf)
return err
}
| go |
@charset "utf-8";
body{background-color: #000;}
.photo_area{ position:fixed; left:0; top: 50%; margin-top: -185px; width: 100%; height: 370px; background-color: #363634;}
.photo_wide{margin-top: -100px; height: 210px;}
.photo_show{ position:absolute;}
.photo_show li{float: left; padding: 15px 10px; border-right: 2px solid #41413f;}
.ps_1, .ps_2{overflow: hidden; display: -webkit-box; /*width: 530px;*/}
.ps_1{margin-bottom: 10px;}
.ps_1 div, .ps_2 div{overflow: hidden; margin-left: 10px;}
.ps_1 div:first-child, .ps_2 div:first-child{margin-left: 0;}
.ps_1 img{display: block;}
.ps_1_0{ min-width: 150px; -webkit-box-flex:1; height: 150px; color: #fff; text-align: center; text-shadow: 0 1px 1px rgba(0,0,0,0.6);}
.ps_1_0 h3{font:24px \5FAE\8F6F\96C5\9ED1; padding-top: 45px; }
.ps_1_1{-webkit-box-flex:1;}
.ps_1_2{-webkit-box-flex:1;}
.ps_2_0{ height: 140px; font-size: 13px; padding: 5px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.3);}
.ps_2_0 h3{font:24px \5FAE\8F6F\96C5\9ED1; padding-top: 45px; }
.ps_2_1{-webkit-box-flex:1;}
.ps_2_2{-webkit-box-flex:1;}
.ps_2_3{-webkit-box-flex:1;}
.photo_wide .ps_1{margin-right: 10px;}
.photo_wide .ps_1, .photo_wide .ps_2{float: left;}
/*
.loading{position: relative; background-color: #202020;}
.loading::before{
position: absolute;
left: 0;
top: 0;
background-color: #202020;
content: "loading...";
display: block;
width: 100%;
height: 100%;
color: #323232;
text-align: center;
font-size: 13px;
font-weight: 700;
padding-top: 65px;
}
*/
/* color */
.color_1 .ps_1_0, .color_1 .ps_2_0{ background-color: #00b6ee; word-break:break-all; word-wrap:normal; white-space: normal;}
.color_2 .ps_1_0, .color_2 .ps_2_0{ background-color: #aadc3b; word-break:break-all; word-wrap:normal; white-space: normal;}
.color_3 .ps_1_0, .color_3 .ps_2_0{ background-color: #eea200; word-break:break-all; word-wrap:normal; white-space: normal;}
.color_4 .ps_1_0, .color_4 .ps_2_0{ background-color: #fb641c; word-break:break-all; word-wrap:normal; white-space: normal;}
.color_5 .ps_1_0, .color_5 .ps_2_0{ background-color: #c93127; word-break:break-all; word-wrap:normal; white-space: normal;}
.color_6 .ps_1_0, .color_6 .ps_2_0{ background-color: #695d8f; word-break:break-all; word-wrap:normal; white-space: normal;}
.color_7 .ps_1_0, .color_7 .ps_2_0{ background-color: #8c5e7a; word-break:break-all; word-wrap:normal; white-space: normal;}
.color_8 .ps_1_0, .color_8 .ps_2_0{ background-color: #579aaa; word-break:break-all; word-wrap:normal; white-space: normal;}
.color_9 .ps_1_0, .color_9 .ps_2_0{ background-color: #1d7e5b; word-break:break-all; word-wrap:normal; white-space: normal;}
.nav_photo{/*position: fixed; left: 0; bottom: 0; */ position:absolute; bottom: 0; left: 0; z-index: 200; display: -webkit-box; background-color: #212121; width: 100%; height: 30px; line-height: 30px;}
.nav_photo li{-webkit-box-flex:1;}
.nav_photo li a{ position: relative; display: block; text-align: center; color: #666; text-shadow: 0 1px 1px rgba(0,0,0,0.5);}
.nav_photo li a.current{color: #fff;}
.nav_photo li a.current::before{
position:absolute;
content:"";
width:0;
height:0;
overflow:hidden;
border-width:10px;
border-style:solid;
border-color:transparent transparent #212121;
left:40%;
top:-20px;
}
| css |
<gh_stars>10-100
{
"name": "npm-artifactory",
"version": "0.6.4",
"description": "A proxy server that uses Artifactory to store npm modules for seamless integration with java/maven-based workflows",
"keywords": [
"npm",
"artifactory",
"maven",
"module",
"java",
"proxy"
],
"author": "<NAME> <<EMAIL>>",
"repository": {
"type": "git",
"url": "https://github.com/AceMetrix/npm-artifactory.git"
},
"scripts": {
"test": "./node_modules/.bin/mocha test --timeout 0"
},
"dependencies": {
"express": "~3.4.0",
"request": "~2.27.0"
},
"devDependencies": {
"mocha": "~1.12.0",
"chai": "~1.7.2",
"npm": "~1.3.7"
}
}
| json |
Do you ever end the day, or the year, asking yourself, “What was all that for? What did I really accomplish? What difference did I truly make?” If so, commit to making this year a year of purpose. When you know your purpose, you stop chasing things that will never satisfy you. Instead, you find the joy of pursuing the next steps God has for you.
Your vision keeps your hopes alive; it’s your dream of a better tomorrow. Your purpose gives you strength to move forward even when times are tough. Purpose stabilizes your life. With a clear purpose, you persevere because you know there’s a reason, a cause.
What if you could close out the day, the month, and the year knowing you’re fulfilling your true purpose and calling in life? Imagine being certain beyond doubt that your efforts weren’t wasted because they were God-conceived, God-directed, and God-honoring.
Jesus knew His purpose in life, and He was compelled to fulfill it. You also can have this sense of certainty to move you toward your goal. You can do what Jesus did, and you can live the rest of your life with no regrets.
How do you discover your “why”? Your journey begins by committing your life to God.
You can’t find your purpose in life by focusing on yourself and leaving God out of the picture. Life isn’t about using God for your purposes. It’s about God using you for His purposes. It’s about the Lord Jesus showing you how you fit into His plan. And you do fit in! He has a lifetime of purpose stored up for you.
Oh, you will! It’s what you were made for. If you don’t embrace God’s plan, you’ll miss the purpose for which He created you. When you follow God’s plan for your life, you will be walking in the divine wattage of God’s light. There’s no other source of ultimate purpose. All other pursuits lead to darkness and futility.
Are you still afraid to present yourself totally to God? Do you still think He’ll mess up your life by telling you to do something you don’t want to do—or to go somewhere you don’t want to go?
I can tell you by my own testimony that everything I ever dreamed of doing in my life I found in God’s purpose for me. I cannot imagine doing anything else than what I’ve done as He has led me. So many of my dreams have come true, plus quite a few dreams I didn’t even know I had.
The first step toward pursuing your God-given purpose is to present yourself totally to God. He loves you. He wants the best for you. You can trust Him to guide you as you move forward into a new year full of purpose.
1. Can you perceive what God’s purpose has been for your life in the past year? Spend some time in prayer and reflection, thanking God for what He has done.
2. Do you have any worries or misgivings about God’s purpose for your life? What are they? How might you be encouraged forward by the knowledge that God knows you fully, and his purposes for you are good?
3. Do you feel you know God’s purpose and plan for your life? If not, don’t worry—you only need to ask Him. How do you plan to pursue God’s purposes and keep them at the center of your days in this new year?
| english |
Blizzard announced the Diablo Immortal mobile game during its annual Blizzcon event. The game is an MMOARP and is pre-registrations are currently open.
Blizzard has announced that it will be launching a new mobile game under its Diablo series. Called Diablo Immortal, the game was announced at the company’s annual convention, Blizzcon. The game will be available on iOS and Android and is currently up for pre-registration. However, the developer has not yet releaved when the game will be available for download.
The game will be a MMOARPG (Massively Multiplayer Online Action Role Playing Game) and as such, players can expect to meet other players during their gameplay. They can then team up and explore together if they want.
Diablo Immortal will allow players the option to choose between six classes. These include the Barbarian, Monk, Wizard, Crusader, Demon Hunter, and Necromancer. Each class has a set of 12 or more skills. While the exact number of skills varies depending on class, players will be able to choose 5 skills that they can assign to an active skill button.
It seems like the smartphone market is the next bit place for game developers to fight it out. Big names like PUBG and Fortnite have already made their way to the mobile space and have become quite popular to say the least. Other major game developers are also planning to launch games on the smartphone. Bethesda is planning to launch a mobile version of its Elder Scrolls games called Elder Scrolls: Blades. EA plans to launch a version of its Command & Conquer series called Command & Conquer: Rivals.
| english |
<filename>discussion/8665/how-to-get-last-insert-id-with-phalcon.html
---
layout: default
title: 'How to get last insert id with Phalcon ? - Discussion'
---
<div class="container">
{% include warning.html %}
<div itemscope itemtype="https://schema.org/Question"><ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/category/1/mvc">MVC</a></li>
</ol>
<div class="row table-title">
<div class="col-lg-8 col-md-7 col-sm-6 col-xs-12 wrapper-author">
<h1 class="" itemprop="name">How to get last insert id with Phalcon ?</h1>
<div class="visible-xs-block mobile-author">
<span itemprop="author" itemscope itemtype="https://schema.org/Person"><a href="/user/4775/pheromix" class="user-moderator-N"><span itemprop="name">pheromix</span></a></span>
<time itemprop="dateCreated" datetime="2015-09-23T06:46:24-07:00">Sep '15</time>
</div>
</div>
<div class="col-lg-4 col-md-5 col-sm-6 hidden-xs text-right wrapper-stats">
<table class="table-stats" width="100%">
<tr style="vertical-align: top;">
<td>
<label>Created</label><br>
<time itemprop="dateCreated" datetime="2015-09-23T06:46:24-07:00">Sep '15</time>
</td>
<td>
<label>Last Reply</label><br>Oct '18</td>
<td>
<label>Replies</label><br>
<span itemprop="answerCount">3</span>
</td>
<td>
<label>Views</label><br>2196</td>
<td>
<label>Votes</label><br>
<span itemprop="upvoteCount">0</span>
</td>
</tr>
</table>
</div>
</div>
<div class="discussion">
<div class="row reply-block">
<div class="col-md-1 col-sm-1 hidden-xs text-center">
<img src="https://secure.gravatar.com/avatar/1d388ddecdb9cc9d6ba82af4f64dc6f8?s=48&r=pg&d=identicon" class="img-rounded avatar" /><br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person" class="avatar-name"><a href="/user/4775/pheromix" class="user-moderator-N"><span itemprop="name">pheromix</span></a></span>
<span class="karma">7.2k</span>
</div>
<div class="col-md-11 col-sm-11 col-xs-12 post-body"><div class="posts-date hidden-xs" align="right">
<a name="C8665" href="#C8665">
<time class="action-date">Sep '15</time>
</a>
</div>
<div class="post-content"><div><p>I tried using <code>LAST_INSERT_ID()</code> when getting the last id of the autoincrement primary key column but I get EOF exception :</p>
<pre><code> function add($tab) {
$champs= "";
$value = "";
$separateur ="";
$tab["commande_date"] = convertDateFormat5($tab["commande_date"]);
foreach ($tab as $k => $v){
if ($k == "salle_code" || $k == "table_code")
continue;
$champs .= $separateur . $k;
$value .= $separateur . "'" . $v . "'";
$separateur = ",";
}
$champs = '('.$champs.')';
$value = '('.$value.')';
$sSQL = "
INSERT INTO Commande $champs
VALUES $value
";
$query = new Query($sSQL,$this->getDI());
$ret = $query->execute();
$sSQL = "SELECT LAST_INSERT_ID() as last_id";
$queryId = new Query($sSQL,$this->getDI());
return $queryId->execute();
}</code></pre>
<p>So how to get the last id with <code>Phalcon</code> ?</p></div> </div>
<div class="posts-buttons text-right"><a href="#" class="btn btn-danger btn-xs" data-cf-modified-896b003e35041e01f3d1f451-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs" data-cf-modified-896b003e35041e01f3d1f451-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div><div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/2e0bae293948bec8ffec40de279cbe41?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/210/andresgutierrez" class="user-moderator-Y"><span itemprop="name"><NAME></span></a> </span>
<br>
<span class="karma">34.6k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C23689" href="#C23689">
<time itemprop="dateCreated" datetime="2015-09-23T07:13:22-07:00" class="action-date">Sep '15</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>First of all, this code is too insecure, you may want to update it to use bound parameters: <a href="https://docs.phalcon.io/en/latest/reference/db.html#binding-parameters">https://docs.phalcon.io/en/latest/reference/db.html#binding-parameters</a>.</p>
<p>Following the kind of programming you're using, you can better use the db component instead of PHQL: <a href="https://docs.phalcon.io/en/latest/reference/db.html#inserting-updating-deleting-rows">https://docs.phalcon.io/en/latest/reference/db.html#inserting-updating-deleting-rows</a></p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="23689" data-cf-modified-896b003e35041e01f3d1f451-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="23689" data-cf-modified-896b003e35041e01f3d1f451-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/f793ea772bf3cf7a54252f9c2aa38f75?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/4903/tmucci-cxp" class="user-moderator-N"><span itemprop="name"><NAME></span></a> </span>
<br>
<span class="karma">99</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C23749" href="#C23749">
<time itemprop="dateCreated" datetime="2015-09-24T11:25:07-07:00" class="action-date">Sep '15</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>Personally, I would recommend using the ORM and using the save() method.</p>
<p>For example:</p>
<pre><code class="language-php"><?php
//Create a new instance of the model
$newModel = new ModelNameHere();
//Set The Data
$newModel->model_column_name_here = "Value1";
$newModel->model_column2_name_here = "Value2";
//And So Forth for all the columns you want to save data to.
//Save the Data to the database
$newModel->save();
?></code></pre>
<p>Now when you want the id of the last id you just saved, simply call this:</p>
<pre><code class="language-php"><?php
//Sets last id to the variable $the_last_id
$the_last_id = $newModel->id;
?></code></pre>
<p>The ORM, will know what the id is of your last save. You'll have to rewrite your code, however, this allows you to jump databases (MySQL,PostgreSQL, etc) and not have to change your code.</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="23749" data-cf-modified-896b003e35041e01f3d1f451-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="23749" data-cf-modified-896b003e35041e01f3d1f451-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/4bc65714cf15cef3ae49eaa93ac1333e?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/11705/franco1310" class="user-moderator-N"><span itemprop="name"><NAME></span></a> </span>
<br>
<span class="karma">67</span></div>
<div class="col-md-11"><div class="in-reply-to">
<a href="#C23749"><span class="glyphicon glyphicon-chevron-up"></span> in reply to
<img src="https://secure.gravatar.com/avatar/f793ea772bf3cf7a54252f9c2aa38f75?s=48&r=pg&d=identicon" class="img-rounded" width="24" height="24" /> Tony Mucci </a>
</div><div class="posts-buttons" align="right"><a name="C57581" href="#C57581">
<time itemprop="dateCreated" datetime="2018-10-15T12:43:15-07:00" class="action-date">Oct '18</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>Estoy usando phalcon 3.4.0 y no me funciona eso, que puede ser??</p>
<blockquote>
<p>Personally, I would recommend using the ORM and using the save() method.</p>
<p>For example:</p>
<pre><code class="language-php"><?php
//Create a new instance of the model
$newModel = new ModelNameHere();
//Set The Data
$newModel->model_column_name_here = "Value1";
$newModel->model_column2_name_here = "Value2";
//And So Forth for all the columns you want to save data to.
//Save the Data to the database
$newModel->save();
?></code></pre>
<p>Now when you want the id of the last id you just saved, simply call this:</p>
<pre><code class="language-php"><?php
//Sets last id to the variable $the_last_id
$the_last_id = $newModel->id;
?></code></pre>
<p>The ORM, will know what the id is of your last save. You'll have to rewrite your code, however, this allows you to jump databases (MySQL,PostgreSQL, etc) and not have to change your code.</p>
</blockquote></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="57581" data-cf-modified-896b003e35041e01f3d1f451-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="57581" data-cf-modified-896b003e35041e01f3d1f451-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div class="row"><div class="col-md-1 small" align="center"></div>
<div class="col-md-11 login-comment">
</div></div>
</div><input type="hidden" id="post-id" name="post-id" value="8665" /><div id="suggested-posts"></div>
<div id="sticky-progress" style='display:none'></div>
</div>
</div> | html |
<gh_stars>0
[{"footer-area-1":["text-2"],"footer-area-2":["text-3"],"footer-area-3":["text-4"]},{"text":{"2":{"title":"","text":"<p style=\"margin-right: 5%;\">Praesent odio nec mauris sit amet, consectetuer congue ac, ultricies <a href=\"#\">urna eget<\/a> nibh rutrum vel, nisl. Nam eget dolor sit amet, consectetuer adipiscing elit.<\/p>","filter":false},"3":{"title":"","text":"<p style=\"margin-right: 30%;\">Donec faucibus vestibulum. Cras rhoncus et, justo. Praesent wisi diam lorem, iaculis et, scelerisque viverra.<\/p>","filter":false},"4":{"title":"","text":"<div style=\"text-align: right;\">\r\n[image src=\"http:\/\/themes.muffingroup.com\/be\/creative2\/wp-content\/uploads\/2017\/01\/home_creative2_footer_pic.png\" border=\"0\"]\r\n<\/div>","filter":false},"_multiwidget":1}}] | json |
The third day of the division 2 clash between Gloucestershire and Worcestershire was called off due to persistent rain, on Tuesday (July 11). Barely about one hour of play was possible, with Gloucestershire progressing to 62 for 1, ahead by 145 runs.
The hosts, who started the day at 20 for no loss, lost the wicket of Cameron Bancroft for 22. However, William Tavare (23 not out) and Chris Dent (11) made steady progress before the heavens opened up. Due to incessant rain, played was abandoned at 3.20pm local time. With just one day left, the match looks set to end in a stalemate.
| english |
{
"art": {
"title": "Art",
"description": "I Have been making art pieces since around 13 years old, my mom first got me into it and I have been hooked since, you can see one of my pieces on display here",
"image": "art.jpg",
"media": "Star Wars"
},
"vintage-clothes": {
"title": "Vintage Clothes/Fashtion",
"description": "I have been collecting vintage gear for the past 5 years and are always building on my collection of pieces",
"image": "clothes.jpg",
"media": "Clothes"
},
"hockey-sports": {
"title": "Hockey/Sports",
"description": "I have been a hockey fan all my life, my favourite team is the Buffalo Sabres! I don't only watch hockey, I'm a big baseball fan and have started to watch more NFL games and F1 races",
"image": "hockey.jpg",
"media": "Buffalo Sabres"
}
} | json |
{"bookHeader":"","bookName":"JOEL 3","bookContent":[{"id":0,"tipo":"calling","texto":"Os juízos de Deus sobre as nações inimigas"},{"id":1,"tipo":"versiculo","texto":"Eis que, naqueles dias e naquele tempo, em que mudarei a sorte de Judá e de Jerusalém,"},{"id":2,"tipo":"versiculo","texto":"congregarei todas as nações e as farei descer ao vale de Josafá; e ali entrarei em juízo contra elas por causa do meu povo e da minha herança, Israel, a quem elas espalharam por entre os povos, repartindo a minha terra entre si."},{"id":3,"tipo":"versiculo","texto":"Lançaram sortes sobre o meu povo, e deram meninos por meretrizes, e venderam meninas por vinho, que beberam."},{"id":4,"tipo":"versiculo","texto":"Que tendes vós comigo, Tiro, e Sidom, e todas as regiões da Filístia? É isso vingança que quereis contra mim? Se assim me quereis vingar, farei, sem demora, cair sobre a vossa cabeça a vossa vingança."},{"id":5,"tipo":"versiculo","texto":"Visto que levastes a minha prata e o meu ouro, e as minhas jóias preciosas metestes nos vossos templos,"},{"id":6,"tipo":"versiculo","texto":"e vendestes os filhos de Judá e os filhos de Jerusalém aos filhos dos gregos, para os apartar para longe dos seus limites,"},{"id":7,"tipo":"versiculo","texto":"eis que eu os suscitarei do lugar para onde os vendestes e farei cair a vossa vingança sobre a vossa própria cabeça."},{"id":8,"tipo":"versiculo","texto":"Venderei vossos filhos e vossas filhas aos filhos de Judá, e estes, aos sabeus, a uma nação remota, porque o SENHOR o disse."},{"id":9,"tipo":"versiculo","texto":"Proclamai isto entre as nações: Apregoai guerra santa e suscitai os valentes; cheguem-se, subam todos os homens de guerra."},{"id":10,"tipo":"versiculo","texto":"Forjai espadas das vossas relhas de arado e lanças, das vossas podadeiras; diga o fraco: Eu sou forte."},{"id":11,"tipo":"versiculo","texto":"Apressai-vos, e vinde, todos os povos em redor, e congregai-vos; para ali, ó SENHOR, faze descer os teus valentes."},{"id":12,"tipo":"versiculo","texto":"Levantem-se as nações e sigam para o vale de Josafá; porque ali me assentarei para julgar todas as nações em redor."},{"id":13,"tipo":"versiculo","texto":"Lançai a foice, porque está madura a seara; vinde, pisai, porque o lagar está cheio, os seus compartimentos transbordam, porquanto a sua malícia é grande."},{"id":14,"tipo":"versiculo","texto":"Multidões, multidões no vale da Decisão! Porque o Dia do SENHOR está perto, no vale da Decisão."},{"id":15,"tipo":"versiculo","texto":"O sol e a lua se escurecem, e as estrelas retiram o seu resplendor."},{"id":16,"tipo":"versiculo","texto":"O SENHOR brama de Sião e se fará ouvir de Jerusalém, e os céus e a terra tremerão; mas o SENHOR será o refúgio do seu povo e a fortaleza dos filhos de Israel."},{"id":17,"tipo":"versiculo","texto":"Sabereis, assim, que eu sou o SENHOR, vosso Deus, que habito em Sião, meu santo monte; e Jerusalém será santa; estranhos não passarão mais por ela."},{"id":17,"tipo":"calling","texto":"A restauração de Israel"},{"id":18,"tipo":"versiculo","texto":"E há de ser que, naquele dia, os montes destilarão mosto, e os outeiros manarão leite, e todos os rios de Judá estarão cheios de águas; sairá uma fonte da Casa do SENHOR e regará o vale de Sitim."},{"id":19,"tipo":"versiculo","texto":"O Egito se tornará uma desolação, e Edom se fará um deserto abandonado, por causa da violência que fizeram aos filhos de Judá, em cuja terra derramaram sangue inocente."},{"id":20,"tipo":"versiculo","texto":"Judá, porém, será habitada para sempre, e Jerusalém, de geração em geração."},{"id":21,"tipo":"versiculo","texto":"Eu expiarei o sangue dos que não foram expiados, porque o SENHOR habitará em Sião."}]} | json |
The World Economic Forum (WEF) has invited Shri Kamal Nath, Union Minister of Commerce and Industry, to attend the Davos Meeting, which is scheduled to be held on 26-30 January next year. Representatives of the World Economic Forum headed by Ms. Collette Mathur conveyed the invitation to Shri Kamal Nath when they called on him here last evening. Among other things, they apprised the Minister about a meeting of the WEF to be held in New Delhi in December 2004.
Shri Kamal Nath has suggested that a conclave -- “Destination India” – could be co-sponsored by the Ministry of Commmerce and Industry, Confederation of Indian Industries (CII) and the WEF in order to focus on certain specific sectors.
Meanwhile, the Minister is continuing his interactions with the trade and industry on a wide range of issues relating to foreign trade. He will be addressing an Interactive Session with the Federation of Indian Chambers of Commerce & Industry (FICCI) on the forthcoming Exim Policy here on Saturday, 5th June. Later, on the same day, he has convened an Open House on export-related issues with the Export Oriented Units (EOUs) and Special Economic Zones (SEZs), which is being organised by the recently constituted Export Promotion Council for EOUs & SEZs. Earlier, the Minister had intensive interaction with Confederation of Indian Industries (CII) on services and with the Federation of Indian Export Organisations (FIEO) on Exim-related issues besides meetings with other apex chambers like ASSOCHAM and briefing sessions in the Ministry on different subjects, including the WTO and Regional Trade Agreements.
| english |
455T Written Answers
The Deputy Minister of Agriculture (Shri M. V. Krishnappa): (a) Yes, Sir.
(b) Four.
(c) and (d). A provision of Rs. 200 lakhs has been made in the Third Five Year Plan for expansion of the existing stations at Bombay, Cochin, Tuticorin and Visakhapatnam and for setting up four new stations at Veraval, Mangalore, Paradwip and Port BE
Floods in the Country
Shr Warior: Shri Kodiyan:
Shri M. B. Thakore:
] Shri Balakrishnan:
Shri D. C. Sharma: Shri Achar:
Will the Minister of Food and Agriculture be pleased to state:
(a) the details of the food and other crops lost on account of recent floods various States;
(b) whether the Various States have approached Government for any help; and
te) if so, the help rendered?
The Deputy Minister of Agriculture, (Shri M. V. Krishnappa): (a) Information has been asked for from State Governments and will be laid on the Table of the House on receipt
(b) and (c). Only the following States have approached the Government of India for financial assistance:(1) Government of MaharashtraA Ways and Means advance of Rs. 3 crores was asked for and sanctioned.
(2) Government of Kerala-A loan of Rs. 19,50,000 and
grant of similar amount in addition to an ad-hoc grant of Rs. 140.29 lakhs, has been asked for. This request is under consideration,
Written Answers
A request for increasing the annual quota of rice by 20,000 tons i.e. from 2:0 lakhs tons
2.2 lakhs tons was received and accepted.
(3) Government of Mysore- A request for an ad-hoc assistance of Rs. 10 crores has been received. The matter is under consideration.
T.B. in Orissa
2321. Shri Chintamoni Panigrahi: Will the Minister of Health be pleased to state:
(a) whether the allocation to Orissa for anti T.B. work in the Third Five Year Plan have been finalised; and
(b) if so, how much has been allocated to Orissa for this purpose?
The Minister of Health (Shri Karmarkar): (a) and (b). The provision made for anti-T.B. work in the Third Five Year Plan of Orissa State is Rs. 25.00 lakhs.
Maharashtra State and Third Plan
2322. Shri Nagi Reddy: Will the Minister of Irrigation and Power be pleased to state:
(a) whether Government have received any communication from the Maharashtra State Government regarding Third Five Year Plan in view of the fact that the Khadakvasla dam would have to be reconstructed all over again after recent floods: and
b) if so, the details thereof?
The Deputy Minister of Irrigation and Power (Shri Hathi): (a) The reply is in negative.
(b) Does not arise.
2323. Shri Dasaratha Deb: Will the Minister of Food and Agriculture be pleased tto state:
(a) whether the Baskara Chera area. Tripura (starting from the 39
4553 Written Answers BHADRA 2, 1883 (SAKA) Written Answers 4554
mile post to the 47 mile post) has been reserved for plantation;
(b) whether it is a fact that some strikers are victimized only 01. the report of A.S.M.?
(b) whether the plantation works have been started;
(c) if so, how many tribal Jhumia families are likely to be affected by the plantation; and
(d) what steps are being taken to provide alternative occupation to those Jhumia families?
The Deputy Minister of Agriculture (Shri M. V. Krishnappa): (a) Yes.
(b) Yes.
(c) No tribal Jhumia which resident in the area before the reservation was notified, is likely to be affected.
(d) Does not arise.
2824. Shri Dasaratha Deb: Will the Minister of Food and Agriculture be pleased to state:
(a) whether any list of the starving families of Baskara Chera Tripura has been submitted recently to Government; and
(b) if so, what remedy has so far been taken in this matter?
The Deputy Minister of Agriculture Shri M. V. Krishnappa): (a) Yes.
(b) Such families as were found on investigation to be suffering have been given a loan of Rs. 25 each. Jhum harvesting has started and 8 number of fair price shops are in
General Strike on Western Railway
2325. Shri M. B. Thakore: Will the Minister of Railways be pleased to State:
(a) the number of strikers who have not yet been taken to their vaginal jobs and number of strikers who have been dismissed during general strike in July last year. Division-wise on Western Railway; and
The Deputy Minister of Railways (Shri Shahnawaz Khan): (a) (i) Number of strikers not taken back to their original job (but on reduced posts as disciplinary measure) DiviBion-wise on the Western Railway: Headquarter Office Bombay Division Baroda Division
Ratlam Division
Rajkot Division
Ajmer Workshops
Dohad Workshop
(ii) Number of persons dismissed during the general strike Divisionwise on the Western Railway.
Baroda Division-4.
(b) The allegation is not correct.
Incentive Bonus Scheme
2326. Shrimati Ila Palchoudhuri: Will the Minister of Transport and Communications be pleased to state:
(a) whether it is a fact that the Calcutta Port workers are against the introduction of the incentive bonus scheme;
(b) if so, the reasons advanced by the port workers for being against the implementation of the scheme;
(c) whether discussions have recently been held between representatives of the Government of India and Calcutta Port workers in this connection; and
(d) if so, the results achieved?
The Minister of Transport and Communications (Dr. P. Subbarayan): (a) to (d). It is presumed that the reference is to the Incentive Tonnage Scheme prepared by the Calcutta Port Commissioners for their cargo handling labour. Discussions were held in New Delhi in June this year under
| english |
<reponame>agaveplatform/agavepy<filename>docs/_static/schema/SystemOperationRequest.json
{
"$id": "http://agavepy.readthedocs.io/en/latest/SystemOperationRequest.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"action": {
"description": "Action to perform on the system.",
"enum": [
"ENABLE",
"DISABLE",
"PUBLISH",
"UNPUBLISH",
"SETDEFAULT",
"UNSETDEFAULT",
"SETGLOBALDEFAULT",
"UNSETGLOBALDEFAULT",
"CLONE"
],
"type": "string"
},
"id": {
"description": "The new system id of the cloned system",
"type": "string"
}
},
"required": [
"action"
],
"title": "AgavePy SystemOperationRequest schema",
"type": "object"
}
| json |
{
"name": "finfix",
"version": "1.0.0",
"description": "System for making money",
"main": "gulpfile.js",
"devDependencies": {
"gulp": "~3.9.0",
"gulp-less": "~3.0.5",
"gulp.spritesmith": "~6.2.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "<NAME>",
"license": "proprietary"
}
| json |
There’s not too much to say about the Olympus Stylus 770 SW. Well, except for the fact that it can survive 5-foot drops, be taken down 33 feet underwater, withstand 220 pounds of pressure and still operate down to 14 degrees Fahrenheit — hence the block of ice. There’s also a new manometer built in letting you gauge your altitude or depth. It’s otherwise a normal 7.1-megapixel pocket camera with a 3X optical zoom priced at $380.
Oooo, shiny. The 770 SW is available in silver, bronze and blue.
It’s a pretty small camera despite being so rugged.
The 2.5-inch HyperCrystal LCD is of course designed for use outdoors in direct sunlight.
| english |
<filename>rider-editor/src/renderer/mod.rs
pub mod managers;
pub mod renderer;
pub use crate::renderer::managers::*;
pub use crate::renderer::renderer::*;
| rust |
goog.provide('owgis.utilities.mathgeo');
/**
* This method computes the angle between two vectors in spherical
* coordinates with magnitude 1 and the values are in degrees
* @param {type} a
* @param {type} b
* @returns {undefined}
*/
owgis.utilities.mathgeo.anglebetweenspherical = function (a, b){
var A = owgis.utilities.mathgeo.spheretocartdeg( a[0], a[1]);
var B = owgis.utilities.mathgeo.spheretocartdeg( b[0], b[1]);
var anglerad = Math.acos(owgis.utilities.mathgeo.dot(A,B));
var angladeg = owgis.utilities.mathgeo.radtodeg(anglerad);
//console.log("A("+a[0]+","+a[1]+") B("+b[0]+","+b[1]+")");
//console.log("Final angle is: "+ angladeg);
return angladeg;
}
/**
* This function computes the dot product of two vectors of any dimension
* @param {type} a
* @param {type} b
* @returns {Number}
*/
owgis.utilities.mathgeo.dot = function (a, b){
var res = 0;
if(a.length !== b.length){
console.log("The sizes of the vectors is not the same");
return -1;
}
var dim = a.length;
for(var i = 0; i < dim; i++){
res += a[i]*b[i];
}
return res;
}
/**
* This function computes the cross product of two vectors of d = 3
* @param {type} a
* @param {type} b
* @returns {Number}
*/
owgis.utilities.mathgeo.cross = function (a, b){
var res = 0;
if(a.length !== 3 || b.length !== 3){
console.log("The sizes of the vectors is not 3");
return -1;
}
res = [ a[1]*b[2] - a[2]*b[1],
a[2]*b[0] - a[0]*b[2],
a[0]*b[1] - a[1]*b[0] ] ;
return res;
}
/**
* This function transforms sphere coordinates into 3D cartesian coordinates
* Assuming it is in radiansTime
*/
owgis.utilities.mathgeo.spheretocart = function (lon, lat){
var res = [Math.sin(lon)*Math.cos(lat),
Math.sin(lat),
Math.cos(lon)*Math.cos(lat)];
return res;
}
/**
* This function transforms sphere coordinates into 3D cartesian coordinates.
* Assumes the input and output are in degrees.
*/
owgis.utilities.mathgeo.spheretocartdeg = function (lon, lat){
lat = owgis.utilities.mathgeo.degtorad(lat);//Changes lat from deg to radians
lon = owgis.utilities.mathgeo.degtorad(lon);//Changes lon from deg to radians
var res = owgis.utilities.mathgeo.spheretocart(lon,lat);
return res;
}
/**
* This function transforms 3D cartesian coordinates into spherical coordinates
*/
owgis.utilities.mathgeo.carttosphere = function (x,y,z){
var res = [Math.atan(y/x),
Math.atan( Math.sqrt(Math.pow(x,2) + Math.pow(y,2))/z )];
return res;
}
/**
* This function transforms 3D cartesian coordinates into spherical coordinates
* and assumes the input is degrees and the output also
*/
owgis.utilities.mathgeo.carttospheredeg = function (x,y,z){
var lon = Math.atan( Math.sqrt(Math.pow(x,2) + Math.pow(y,2))/z);
var lat = Math.atan(y/x);
return owgis.utilities.mathgeo.radtodeg([lon,lat]);
}
/**
* This function transforms all the values of a vector from radians to degrees
* @param {type} a
* @returns {undefined}
*/
owgis.utilities.mathgeo.radtodeg= function (a){
var res = new Array();
if(a.length){
for(var i = 0; i < a.length; i++){
res[i] = a[i]*(180 / Math.PI);
}
}else{
res = a*(180 / Math.PI);
}
return res;
}
/**
* This function transforms all the values of a vector from degrees to radians
* @param {type} a
* @returns {undefined}
*/
owgis.utilities.mathgeo.degtorad= function (a){
var res = new Array();
if(a.length){
for(var i = 0; i < a.length; i++){
res[i] = Math.PI*a[i]/180 ;
}
}else{
res = Math.PI*a/180;
}
return res;
}
/**
* Flips the vector direction
* @param {type} a
* @returns {undefined}
*/
owgis.utilities.mathgeo.flipVect = function (a){
var res = new Array();
for(var i = 0; i < a.length; i++){
res[i] = -1*a[i];
}
return res;
} | javascript |
{"appid": 390030, "name": "DESYNC", "windows": true, "mac": false, "linux": false, "early_access": false, "lookup_time": 1490985613} | json |
{"name":"button","type":"selector","title":":button Selector","deprecated":null,"removed":null,"desc":"Selects all button elements and elements of type button.","categories":["selectors/form-selectors","selectors/jquery-selector-extensions","version/1.0"],"entries":[{"return":"","signatures":{"added":"1.0"},"examples":{"desc":"Find all button inputs and mark them.","code":"\nvar input = $( \":button\" ).addClass( \"marked\" );\n$( \"div\" ).text( \"For this type jQuery found \" + input.length + \".\" );\n// Prevent the form from submitting\n$( \"form\" ).submit(function( event ) {\n event.preventDefault();\n});\n","css":"\n textarea {\n height: 35px;\n }\n div {\n color: red;\n }\n fieldset {\n margin: 0;\n padding: 0;\n border-width: 0;\n }\n .marked {\n background-color: yellow;\n border: 3px red solid;\n }\n","html":"\n<form>\n <fieldset>\n <input type=\"button\" value=\"Input Button\">\n <input type=\"checkbox\">\n\n <input type=\"file\">\n <input type=\"hidden\">\n <input type=\"image\">\n\n <input type=\"password\">\n <input type=\"radio\">\n <input type=\"reset\">\n\n <input type=\"submit\">\n <input type=\"text\">\n <select>\n <option>Option</option>\n </select>\n\n <textarea></textarea>\n <button>Button</button>\n </fieldset>\n</form>\n\n<div></div>\n"},"longdesc":"\n <p>An equivalent selector to <code>$( \":button\" )</code> using valid CSS is <code>$( \"button, input[type='button']\" )</code>.</p>\n "}],"slug":"button-selector"} | json |
Written AnswUCTS
(b) if so, facts thereof; and
(c) whether power houses have been instructed to keep down the ash pollution in the atmosphere from their chimneys?
THE DEPUTY MINISTER IN THE MINISTRY OF ENERGY (PROF: SIDDHESHWAR PRASAD): (a) and (b). There has been improvement in the quality of coal supplied to power houses in recent months, following the implementation of such measures of collieries to the proper linkage power stations, screening and sizing bonus arrangements, joint sampling, penalty clause agreements, posting of Inspectors at the loading points etc. Thermal power generation in 1975-76 increased by 9 per cent compared to 1974-75.
(c) Yes, Sır.
Reduction in the Prices of Consumer Goods by Manufacturers
2394. SHRI MOHINDER SINGH GILL: Will the Minister of INDUSTRY AND CIVIL SUPPLIES be pleased to state:
(a) whether the manufacturers of many consumer goods have been directed to reduce the prices of their products on account of budgetary concessions on various heads;
(b) if so, the guidelines given to these manufacturers and their reaction thereto; and
(c) whether some time-limit has been granted to the industry in this regard?
THE MINISTER OF STATE IN THE MINISTRY OF INDUSTRY AND CIVIL SUPPLIES (SHRI A. C. GEORGE); (a) to (c). Soon after the presentation of the budget for 1976-77, a meeting of the Advisory Committee on Civil Supplies, which consists of representatives of various Ministries/Departments of the Government, industry, trade and
Written AnswDOTS
consumers, was convened. At this meeting the representatives of manufacturers agreed to reduce immediately the prices of manufactured items benefiting from the Budget proposals. The Packaged Commodities (Regulation) Order, 1975 was amended on March 15, 1976 to give effect to price reductions immediately on all packaged commodities coming under the purview of the Order irrespective of the month in which such commodities were pre-packed.
As a consequence of the budget proposals, the prices of several manufactured items have already been reduced. Some of these items are: toilet soap including janta soap, washing soap, synthetic detergents, metal clad dry cells, aluminium utensils, table fans, some brands of cigarettes, medium sized refrigerators and TVs.
Directives to States on 'Sons of the Soir Theory
2395. SHRI S. R DAMANI Will the Minister of HOME AFFAIRS be pleased to state:
(a) whether some State Governments are following parochial policies in regard to employment and other related matters;
(b) if so, the names of the State where this bias for 'Sons of the Soll theory is more pronounced; and
(c) whether any directives have been issued to State Governments in this behalf and if so, the main features thereof?
THE DEPUTY MINISTER IN THE MINISTRY OF HOME AFFAIRS (SHRI F. H. MOHSIN): (a) and (b). The National Integration Council had recommended in 1968 that in order that adequate employment opportunities are available to local people and they do not suffer from any sense of injustice, where qualified local people are available from amongst the people from the Slate, they should be given a major share of employment and employers
| english |
---
site: freiburg
tags: [devops, downtime]
title: DNS outage affecting UseGalaxy.eu
location: Freiburg, Germany
---
Google's DNS stopped responding to requests for usegalaxy.eu for 35 minutes.
## Incident Timeline
Time | State
--- | ---
12:10 | DNS providers failed to respond to requests for `usegalaxy.eu`
12:19 | We received a user report that usegalaxy.eu was not reachable, nor were any subdomains such as `stats.usegalaxy.eu`. Our testing showed everything working locally in freiburg as most of our computers use BelWü's DNS.
12:24 | Our automated alert finally trigged that DNS was non-responsive for 15 minutes.
12:45 | Systems returned to a functional state on their own.
{: .table.table-striped }
<a href="{{ "/assets/media/2018-04-26-outage.png" | absolute_url }}">
<img src="{{ "/assets/media/2018-04-26-outage.png" | absolute_url }}" alt="DNS providers failing to respond to requests." />
</a>
## Resolution
There was no short-term resolution for this issue. There is no long term plan
for resolution as DNS issues are not easily solvable at our organisation's
size.
We have begun to monitoring more DNS providers (CloudFlare, Quad9) so hopefully
we will be able to direct users to the most reliable one in the future.
## Background
We check several hostnames and several DNS providers as we've experienced
similar issues before, e.g. `registry.npmjs.org` is checked as BelWü failed to
respond to it breaking several automated processes. `google.com` is checked as a simple sanity-test.
| markdown |
package Students_05;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
List<Students> students = new ArrayList<>();
while (!input.equals("end")) {
String [] studentData = input.split(" ");
String firstName = studentData[0];
String lastName = studentData[1];
int age = Integer.parseInt(studentData[2]);
String city = studentData[3];
Students student = new Students(firstName, lastName, age, city);
students.add(student);
input = scanner.nextLine();
}
String filterCity = scanner.nextLine();
for (Students student : students) {
if (student.getHomeTown().equals(filterCity)) {
System.out.printf("%s %s is %d years old%n", student.getFirstName(), student.getLastName(), student.getAge(), student.getHomeTown());
}
}
}
}
| java |
<filename>bawg.css
/* Copyright <NAME> - All rights reserved. */
#home-icon:focus,
#update:focus,
#clear:focus
{
border: solid black 3px;
outline: none;
}
#home-icon:focus:not(:focus-visible),
#update:focus:not(:focus-visible),
#clear:focus:not(:focus-visible)
{
border: none;
}
#home-icon:focus-visible,
#update:focus-visible,
#clear:focus-visible
{
border: solid black 3px;
outline: none;
}
#home-icon {
position: fixed;
box-sizing: border-box;
top: 2px;
left: 2px;
width: 44px;
height: 44px;
filter: drop-shadow(0px 4px 4px white);
z-index: 20;
border: 3px solid rgba(255, 255, 255, 0);
border-radius: 22px;
}
#home-icon:hover {
border: 3px solid rgba(0, 0, 0, 0.3) !important;
}
#home-icon img {
position: relative;
top: -1px;
left: -1px;
width: 40px;
height: 40px;
vertical-align: top;
}
@media (max-width: 599px) {
#home-icon.with-autocomplete {
filter: none;
}
}
@-ms-viewport {
width: device-width;
}
html, body {
margin: 0;
padding: 0;
}
div#body {
padding-left: 8px;
padding-right: 8px;
}
div.footer {
display: flex;
justify-content: space-between;
padding: 8px;
background-color: #EEEEEE;
border: 1px solid #DDDDDD;
}
a.home-link::before {
content: "BAWG";
}
@media (min-width: 500px) {
a.home-link::before {
content: "Bay Area Wildflower Guide";
}
}
.foot-fade {
color: gray;
}
a.glossary {
text-decoration: none;
color: inherit;
border-bottom: 1px gray dotted;
}
a.glossary-jepson {
text-decoration: none;
color: inherit;
border-bottom: 1px #cc6600 dotted;
}
dt {
font-weight: bold;
margin-bottom: 0px;
}
dd {
margin-bottom: 0.5em;
}
.defn {
border-top: 48px solid transparent;
margin-top: -48px;
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}
:target {
background-color: #ffc;
}
div.color-grid {
display: grid;
grid-auto-flow: column;
grid-template-rows: repeat(7, 1fr);
width: max-content;
gap: 5px;
}
@media (min-width: 750px) {
div.color-grid {
grid-auto-flow: row;
grid-template-rows: repeat(2, 1fr);
grid-template-columns: repeat(7, 1fr);
}
}
div.box-color {
padding: 5px;
text-align: center;
}
div.white {
border: 5px solid #F8F8F8;
}
div.yellow {
border: 5px solid gold;
}
div.orange {
border: 5px solid orange;
}
div.red {
border: 5px solid red;
}
div.red {
border: 5px solid red;
}
div.red-purple {
border: 5px solid mediumvioletred;
}
div.purple {
border: 5px solid darkviolet;
}
div.blue {
border: 5px solid blue;
}
div.cream {
border: 5px solid oldlace;
}
div.salmon {
border: 5px solid salmon;
}
div.pink {
border: 5px solid pink;
}
div.pale-purple {
border: 5px solid violet;
}
div.pale-blue {
border: 5px solid lightskyblue;
}
div.other {
border: 5px solid darkgreen;
}
#title {
margin-top: 52px;
}
h1.nospace {
margin-bottom: 0px;
}
div.toc-indent {
display: block;
margin-left: 25px;
}
span.membership {
display: inline-block;
vertical-align: top;
}
p {
margin-top: 1em;
margin-bottom: 1em;
}
p + ul {
margin-top: calc(-1em + 6px);
}
ul {
margin-top: 6px;
}
ul ul {
margin-top: 0px;
}
div.box {
border: 1px solid #c8c8c8;
padding: 0px 10px;
margin: 10px 0px;
}
a.family:link, a.family:visited {
color: #9c8024;
}
a.unobs:link, a.unobs:visited, span.unobs {
color: black;
}
a.jepson:link, a.jepson:visited {
color: #cc6600;
}
a.parent:link, a.parent:visited, span.parent {
color: SaddleBrown;
}
a.leaf:link, a.leaf:visited, span.leaf {
color: DarkGreen;
}
a.missing:link, a.missing:visited {
color: red;
}
a.enclosed {
color: inherit;
text-decoration: none;
border-bottom: none;
}
span.toggle-details {
color: #888;
text-decoration: underline;
cursor: pointer;
}
div#details {
display: none;
}
img.leaf-thumb {
height: 40vmin;
max-height: 200px;
width: auto;
margin-right: 10px;
margin-bottom: 10px;
vertical-align: middle;
}
div.leaf-thumb-text {
box-sizing: border-box;
border: 1px solid black;
padding: 10px;
height: 40vmin;
max-height: 200px;
width: 40vmin;
max-width: 200px;
margin-right: 10px;
margin-bottom: 10px;
vertical-align: middle;
display: inline-flex;
align-items: center;
justify-content: center;
}
img.boxed {
width: 100%;
height: 100%;
object-fit: contain;
}
div.key-thumb {
height: 20vw;
max-height: 200px;
width: 20vw;
max-width: 200px;
margin-right: 10px;
margin-bottom: 0px;
vertical-align: middle;
display: inline-flex;
align-items: center;
justify-content: center;
background-color: #e8e8e8;
}
div.key-thumb-text {
box-sizing: border-box;
border: 1px solid black;
padding: 10px;
height: 20vw;
max-height: 200px;
width: 20vw;
max-width: 200px;
margin-right: 10px;
margin-bottom: 0px;
vertical-align: middle;
display: inline-flex;
align-items: center;
justify-content: center;
}
div.list-thumb {
height: 15vw;
max-height: 100px;
width: 15vw;
max-width: 100px;
margin-right: 10px;
margin-bottom: 0px;
vertical-align: middle;
display: inline-flex;
align-items: center;
justify-content: center;
background-color: #e8e8e8;
}
div.list-thumb-text {
box-sizing: border-box;
border: 1px solid black;
padding: 10px;
height: 15vw;
max-height: 100px;
width: 15vw;
max-width: 100px;
margin-right: 10px;
margin-bottom: 0px;
vertical-align: middle;
display: inline-flex;
align-items: center;
justify-content: center;
}
div.photo-box {
display: flex;
flex-wrap: wrap;
align-items: center;
margin-bottom: 10px;
}
div.list-box {
display: flex;
flex-wrap: wrap;
align-items: center;
margin-top: 10px;
margin-bottom: 10px;
}
div.flex-width {
margin-bottom: 10px;
}
span.show-narrow {
}
span.show-wide {
display: none;
}
@media (min-width: 750px) {
div.flex-width {
display: flex;
align-items: center;
}
span.show-narrow {
display: none;
}
span.show-wide {
display: inline;
}
}
div.flex-width div.photo-box {
margin-bottom: 0px;
}
div.key-text :last-child {
margin-bottom: 0px;
}
div.indent {
margin-left: 5vw;
}
@media (min-width: 1000px) {
div.indent {
margin-left: 50px;
}
}
div#search-container {
position: fixed;
top: 0px;
left: 0px;
right: 0px;
padding-top: 8px;
padding-left: 8px;
padding-right: 8px;
background: white;
box-shadow: 0px 0px 3px 3px white;
z-index: 10;
}
input {
box-sizing: border-box;
margin-left: 40px;
width: calc(100% - 40px);
font-size: 1.5em;
border-radius: 0.4em;
border: 1px solid #DDDDDD;
padding-left: 1.5em;
background-position: .2em 50%;
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='1.5em' height='1.5em' viewBox='0 0 100 100'><g stroke='%23888' stroke-width='9' stroke-linecap='round' fill='none'><circle cx='37' cy='37' r='20'/><path d='M52,52L83,83'/></g></svg>");
background-repeat: no-repeat;
}
input::placeholder {
color: #c0c0c0;
}
input#search:focus {
border: 1px solid rgb(81, 203, 238);
box-shadow: 0px 0px 5px 0px rgb(81, 203, 238);
outline: auto 0px;
}
input:disabled {
position: absolute;
top: 8px;
left: 8px;
width: calc(100% - 16px);
background-color: #eeeeee;
color: #cccccc;
text-align: center;
z-index: 20;
}
div#autocomplete-box {
display: none;
position: fixed;
border: 1px solid #DDDDDD;
background-color: white;
margin-left: -8px;
}
@media (min-width: 600px) {
div#autocomplete-box {
box-sizing: border-box;
margin-left: 61px;
margin-right: 8px;
padding-left: 12px;
padding-right: 12px;
}
}
p.nogap {
padding-left: 20px;
text-indent: -17px;
margin: 0px;
padding-right: 3px;
padding-top: 0.4em;
padding-bottom: 0.4em;
}
@media (min-width: 600px) {
p.nogap {
font-size: 1.25em;
padding-top: 0.15em;
padding-bottom: 0.15em;
}
}
span.match {
background-color: #eee;
}
#update {
display: inline-flex;
vertical-align: middle;
box-sizing: border-box;
width: 170px;
height: 40px;
align-items: center;
justify-content: center;
margin-right: 10px;
margin-top: 8px;
margin-bottom: 8px;
border-radius: 8px;
}
#update:hover, #clear:hover {
border: 4px solid rgba(0, 0, 0, 0.3) !important;
}
#update.update-update {
background-color: #139e38;
color: white;
cursor: pointer;
}
#update.update-update:active {
background-color: #0f752a;
}
#update.update-disable {
background-color: #808080;
color: #000000;
cursor: not-allowed;
}
#update.update-stop {
background-color: #b5952a;
color: white;
cursor: pointer;
}
#update.update-stop:active {
background-color: #9c8024;
}
#progress {
display: inline-block;
vertical-align: middle;
}
#status {
display: block;
}
#err-status {
display: block;
color: red;
}
#clear {
display: inline-flex;
vertical-align: middle;
box-sizing: border-box;
width: 170px;
height: 40px;
align-items: center;
justify-content: center;
margin-right: 10px;
margin-top: 8px;
margin-bottom: 8px;
border-radius: 8px;
background-color: red;
color: white;
cursor: pointer;
}
@media (min-width: 500px) {
#clear {
display: inline-flex;
}
}
#clear:active {
background-color: #d10000;
}
#clear.clear-disable {
background-color: #808080;
color: #000000;
cursor: not-allowed;
}
#usage {
display: inline-block;
vertical-align: middle;
}
div#cache-online {
background-color: #a0e2f2;
padding: 5px;
border-radius: 15px;
}
div#cache-green {
background-color: #a3ffab;
padding: 5px;
border-radius: 15px;
}
img.green-img {
display: inline-block;
vertical-align: middle;
width: 40px;
height: 40px;
margin-right: 8px;
}
span.cache-text {
width: calc(100% - 48px);
display: inline-block;
vertical-align: middle;
}
div#cache-yellow {
background-color: #faffa3;
padding: 5px;
border-radius: 15px;
}
div#red-missing {
background-color: #ffa8a3;
padding: 5px;
border-radius: 15px;
}
div#red-missed {
background-color: #ffa8a3;
padding: 5px;
border-radius: 15px;
}
img.hazard-img {
display: inline-block;
vertical-align: middle;
width: 40px;
height: 40px;
margin-right: 3px;
}
#icon {
display: block;
float: right;
cursor: pointer;
padding: 5px;
margin-top: 2px;
position: relative;
z-index: 30;
}
#icon .hazard-img {
margin-right: 0px;
}
#icon.icon-yellow {
background-color: #faffa3;
}
#icon.icon-red {
backgroun-color: #ffa8a3;
}
#offline:target {
background-color: inherit;
}
| css |
<gh_stars>1-10
{
"name": "nodebb-plugin-modmin",
"version": "1.3.3",
"author": {
"name": "yariplus",
"email": "<EMAIL>"
},
"homepage": "https://github.com/yariplus/nodebb-plugin-modmin",
"bugs": {
"url": "https://github.com/yariplus/nodebb-plugin-modmin/issues"
},
"keywords": [
"nodebb",
"plugin",
"moderate",
"moderator",
"admin"
],
"nbbpm": {
"compatibility": "^1.13.0"
}
}
| json |
Mika Singh and Chahatt Khanna’s posts have sparked dating rumours, and their latest #QuarantineLove post is about Chahatt making paani puri for Mika, check it out!
Over the last few days, television actress Chahatt Khanna and Bollywood singer Mika Singh have been sharing posts with each other, which made people believe that the two are dating each other. Chahatt, who was seen in Qubool Hai on TV, also shared snaps with Mika posing next to the keyboard and mentioned in her caption that she is glad they both found each other during the Coronavirus lockdown. Now, their latest #QuarantineLove post is about Chahatt making paani puri for Mika.
Mika Singh took to his Instagram stories, and shared a short clip which shows paani puri being prepared. In his caption, he tagged Chahatt and posted kissing emojis along with the hashtag ‘Quarantine Love’. Next, he also shared a romantic snap that shows him kissing her hand. Jus yesterday, Chahatt had shared pictures of her and Mika on the balcony, twinning in black, and her comment section was flooded with comments of surprised fans asking, “Ye kab hua?" Well, there’s a twist.
Apparently, Chahatt has been shooting with Mika Singh for a song titled Quarantine Love. In an interview with Bollywood Spy, Chahatt revealed that since the two are next-door-neighbours, they decided to shoot for the track indoors.
| english |
import Debug from 'debug'
import app from './app'
import mongoose from'mongoose'
import { mongoUrl, port } from'./config'
const debug = new Debug('platzi-overflow:root')
const start = async () => {
await mongoose.connect(mongoUrl, {
useNewUrlParser: true
})
app.listen(port, () => {
debug(`Server running at port ${port}`)
})
}
start() | javascript |
<reponame>charles-halifax/recipes
{
"directions": [
"Bring sugar and 1 1/4 cups water to a boil in a small saucepan, stirring until sugar has dissolved. Transfer syrup to a metal bowl and quick-chill by putting bowl in an ice bath and stirring occasionally until cold, about 5 minutes.",
"Add remaining 1/4 cup water to saucepan and sprinkle gelatin over it, then let stand 1 minute to soften. Bring to a bare simmer, stirring until gelatin has dissolved. Add to syrup along with milk and guanabana pur\u00e9e.",
"Freeze mixture in ice cream maker, then transfer to an airtight container and put in freezer to harden, about 2 hours.",
"Peel, halve, and seed papayas, then cut into bite-size pieces. Peel and pit mangoes, then cut into bite-size pieces. Toss fruit with pomegranate seeds and lime juice and serve with slightly softened sherbet."
],
"ingredients": [
"1 1/4 cups sugar",
"1 1/2 cups water, divided",
"1 teaspoon unflavored gelatin",
"3/4 cup cold whole milk",
"2 (14-ounce) packages frozen guanabana (soursop) pur\u00e9e, such as Goya brand, thawed in refrigerator (3 cups)",
"2 (1/2-pound) papayas",
"2 mangoes",
"1/2 cup fresh pomegranate seeds",
"2 teaspoons fresh lime juice"
],
"language": "en-US",
"source": "www.epicurious.com",
"tags": [
"Dessert",
"Lime",
"Tropical Fruit",
"Mango",
"Papaya",
"Summer",
"Healthy",
"Pomegranate",
"Gourmet",
"Wheat/Gluten-Free",
"Peanut Free",
"Tree Nut Free",
"Soy Free"
],
"title": "Guanabana Sherbet with Tropical Fruit",
"url": "http://www.epicurious.com/recipes/food/views/guanabana-sherbet-with-tropical-fruit-239999"
}
| json |
<filename>src/styles/css/news_list.css
.news-list {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.news-list .header {
font-size: 1.2rem;
line-height: 48px;
padding-left: 20px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
color: #ff1c1c;
}
.news-list .list {
font-size: 1rem;
}
.news-list .list li {
line-height: 28px;
cursor: pointer;
}
.news-list .list li a {
color: #434343;
}
| css |
# -*- coding: utf-8 -*-
from iati.covid_checks import CovidChecks
from iati.ebola_checks import EbolaChecks
checks = {'covid': CovidChecks, 'ebola': EbolaChecks}
| python |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE404_Improper_Resource_Shutdown__w32CreateFile_fclose_81_bad.cpp
Label Definition File: CWE404_Improper_Resource_Shutdown__w32CreateFile.label.xml
Template File: source-sinks-81_bad.tmpl.cpp
*/
/*
* @description
* CWE: 404 Improper Resource Shutdown or Release
* BadSource: Open a file using CreateFile()
* Sinks: fclose
* GoodSink: Close the file using CloseHandle()
* BadSink : Close the file using fclose()
* Flow Variant: 81 Data flow: data passed in a parameter to an virtual method called via a reference
*
* */
#ifndef OMITBAD
#include "std_testcase.h"
#include "CWE404_Improper_Resource_Shutdown__w32CreateFile_fclose_81.h"
namespace CWE404_Improper_Resource_Shutdown__w32CreateFile_fclose_81
{
void CWE404_Improper_Resource_Shutdown__w32CreateFile_fclose_81_bad::action(HANDLE data) const
{
if (data != INVALID_HANDLE_VALUE)
{
/* FLAW: Attempt to close the file using fclose() instead of CloseHandle() */
fclose((FILE *)data);
}
}
}
#endif /* OMITBAD */
| cpp |
<filename>docs/reference/adobe/experience/aep-web-sdk-experienceevent.schema.json
{
"meta:license": [
"Copyright 2020 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/experience/aep-web-sdk-experienceevent",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "AEP Web SDK ExperienceEvent Mixin",
"type": "object",
"description": "Adobe Experience Platform Web SDK ExperienceEvent Mixin. Includes field definitions for automatically collected data by the AEP Web SDK (Alloy) library.",
"meta:extensible": true,
"meta:abstract": true,
"meta:intendedToExtend": [
"https://ns.adobe.com/xdm/context/experienceevent"
],
"meta:extends": [
"https://ns.adobe.com/xdm/context/experienceevent-implementation-details",
"https://ns.adobe.com/experience/experienceevent-edgeregion",
"https://ns.adobe.com/xdm/context/experienceevent-environment-details",
"https://ns.adobe.com/xdm/context/experienceevent-web",
"https://ns.adobe.com/experience/decisioning/proposition-interaction"
],
"definitions": {
"aep-web-sdk-experienceevent": {
"properties": {}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "https://ns.adobe.com/xdm/context/experienceevent-implementation-details"
},
{
"$ref": "https://ns.adobe.com/experience/experienceevent-edgeregion"
},
{
"$ref": "https://ns.adobe.com/xdm/context/experienceevent-environment-details"
},
{
"$ref": "https://ns.adobe.com/xdm/context/experienceevent-web"
},
{
"$ref": "https://ns.adobe.com/experience/decisioning/proposition-interaction"
}
],
"meta:status": "stable",
"examples": []
} | json |
{"appid": 445070, "name": "Tatsu", "windows": true, "mac": true, "linux": true, "early_access": false, "lookup_time": 1490992392} | json |
The newly appointed eight vice presidents included Vishnu Mittal, Dinesh Pratap Singh, former mayor Lata Gupta and former Mahila Morcha president Yogita Singh. Laxmi Nagar MLA Abhay Verma retained the post of chief spokesperson of Delhi BJP. Praveen Shankar Kapoor was given the charge of the key post of media department head.
Now, what the government has done from this particular tax filing is that all your tax payments, so whatever taxes you have paid are also now only appearing in your annual information statement which is your AIS.
| english |
from p5 import *
def setup():
title("🐍 Jörgs Python Sketch 🐍".encode("utf-8"))
def draw():
background(245, 245, 245)
run() | python |
/* ************************
Copyright Terrain Experts Inc.
Terrain Experts Inc (TERREX) reserves all rights to this source code
unless otherwise specified in writing by the President of TERREX.
This copyright may be updated in the future, in which case that version
supercedes this one.
-------------------
Terrex Experts Inc.
4400 East Broadway #314
Tucson, AZ 85711
<EMAIL>
Tel: (520) 323-7990
************************
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/* trpage_header.cpp
Source for trpgHeader methods.
The only reason to change this is if you want to add something
to the header definition.
*/
#include <trpage_geom.h>
#include <trpage_read.h>
/* Write Header class
Fill it in and write it out.
*/
// Constructor
trpgHeader::trpgHeader()
{
Reset();
}
trpgHeader::~trpgHeader()
{
}
// Validity check
bool trpgHeader::isValid() const
{
// We also need to check that this is a 'master' archive here.
if((verMajor>=TRPG_NOMERGE_VERSION_MAJOR) && (verMinor>=TRPG_NOMERGE_VERSION_MINOR))
{
return true;
}
else {
if (numLods <= 0)
{
strcpy(errMess, "Number of LOD <= 0");
return false;
}
if (sw.x == ne.x && sw.y == ne.y)
{
strcpy(errMess, "Mbr is invalid");
return false;
}
}
return true;
}
// Reset contents
void trpgHeader::Reset()
{
// Initialize to a default state
verMinor = TRPG_VERSION_MINOR;
verMajor = TRPG_VERSION_MAJOR;
dbVerMinor = 0;
dbVerMajor = 0;
origin = trpg3dPoint(0,0,0);
sw = ne = trpg2dPoint(0,0);
tileType = DatabaseLocal;
numLods = 0;
lodSizes.resize(0);
lodRanges.resize(0);
tileSize.resize(0);
maxGroupID = -1;
flags = 0;
errMess[0] = '\0';
cols = -1;
rows = -1;
}
// Set functions
void trpgHeader::SetVersion(int32 vmaj,int32 vmin)
{
verMinor = vmin;
verMajor = vmaj;
}
void trpgHeader::SetDbVersion(int32 vmaj,int32 vmin)
{
dbVerMinor = vmin;
dbVerMajor = vmaj;
}
void trpgHeader::SetTileSize(int id,const trpg2dPoint &pt)
{
if (id < 0 || id >= (int)tileSize.size()) return;
tileSize[id] = pt;
}
void trpgHeader::SetOrigin(const trpg3dPoint &pt)
{
origin = pt;
}
void trpgHeader::SetExtents(const trpg2dPoint &in_sw,const trpg2dPoint &in_ne)
{
sw = in_sw;
ne = in_ne;
}
void trpgHeader::SetTileOriginType(trpgTileType type)
{
tileType = type;
}
void trpgHeader::SetNumLods(int no)
{
if (no < 0) return;
numLods = no;
lodSizes.resize(no);
lodRanges.resize(no);
}
void trpgHeader::SetLodSize(int no,const trpg2iPoint &pt)
{
if (no < 0 || no >= numLods)
return;
lodSizes[no] = pt;
}
void trpgHeader::SetLodSize(const trpg2iPoint *pt)
{
for (int i=0;i<numLods;i++)
lodSizes[i] = pt[i];
}
void trpgHeader::SetLodRange(int no,float64 r)
{
if (no < 0 || no >= numLods)
return;
lodRanges[no] = r;
}
void trpgHeader::SetLodRange(const float64 *r)
{
for (int i=0;i<numLods;i++)
lodRanges[i] = r[i];
}
void trpgHeader::AddLod(const trpg2iPoint &pt,const trpg2dPoint &sz,float64 r)
{
lodRanges.push_back(r);
lodSizes.push_back(pt);
tileSize.push_back(sz);
numLods++;
}
void trpgHeader::SetLod(const trpg2iPoint &pt,const trpg2dPoint &sz,float64 r,unsigned int lod)
{
if (lodRanges.size()<=lod)
lodRanges.resize(lod+1);
lodRanges[lod]=r;
if (lodSizes.size()<=lod)
lodSizes.resize(lod+1);
lodSizes[lod]=pt;
if (tileSize.size()<=lod)
tileSize.resize(lod+1);
tileSize[lod]=sz;
if (numLods<=static_cast<int>(lod))
numLods=lod+1;
}
void trpgHeader::SetMaxGroupID(int id)
{
maxGroupID = id;
}
int trpgHeader::AddGroupID(void)
{
maxGroupID++;
return maxGroupID;
}
// Write out to a buffer
bool trpgHeader::Write(trpgWriteBuffer &buf)
{
if (!isValid())
return false;
buf.Begin(TRPGHEADER);
buf.Add((int32)verMajor);
buf.Add((int32)verMinor);
buf.Add((int32)dbVerMajor);
buf.Add((int32)dbVerMinor);
buf.Add(origin);
buf.Add(sw);
buf.Add(ne);
buf.Add((uint8)tileType);
buf.Add((int32)numLods);
buf.Begin(TRPGHEAD_LODINFO);
for (int i=0;i<numLods;i++) {
buf.Add(lodSizes[i]);
buf.Add(lodRanges[i]);
buf.Add(tileSize[i]);
}
buf.End();
buf.Add(maxGroupID);
if((verMajor >= TRPG_NOMERGE_VERSION_MAJOR) && (verMinor >=TRPG_NOMERGE_VERSION_MINOR)) {
buf.Add(flags);
buf.Add(rows);
buf.Add(cols);
}
buf.End();
return true;
}
/* ********
Read Header class.
*/
// Get Functions
bool trpgHeader::GetVersion(int32 &vmaj,int32 &vmin) const
{
if (!isValid()) return false;
vmin = verMinor;
vmaj = verMajor;
return true;
}
bool trpgHeader::GetDbVersion(int32 &vmaj,int32 &vmin) const
{
if (!isValid()) return false;
vmaj = dbVerMajor;
vmin = dbVerMinor;
return true;
}
bool trpgHeader::GetTileSize(int id,trpg2dPoint &pt) const
{
if (!isValid()) return false;
if (id < 0 || id >= (int)tileSize.size()) return false;
pt = tileSize[id];
return true;
}
bool trpgHeader::GetOrigin(trpg3dPoint &pt) const
{
if (!isValid()) return false;
pt = origin;
return true;
}
bool trpgHeader::GetTileOriginType(trpgTileType &type) const
{
if (!isValid()) return false;
type = tileType;
return true;
}
bool trpgHeader::GetNumLods(int32 &no) const
{
if (!isValid()) return false;
no = numLods;
return true;
}
bool trpgHeader::GetLodSize(int32 id,trpg2iPoint &pt) const
{
if (!isValid() || (id < 0 || id >= numLods)) return false;
pt = lodSizes[id];
return true;
}
bool trpgHeader::GetLodRange(int32 id,float64 &range) const
{
if (!isValid() || (id < 0 || id >= numLods)) return false;
range = lodRanges[id];
return true;
}
bool trpgHeader::GetExtents(trpg2dPoint &osw,trpg2dPoint &one) const
{
if (!isValid()) return false;
osw = sw;
one = ne;
return true;
}
bool trpgHeader::GetMaxGroupID(int &id) const
{
id = maxGroupID;
return true;
}
// Read in the header
bool trpgHeader::Read(trpgReadBuffer &buf)
{
uint8 i8;
trpgToken tok;
bool status;
int32 len;
try {
buf.Get(verMajor);
buf.Get(verMinor);
buf.Get(dbVerMajor);
buf.Get(dbVerMinor);
buf.Get(origin);
buf.Get(sw);
buf.Get(ne);
buf.Get(i8); tileType = (trpgTileType)i8;
buf.Get(numLods);
if (numLods < 0) throw 1;
// Read in the LOD range info
buf.GetToken(tok,len);
if (tok != TRPGHEAD_LODINFO) throw 1;
buf.PushLimit(len);
status = ReadLodInfo(buf);
buf.PopLimit();
if (!status) throw 1;
// Added after the first version (but still in 1.0)
buf.Get(maxGroupID);
if((verMajor >= TRPG_NOMERGE_VERSION_MAJOR) && (verMinor >=TRPG_NOMERGE_VERSION_MINOR)) {
buf.Get(flags);
buf.Get(rows);
buf.Get(cols);
}
}
catch (...) {
return false;
}
return isValid();
}
// Read the LOD info (seperate token)
bool trpgHeader::ReadLodInfo(trpgReadBuffer &buf)
{
float64 range;
trpg2iPoint pt;
trpg2dPoint sz;
try {
for (int i=0;i<numLods;i++) {
buf.Get(pt);
buf.Get(range);
buf.Get(sz);
lodSizes.push_back(pt);
lodRanges.push_back(range);
tileSize.push_back(sz);
}
}
catch (...) {
return false;
}
return true;
}
| cpp |
{
"html": "tierrasquebradas.html",
"css": "tierrasquebradas.css",
"authors": "Elfonochasis",
"roll20userid": "3754033",
"preview": "preview.png",
"instructions": "Hoja de personaje para el juego Tierras Quebradas de T&T Ediciones. Cualquier sugerencia/incidencia, contactar conmigo al siguiente email <EMAIL> usando el siguiente asunto para facilitar la gestión: [Roll20][Nombre del juego] Asunto",
"legacy": true
} | json |
When it comes to basic transportation, the Versa is hard to beat.
The 2021 Nissan Versa is an inexpensive yet solid small car.
The interior is pleasant and even features some soft-plastic accents.
Motivation is provided by a 1.6-liter engine that delivers a modest 122 horsepower and 114 pound-feet of torque.
While not very muscular, this car's four-cylinder engine is smooth and highly economical.
The Nissan Versa competes with other small cars like the Honda Fit, Hyundai Accent and Kia Rio.
"V" for "Versa" as well as "value."
This car's backseat is upright and surprisingly spacious.
Trunk volume maxes out at around 15 cubic feet.
SR models roll on stylish 17-inch alloy wheels.
For more photos of the 2021 Nissan Versa SR, keep clicking through this gallery. (You know you want to!)
| english |
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package jsonutil
// Bytes is a byte slice in a json-encoded struct.
// encoding/json assumes that []byte fields are hex-encoded.
// Bytes are not hex-encoded; they are treated the same as strings.
// This can avoid unnecessary allocations due to a round trip through strings.
type Bytes []byte
func (b *Bytes) UnmarshalText(text []byte) error {
// Copy the contexts of text.
*b = append(*b, text...)
return nil
}
| go |
Hey guys,
I've planned to upgrade my dad's old P4 PC. . Just office type of work no gaming. . but would need HD playback. .bcos i'm thinking of planning it to make it as a HTPC in the future. . My Budget is around 5-6k for mobo+cpu . .
| english |
package com.antoinedev.Exercice4;
public class Main {
public static void main(String[] args) {
System.out.println("Affichage de la fiche vehicule");
FicheVehicule pp = new PreviewProxy("leFilmeNumero5.jpg");
System.out.println("Demande de visualisation du film");
pp.visualiserFilm();
}
}
| java |
{"jqtree.css":"<KEY>,"jqtree.min.css":"<KEY>,"tree.jquery.js":"<KEY>,"tree.jquery.min.js":"sha5<KEY>} | json |
<reponame>tyler-cai-microsoft/FluidFramework<filename>tools/build-tools/src/typeValidator/runValidator.ts<gh_stars>1-10
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import program from "commander";
import { bumpDependencies } from "../bumpVersion/bumpDependencies";
import { bumpVersionCommand } from "../bumpVersion/bumpVersion";
import { Context, VersionChangeType } from "../bumpVersion/context";
import { GitRepo } from "../bumpVersion/gitRepo";
import { getResolvedFluidRoot } from "../common/fluidUtils";
import { validateRepo } from "./repoValidator";
import { BreakingIncrement, enableLogging } from "./validatorUtils";
function incrementToVersionChangeType(increment: BreakingIncrement): VersionChangeType | undefined {
switch (increment) {
case BreakingIncrement.major:
return "major";
case BreakingIncrement.minor:
return "minor";
}
return undefined;
}
async function main() {
/**
* argument parsing
*/
program
.option("-p|--packages <names...>", "Specific packages to validate, otherwise all")
.option("-v|--verbose", "Verbose logging mode")
.option("-b|--bump", "Bump versions for packages with breaking changes")
.option("-d|--dep", "Bump consumers' dependencies on packages with breaking changes")
.parse(process.argv);
const includeOnly: Set<string> | undefined = program.packages ? new Set(program.packages) : undefined;
if (program.verbose !== undefined) {
enableLogging(true);
}
// Get validation results for the repo
const validationResults = await validateRepo({ includeOnly });
if (program.bump !== true && program.dep !== true) {
return;
}
const resolvedRoot = await getResolvedFluidRoot();
console.log(`Repo: ${resolvedRoot}`);
const gitRepo = new GitRepo(resolvedRoot);
const context = new Context(gitRepo, "github.com/microsoft/FluidFramework", await gitRepo.getCurrentBranchName());
// Bump versions for packages with breaking changes if specified
if (program.bump === true) {
validationResults.forEach((value, key) => {
const changeType = incrementToVersionChangeType(value.level);
if (changeType !== undefined) {
bumpVersionCommand(context, key, changeType, false, false);
console.log(`Version for ${key} has been updated. Create a pre-release and update dependencies to consume it.`);
}
})
}
// Bump consumers' dependencies on packages with breaking changes if specified
if (program.dep === true) {
const depMap = new Map<string, undefined>();
validationResults.forEach((value, key) => {
depMap.set(key, undefined);
});
bumpDependencies(context, "Bump dependencies version", depMap, false, false, false);
}
}
main().catch(e => {
console.error("ERROR: unexpected error", JSON.stringify(e, undefined, 2))
if (e.stack) {
console.error(`Stack:\n${e.stack}`);
}
});
| typescript |
Posted On:
Consequent upon the superannuation of earlier Director Shri. V. Balamurugan, Outstanding Scientist on 29th September 2023, the competent authority at DRDO Hqrs, New Delhi has appointed Shri J Rajesh Kumar, Outstanding Scientist as new Director, CVRDE with immediate effect.
The successor Shri J Rajesh Kumar, Outstanding Scientist has assumed the charge as Director, CVRDE on 29th Sep 2023. Previously, he was the Associate Director in CVRDE for MBT Group & project Director for prestigious Light Tank Project.
He has played a key role in ramping up the order placement of 118 Arjun MBT Mk-IA tanks to Indian Army (a big Make in India initiative) and significantly contributed for shaping up the first prototype of Light Tank. He possesses a Bachelor in Mechanical Engineering and completed his Master’s in Military Vehicle Technology at Royal Military College of Science (RMCS), Cranfield University, United Kingdom.
| english |
{
"name": "Doge-Finance.com",
"symbol": "DOGES",
"address": "0xf40Adc50f45f65e24726b3e35418d79d737F401F",
"decimals": 18,
"dharmaVerificationStatus": "UNVERIFIED"
} | json |
<reponame>faisalhakim47/alamat<filename>data/provinces/72/regencies/71/districts.json
[{"id":"01","provinceId":"72","regencyId":"71","name":"Palu Timur"},{"id":"02","provinceId":"72","regencyId":"71","name":"Palu Barat"},{"id":"03","provinceId":"72","regencyId":"71","name":"Palu Selatan"},{"id":"04","provinceId":"72","regencyId":"71","name":"Palu Utara"},{"id":"05","provinceId":"72","regencyId":"71","name":"Ulujadi"},{"id":"06","provinceId":"72","regencyId":"71","name":"Tatanga"},{"id":"07","provinceId":"72","regencyId":"71","name":"Tawaeli"},{"id":"08","provinceId":"72","regencyId":"71","name":"Mantikulore"}] | json |
import * as factory from './_fixtureFactory'
import checkFileIsUploadedFromUrl from '../src/checkFileIsUploadedFromUrl'
import {StatusEnum} from '../src/api/fromUrlStatus'
import {getSettingsForTesting} from './_helpers'
import fromUrl from '../src/api/fromUrl'
describe('checkFileIsUploadedFromUrl', () => {
const sourceUrl = factory.imageUrl('valid')
const settings = getSettingsForTesting({
publicKey: factory.publicKey('demo')
})
it('should be resolved if file is uploaded', async() => {
const data = await fromUrl(sourceUrl, settings)
// @ts-ignore
const {token} = data
const info = await checkFileIsUploadedFromUrl({
token,
settings,
})
expect(info.status).toBe(StatusEnum.Success)
})
it('should be cancelable', async(done) => {
const data = await fromUrl(sourceUrl, settings)
// @ts-ignore
const {token} = data
const polling = checkFileIsUploadedFromUrl({
token,
settings,
})
setTimeout(() => {
polling.cancel()
}, 1)
polling
.then(() => done.fail('Promise should not to be resolved'))
.catch((error) => {
if (error.name === 'CancelError') {
done()
} else {
done.fail(error)
}
})
})
})
| typescript |
Will you still want one in October?
We were originally expecting to see the Google Pixel 4a appear in May, as part of the Google IO 2020 event. Since that event got moved online and then canceled, the launch date for Google's mid-ranger has been a bit of a mystery – and now we're hearing that it might not show up until October.
News of the latest delay comes from serial tipster John Prosser, who has been a reliable source of inside information in the past. He says an announcement about the phone will be made on July 13, but that it won't go on sale until October.
That will put the phone firmly into Pixel 5 territory in terms of timing, which has some commentators wondering whether the Pixel 4a might indeed get renamed as the Pixel 5a – though we're unlikely to know any of this for sure until the handsets appear.
Prosser actually goes on to say that the Pixel 5 launch might get pushed back too, although he admits himself that this is all subject to change. Finally, he suggests that the blue version of the Pixel 4a has been canned altogether, so the phone will only show up in a standard black color.
The new predictions aren't too different to the most recent rumors we'd been hearing from Prosser on Twitter: he'd already claimed that after a July 13 announcement, new Pixel 4a phones wouldn't go on sale until August and October.
We can only speculate as to what is prompting Google to keep pushing these dates further and further back, but presumably it makes bad business sense to launch a handset in the middle of a global pandemic.
Not only are consumers less likely to have money to spend on a new phone at the moment, tech supply lines have been thrown into disarray as well. While software developers can work from home without too much disruption, it's a different story when it comes to physical hardware.
We're hoping that the Google Pixel 4a does eventually see the light of day, as we'd been hearing positive noises about it – and the Pixel 3a was an excellent, affordable handset. As soon as we hear anything more, we'll let you know.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Dave is a freelance tech journalist who has been writing about gadgets, apps and the web for more than two decades. Based out of Stockport, England, on TechRadar you'll find him covering news, features and reviews, particularly for phones, tablets and wearables. Working to ensure our breaking news coverage is the best in the business over weekends, David also has bylines at Gizmodo, T3, PopSci and a few other places besides, as well as being many years editing the likes of PC Explorer and The Hardware Handbook.
| english |
<filename>Shared/src/ExpandStringItemVector.cpp<gh_stars>1-10
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the Vodafone Group Services Ltd nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "ExpandStringItemVector.h"
#include "DeleteHelpers.h"
#define MAX_SMS_LENGTH 160
#define MAX_CONCATENATED_SMS_SIZE 152
#define MAX_SMS_ITEM_LENGTH 140
#define TMP_LENGTH 255
ExpandStringItemVector::ExpandStringItemVector(uint32 nbrItems)
{
m_items.reserve( nbrItems );
}
ExpandStringItemVector::~ExpandStringItemVector()
{
}
bool
ExpandStringItemVector::
getRouteAsSMS( vector<char*>& destVector,
uint32 totRouteLength,
uint32 totRouteTime,
uint32 totRouteStandStillTime,
StringTable::languageCode language,
UserConstants::EOLType eol,
int maxLineLength,
bool concatinatedSMS,
const char* preText,
const char* postText)
{
vector<char*> allStrings;
allStrings.reserve( m_items.size() );
vector<size_t> allStringSize;
allStringSize.reserve( m_items.size() );
// Create footer
char* footerText = new char[
strlen( StringTable::getString(
StringTable::ROUTE_CONTINUES, language ) )*3 + 1 ];
SMSStringUtility::printSMSString(
footerText,
StringTable::getString( StringTable::ROUTE_CONTINUES, language),
language, eol , maxLineLength, 0, 1, true);
const uint32 footerSize = strlen(footerText);
// Create header
const char* routeText = StringTable::getString(StringTable::ROUTE,
language);
char* header = new char[ strlen( routeText ) + 14 + 2 + 1 ];
int headerSize = sprintf(header, "%s %u/NN", routeText, 1);
headerSize += SMSStringUtility::writeEol(header, headerSize, eol, 5);
header[headerSize] = '\0';
const uint32 maxInStringLength = (concatinatedSMS ?
MAX_CONCATENATED_SMS_SIZE :
(MAX_SMS_LENGTH - footerSize -
headerSize) );
cerr << "maxInStringLength " << maxInStringLength << endl;
// Add the preText
if ( (preText != NULL) && (strlen(preText) > 0) ) {
// FIXME: Replace all endlines with EOL in text, make sure < MAX_SIZE
char* tmpStr = new char[MAX_SMS_LENGTH + 1];
strncpy( tmpStr, preText, maxInStringLength );
tmpStr[ maxInStringLength ] = '\0';
allStrings.push_back( tmpStr );
allStringSize.push_back( strlen( tmpStr ) );
}
// Add all stringItems
uint32 i;
for (i=0; i < m_items.size(); i++) {
ExpandStringItem* curItem = m_items[ i ];
if (curItem != NULL) {
char* tmpStr = new char[MAX_SMS_LENGTH + 1];
int tmpLen = curItem->getRouteDescriptionSMS(language,
eol,
maxLineLength,
tmpStr,
MAX_SMS_ITEM_LENGTH);
if (tmpLen > 0) {
allStrings.push_back(tmpStr);
allStringSize.push_back(tmpLen);
}
}
}
// Add the postText
if ( (postText != NULL) && (strlen(postText) > 0) ) {
// FIXME: Replace all endlines with EOL in text, make sure < MAX_SIZE
char* tmpStr = new char[MAX_SMS_LENGTH + 1];
strncpy( tmpStr, postText, maxInStringLength );
tmpStr[ maxInStringLength ] = '\0';
allStrings.push_back( tmpStr );
allStringSize.push_back( strlen( tmpStr ) );
}
// Split the strings in allString into some route-SMS:es
// Fist calculate total length to se if only one SMS
uint32 totLength = 0;
for ( i=0; i < allStrings.size(); i++){
totLength += allStringSize[ i ];
}
if (totLength < MAX_SMS_LENGTH) {
// All text fits into one SMS, no header och footer necessary!
char* curSMS = new char[totLength+1];
curSMS[0] = '\0';
for (uint32 i=0; i < m_items.size(); i++){
strcat(curSMS, allStrings[ i ]);
}
destVector.push_back(curSMS);
delete [] footerText;
delete [] header;
STLUtility::deleteArrayValues( allStrings );
return (true);
}
else if( concatinatedSMS ){
// More than one SMS necessary, but no headers and footers...
// Create the SMSes and insert them into the outparameter (destVector)
uint32 i=0;
while( i < allStrings.size() ){
uint32 totLength = allStringSize[ i ];
char* curSMS = new char[MAX_SMS_LENGTH + 1];
curSMS[0] = '\0';
while( totLength <= MAX_CONCATENATED_SMS_SIZE &&
i < allStrings.size() )
{
strcat(curSMS, allStrings[i]);
i++;
if ( i < allStrings.size() ) {
totLength += allStringSize[ i ];
}
}
destVector.push_back(curSMS);
}
delete [] footerText;
delete [] header;
STLUtility::deleteArrayValues( allStrings );
return (true);
}
else {
// More than one SMS necessary, create headers and footers...
vector<uint32> headerPositions;
// Create the first header and insert into allStrings
allStrings.insert(allStrings.begin(), header);
allStringSize.insert(allStringSize.begin(), strlen(header));
headerPositions.push_back(0);
// Insert headers and footers without totNbr (NN)
uint32 curSize = headerSize;
uint32 curSMSNumber = 1;
uint32 i=0;
while (i < allStrings.size()) {
if ( (curSize + allStringSize[ i ]) >
(MAX_SMS_LENGTH-footerSize) )
{
// Add footer
char* footer = StringUtility::newStrDup(footerText);
allStrings.insert( allStrings.begin() + i, footer);
allStringSize.insert( allStringSize.begin() + i, footerSize);
i++;
// Add header
char* header = new char[ strlen( routeText ) + 14 + 2 + 1 ];
int headerPos = sprintf(header, "%s %u/NN",
routeText, curSMSNumber+1 );
headerPos += SMSStringUtility::writeEol( header, headerPos,
eol, 5 );
header[headerPos] = '\0';
allStrings.insert( allStrings.begin() + i, header);
allStringSize.insert( allStringSize.begin() + i, strlen(header));
headerPositions.push_back(i);
// Update variables
curSMSNumber++;
curSize = headerSize;
} else {
curSize += allStringSize[ i ];
}
i++;
}
// Change all the "NN" to the total number of SMSes (curSMSNumber+1)
for (i=0; i<headerPositions.size(); i++) {
// Write the number to a temporary str
char nbrStr[ 11 ];
sprintf(nbrStr,"%u", curSMSNumber);
char* header = allStrings[ headerPositions[i] ];
char* nnPos = strchr(header, '/')+1;
if (strlen(nbrStr) < 3) {
unsigned int j;
for (j=0; j<strlen(nbrStr); j++) {
nnPos[j] = nbrStr[j];
}
for (j=strlen(nbrStr); j<3; j++) {
nnPos[j] = ' ';
}
}
}
// Add the last string to headerPos...
headerPositions.push_back(allStrings.size());
// Create the SMSes and insert them into the outparameter (destVector)
for (i=0; i<headerPositions.size()-1; i++) {
char* curSMS = new char[MAX_SMS_LENGTH + 1];
curSMS[0] = '\0';
for (uint32 j=headerPositions[i]; j<headerPositions[i+1]; j++) {
strcat(curSMS, allStrings[j]);
}
destVector.push_back(curSMS);
}
delete [] footerText;
STLUtility::deleteArrayValues( allStrings );
return (true);
}
delete [] footerText;
STLUtility::deleteArrayValues( allStrings );
// Not possible to get here...
return (false);
}
void ExpandStringItemVector::deleteAllObjs() {
STLUtility::deleteValues( m_items );
}
| cpp |
<filename>tests/baselines/reference/literalTypesWidenInParameterPosition.js
//// [literalTypesWidenInParameterPosition.ts]
class D {
readonly noWiden = 1
constructor(readonly widen = 2) {
this.noWiden = 5; // error
this.widen = 6; // ok
}
}
new D(7); // ok
//// [literalTypesWidenInParameterPosition.js]
var D = /** @class */ (function () {
function D(widen) {
if (widen === void 0) { widen = 2; }
this.widen = widen;
this.noWiden = 1;
this.noWiden = 5; // error
this.widen = 6; // ok
}
return D;
}());
new D(7); // ok
| javascript |
What’s the old line? ‘An opportunity of a lifetime must be used within the lifetime of the opportunity’. We always talk about opportunities knocking our door and making the most of it. But here’s one cricketer who has maximized those opportunities and has triggered a confusion (a pleasant one though), on who is going to make it to the eleven.
Kohli’s has been perhaps a dream run as a youngster as he finished as the second highest run getter of the calendar year in 2010. He wasn’t the first choice player then, but has been the greatest beneficiary of the half-strength squad that India preferred to play almost throughout the year. His consistency though in acquainted conditions has been staggering.
Ego has come his way initially in his career but the temperament he has embraced in recent times makes it evident that the young man has worked on it. Initially he had a tendency of throwing it away after good starts but the matured player that he is now, he has anchored so many tricky chases for Team India batting at a crucial No. 3 position.
His ability to bat at No. 3 as an anchor and No. 6 as a finisher (for Royal Challengers- Remember he was the only player retained by them before this auction), have convinced people if not the captain about his adequacy to play in the eleven. Kohli along with Raina also form an acrobatic duo on the off-side capable of stopping 20-30 runs every game, let alone the pressure they build on the batsman by doing so.
So the equations reduce to this: we have to choose three out of Yuvraj, Raina, Kohli in the eleven. Yuvraj seems to have fathomed the theory of ‘easiest way into the eleven’ by honing his bowling skills though he is only a shadow of his former self as a batsman. Raina has been this ‘adept finisher’ India was searching for (though in conditions those don’t assist bounce and pace). Kohli has forced his presence to be felt whenever he has played. Yusuf Pathan has proved what he could be but the formula ‘how many times out of how many times’ doesn’t seem to go in his favor. If the argument is for the 10-15 extra overs that Dhoni should manage from the non-specialist bowlers, Sehwag, Yuvraj and Raina could very well be those men who could do so.
I’ve shown my priority order while listing the names straightaway. Suffice it to say that Kohli, unlike other youngsters, has forced his place in the eleven and this is will be the batting order I would subscribe on at least for the first two games (against Bangladesh and England), for it is worth giving a try.
| english |
Goli Soda actress Chandini Sarathi has now grown up and recently posted some family photographs that have gone viral on Instagram. The actor, who was a teenager back in 2014, is now a married woman with a baby boy.
Following this, she has often shared photographs with her husband on her social media on different occasions, including one which shows them all dressed up. The caption to this post read – “You are a special gift from the heavens,
A lot of such posts with romantic captions can be seen on her wall. However, the photo that made the most buzz on Instagram was one which Chandini put with her son. Captioned – “There’s no feeling like the feeling of holding the world in your arms,” the actress revealed her son’s face on the occasion of his first birthday. The post received more than 5,700 likes and people in the comments section both congratulated the actress and wished her son a happy birthday.
Chandini played the role of Yaamini in the film Goli Soda in 2014. The cast of the film included Sri Ram, Samuthrakani, Pakoda Pandi, Golisoda Seetha, R. K. Vijaimurugan and more prominent names. The movie was written and directed by Vijay Milton and produced by Bharath Seeni. | english |
In a bid to revamp vigilance and strengthen the security of the metropolis after the 26/11 terror attacks,the state Government is considering a proposal moved by the Power Grid Corporation of Indian Ltd (PGCI) to install 5,000 CCTV cameras across the city.
The proposal was among the various plans discussed by the ministerial sub-committee headed by Deputy Chief Minister Chhagan Bhujbal on Wednesday.
According to the PGCI proposal,it would be a turnkey project estimated to cost Rs 157 crore. It would include a CCTV network that enables motion detection,bio-matrix,optical character recognition (for screening number plates of vehicles),night vision,thermal imaging,and also pan,tilt and zoom capabilities.
The CCTVs are proposed to be installed at 480 traffic junctions in the city to monitor movements of vehicles and individuals round the clock. The network of CCTVs would also monitor important government installations and buildings,railway stations,BEST depots and beaches.
Out of the estimated cost of Rs 157 crore,it has been proposed that Rs 25 crore be provided for the current financial year,in order to start the project before March-end.
The PGCI is one of the largest transmission utilities of the world and has diversified into telecom business besides having a network of optical fibres. It wheels about 45 per cent of the total power generated in the country and is one of the Navratna public sector enterprises.
The issues discussed by the ministerial committee on Wednesday also included a proposal to strengthen police control rooms (at an estimated cost of Rs 3. 31 crore),procuring of ammunition (Rs 7 crore),a megacity wireless project (Rs 3. 86 crore), strengthening of the Anti-Terrorist Squad (Rs 16. 43 crore),and setting up of 12 new coastal police stations (Rs 2. 25 crore).
The ministerial committee approved an expenditure of Rs 90 crore for the modernisation of the police force. The package includes purchase of 12 boats for Rs 4 crore each,12 digital video cameras,24 search lights,12 GPS systems,19 satellite phones,120 life-jackets and 100 helmets. | english |
import logging
import pandas as pd
import numpy as np
import json
from typing import List
from .. import instance_path
from . import DataSetInstance
logger = logging.getLogger(__name__)
class ZefDataFrame(DataSetInstance):
_linear_space = []
_multiselect_space = []
_text_space = []
def linear_answers(self) -> pd.DataFrame:
return self._get_answers(self._linear_space)
def multiselect_answers(self) -> pd.DataFrame:
return self._get_answers(self._multiselect_space)
def text_answers(self) -> pd.DataFrame:
return self._get_answers(self._text_space)
def _get_answers(self, cols: List) -> pd.DataFrame:
answers = pd.DataFrame(index=self.index, columns=[])
for col in cols:
matrix = self.loc[:, col]
answers = answers.join(matrix)
return answers
def load_dataset(path=instance_path(), questions_file="questions-6435463884701696.json", answers_file="results-6668674686517248.json"):
with open(path / questions_file) as f:
questions = json.load(f)
with open(path / answers_file) as f:
answers = json.load(f)
df = ZefDataFrame([], columns=["name", "party", "constituency", "number", "age", "gender", "image", "description"])
for i, candidate in enumerate(answers['children']):
data = candidate.get("target_data", candidate.get("data", {}))
c_data = {
"name": data['name'],
"party": data['vaaliliitto'],
"number": data['no'],
"age": data['age'],
"gender": data['gender'],
"image": data['image'],
"description": data['text'],
"constituency": data['tiedekunta'],
}
df.loc[i] = c_data
for q in questions['children']:
col = q['title'].strip()
q_type = q['type']
if q_type == "question-free-text":
d_type = str
df._text_space.append(col)
elif q_type == "question-1d-diagram":
d_type = np.int
df._linear_space.append(col)
elif q_type == "question-sm-choice":
d_type = "object"
df._multiselect_space.append(col)
else:
logger.warning("Skipping unhandled question %s of type %s", col, q_type)
continue
df[col] = pd.Series(None, dtype=d_type)
for i, candidate in enumerate(answers['children']):
candidate_answers = candidate.get("target_values", {})
q_id = str(q['id'])
if q_id not in candidate_answers:
if q_type == "question-1d-diagram":
candidate_answers[q_id] = d_type(3)
elif q_type == "question-sm-choice":
candidate_answers[q_id] = []
else:
logger.debug("Candidate has not answered question %s", q_id)
continue
if q_type == "question-sm-choice":
_ans = candidate_answers[q_id]
choice_ans = _ans.split(";") if _ans else []
df.at[i, col] = choice_ans
else:
df.at[i, col] = d_type(candidate_answers[q_id])
return df
| python |
The U.K.'s intelligence agencies are planning to install 'black box'-style surveillance devices in the country's telecommunications infrastructure to monitor the U.K.'s online activity.
According to lawmakers in the country's capital [PDF], these devices will rely on deep packet inspection—a technique that has been criticized repeatedly by online activists and citizens alike—as part of the government's efforts to increasingly monitor British Web.
Such techniques will allow U.K. law enforcement agencies to log the details of almost everything that citizens' visit and access online, including Web site domain names and even details of Skype calls.
Jonathan Evans, the head of Britain's domestic intelligence service MI5, said in the U.K. parliamentary Intelligence and Security Committee's report [PDF] that, "access to communications data of one sort or another is very important indeed."
As a result, the committee noted that existing laws "do not cover the problems of emerging technology," and that there should be a "new approach."
One of the more viable techniques suggested by the committee was using legislation to "include the ability to instruct [communications data providers] to capture third-party content traversing their networks using technology such as Deep Packet Inspection."
Providers of communications data—such as Internet and broadband providers, and landline and mobile phone companies—said in the report that they "must have a legal foundation to retain data," effectively ruling out any voluntary solutions as suggested by the report.
Communications data does not record the actual contents of the data, such as emails or the recordings of phone conversations, rather it includes all the details about everything that's sent and received online.
For instance, while the email addresses of senders and recipients, the contents of such emails will still require a court order to access. The time and date stamps of that email will be available, but a senior police or intelligence officer will have to authorise such access.
"Whilst legislation is not a perfect solution, we believe it is the best available option," the committee noted. And legislation it likely will be.
The report says:
The solution the Government is proposing is to agree with the UK CSPs that they would place ‘probes’ on their network(s) to collect the required CD as it traverses to the end user. This is known as Deep Packet Inspection (DPI) technology. The Committee took detailed evidence on this, focusing on the feasibility of the technology. We heard that DPI is certainly not a new technology, and is in use for commercial purposes already.
The committee also confirmed that BAE Systems Detica is the supplier of deep packet inspection technology to the U.K. government. Under current European data retention laws, deep packet inspection is not only legal, but also widely used by the private sector.
The 'black box' snooping devices would also be used to collect data from overseas companies, including U.S.-based service providers and social networks, such as Facebook, Google, and Twitter.
However, the committee noted that encryption would "simply render [deep packet inspection] pointless." Likely the most important part of the document was, unfortunately, redacted under U.K. secrecy laws:
heard that the Government has *** options in dealing with the challenge encryption poses:
unencrypted form.
collect residual, unencrypted communications data associated with a communication,
which – although of lesser volume – may nevertheless still be of intelligence value.
The government's plan to monitor and sift through citizen's communications data is part of efforts to combat terrorism and serious crime. But, the plans—which are currently on hold after the government's coalition partner dropped support for the bill—are still far from dead.
Nick Pickles, director of privacy at civil liberties group Big Brother Watch, told ZDNet:
Two expert Parliamentary committees have cast serious doubts on the claim that it is necessary for every person’s email, Web site browsing and social media activity needs to be logged and kept for one year.
The report recognises there are weaknesses in monitoring people suspected of wrongdoing. It is becoming increasingly difficult for Ministers to justify monitoring every member of the population instead of developing their ability to monitor people who are under suspicion.
Pickles also noted that the use of encryption among ordinary citizens will make Web monitoring increasingly futile.
"The report recognises for national security situations, alternatives are available and are being used. The committee also recognises the growing futility of the Home Office’s current approach given the increasing use of encryption."
"The draft Bill was a shambles and if any legislation is to allay the widespread concerns people have about an vast expansion in the power of the state to monitor every aspect of our lives it will need a fundamental and comprehensive re-write," Pickles added.
| english |
The latest beta/preview for Minecraft is here. Version 1. 20. 0. 25 has been released and brings a few changes to the title ahead of the Trails & Tales Update's official release. Betas and previews are exclusive to Bedrock, so they differ from pre-releases and snapshots that Java has routinely received. As Version 1. 20. 0. 25 is one of the final releases before the 1. 20 update, it is solely for bug fixes.
In fact, this is a pretty small patch that only fixes a few things that were bothering players. That said, it's worth noting version 1. 20. 0. 25 is one of the few betas/previews to receive the 1. 20 tag, which indicates that the update is on its way.
As the community prepares itself for the new update, Mojang is ramping down its releases. Here's what is in this one and how to download it.
First, Mojang has fixed an issue with the touchscreen world interaction when a non-default field of view was used in video settings. This was one of the primary complaints from the last update.
Secondly, players are no longer made to stop flying when forced into spaces without enough room to stand. That has been fixed in the latest patch.
Finally, there response to Mouse/Trackpad Input on Chromebooks with Bedrock has also been improved. This is a platform-specific change, so it won't affect the majority of the community.
Mojang wanted the community to note a few important things about the beta/preview:
- The work-in-progress versions can be unstable. They may not be representative of the final version quality and usually are not. This is a temporary version of the game, and it's best to keep that in mind.
- Minecraft Previews are only available on Xbox, Windows 10/11, and iOS right now.
- The beta version, however, is available on Android (Google Play Store).
Here's how you can download the preview:
- On iOS, you can opt into Minecraft Preview by visiting this website and then signing up on it.
- For Windows, anyone who already owns Bedrock or has a subscription to Xbox Game Pass Ultimate or Game Pass for PC can get it by visiting this website.
- Game Pass subscribers can also find the preview in the GAME PASS section of the Xbox app.
- On Xbox, anyone who owns Bedrock or has a subscription to Game Pass can search for Minecraft Preview in the store and click Install from there.
On Android, you can visit the Google Play Store. The page for Minecraft Pocket Edition has an opt-in section for the beta, and you can toggle it on or off to either get that version or stop using it. Android is the only platform left that still uses the beta version rather than the preview.
For the full patch notes, check out the official Mojang website. Keep an eye out as the Minecraft 1. 20 update is likely to be released soon. | english |
{
"name": "TAAG Finance",
"symbol": "TAAG",
"address": "0xc8D9EC2a57Db57Eb104F339037B23E6cAd381364",
"decimals": 18,
"dharmaVerificationStatus": "UNVERIFIED"
} | json |
Soumyajit Ghosh, one of India's top Table Tennis players, has been accused of raping an 18-year-old, after a case was filed against him at a police station in Barasat, near Kolkata.
With this rape charge, Soumyajit's participation in the upcoming Commonwealth Games has also come under a shadow of a doubt.
An 18-year-old girl is said to have filed a case against the top paddler at the Barasat Women's Police Station.
After these charges surfaced, the Indian Olympic Association (IOA) is now set to decide on what action to take against the 24-year-old.
In a statement, Ghosh accepted that these charges have been laid against him. He said, "She has been taking money from me for around a year now. I have paid her more than Rs 1 lakh now. I've got all the receipts for these payments. I have also borne the medical expenses of one of her relatives, the documents of which, are in my possession. "
Ghosh further went on to admit that he had introduced her as his fiancee after winning he Arjuna Award two years back, but got tired of her for blackmailing him.
Barasat Police confirmed that it has received a complaint against Ghosh, and are looking into the matter.
Ghosh has been one of the most promising players in the indian table tennis scene. In fact, he became the youngest TT player to win the National Championships, beating veteran paddler and Indian table tennis legend Achanta Sharath Kamal. His exploits in that tournament certainly propelled him up the Indian TT hierarchy.
He followed that up with a mixed doubles gold medal at the Lufthansa Games in Germany, before winning the ITTF Challenge Seamaster Chile Open men's singles title, defeating countryman Anthony Amalraj in the summit clash.
This latest development comes as a huge blow for Ghosh, who was one of India's brightest prospects in table tennis at the Commonwealth Games. | english |
// Copyright 2020-2021 The Datafuse Authors.
//
// SPDX-License-Identifier: Apache-2.0.
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
async fn test_setting_interpreter() -> anyhow::Result<()> {
use common_planners::*;
use futures::stream::StreamExt;
use pretty_assertions::assert_eq;
use crate::interpreters::*;
use crate::sql::*;
let ctx = crate::tests::try_create_context()?;
if let PlanNode::SetVariable(plan) =
PlanParser::create(ctx.clone()).build_from_sql("set max_block_size=1")?
{
let executor = SettingInterpreter::try_create(ctx, plan)?;
assert_eq!(executor.name(), "SettingInterpreter");
let mut stream = executor.execute().await?;
while let Some(_block) = stream.next().await {}
} else {
assert!(false)
}
Ok(())
}
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
async fn test_setting_interpreter_error() -> anyhow::Result<()> {
use common_planners::*;
use pretty_assertions::assert_eq;
use crate::interpreters::*;
use crate::sql::*;
let ctx = crate::tests::try_create_context()?;
if let PlanNode::SetVariable(plan) =
PlanParser::create(ctx.clone()).build_from_sql("set xx=1")?
{
let executor = SettingInterpreter::try_create(ctx, plan)?;
if let Err(e) = executor.execute().await {
let expect = "Code: 20, displayText = Unknown variable: \"xx\".";
assert_eq!(expect, format!("{}", e));
} else {
assert!(false);
}
}
Ok(())
}
| rust |
package TP5;
@Utility
final public class UtilityClass {
private UtilityClass() {}
public static void m1() { }
public static void m2() { }
}
| java |
{
"user": "bspride",
"repos": 1,
"login": "bspride",
"id": 1430124,
"avatar_url": "https://avatars0.githubusercontent.com/u/1430124?v=3",
"url": "https://api.github.com/users/bspride",
"html_url": "https://github.com/bspride",
"followers_url": "https://api.github.com/users/bspride/followers",
"following_url": "https://api.github.com/users/bspride/following{/other_user}",
"gists_url": "https://api.github.com/users/bspride/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bspride/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bspride/subscriptions",
"organizations_url": "https://api.github.com/users/bspride/orgs",
"repos_url": "https://api.github.com/users/bspride/repos",
"events_url": "https://api.github.com/users/bspride/events{/privacy}",
"received_events_url": "https://api.github.com/users/bspride/received_events",
"type": "User",
"site_admin": false,
"name": "<NAME>",
"company": null,
"blog": null,
"location": "United States",
"email": null,
"hireable": null,
"bio": null,
"public_repos": 7,
"public_gists": 0,
"followers": 0,
"following": 0,
"created_at": "2012-02-12T02:54:52Z",
"updated_at": "2017-01-26T03:50:31Z"
} | json |
<filename>src/pymor/discretizers/builtin/grids/tria.py
# This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2020 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import numpy as np
from pymor.core.cache import cached
from pymor.discretizers.builtin.grids.interfaces import AffineGridWithOrthogonalCenters
from pymor.discretizers.builtin.grids.referenceelements import triangle
class TriaGrid(AffineGridWithOrthogonalCenters):
r"""Basic implementation of a triangular grid on a rectangular domain.
The global face, edge and vertex indices are given as follows ::
6---------10----------7---------11----------8
| \ / | \ / |
| 22 10 18 | 23 11 19 |
| \ / | \ / |
3 14 11 6 4 15 12 7 5
| / \ | / \ |
| 14 2 26 | 15 3 27 |
| / \ | / \ |
3----------8----------4----------9----------5
| \ / | \ / |
| 20 8 16 | 21 9 17 |
| \ / | \ / |
0 12 9 4 1 13 10 5 2
| / \ | / \ |
| 12 0 24 | 13 1 25 |
| / \ | / \ |
0----------6----------1----------7----------2
Parameters
----------
num_intervals
Tuple `(n0, n1)` determining a grid with `n0` x `n1` codim-0 entities.
domain
Tuple `(ll, ur)` where `ll` defines the lower left and `ur` the upper right
corner of the domain.
identify_left_right
If `True`, the left and right boundaries are identified, i.e. the left-most
codim-0 entities become neighbors of the right-most codim-0 entities.
identify_bottom_top
If `True`, the bottom and top boundaries are identified, i.e. the bottom-most
codim-0 entities become neighbors of the top-most codim-0 entities.
"""
dim = 2
reference_element = triangle
def __init__(self, num_intervals=(2, 2), domain=([0, 0], [1, 1]),
identify_left_right=False, identify_bottom_top=False):
if identify_left_right:
assert num_intervals[0] > 1
if identify_bottom_top:
assert num_intervals[1] > 1
domain = np.array(domain)
self.__auto_init(locals())
self.x0_num_intervals = x0_num_intervals = num_intervals[0]
self.x1_num_intervals = x1_num_intervals = num_intervals[1]
self.x0_range = self.domain[:, 0]
self.x1_range = self.domain[:, 1]
self.x0_width = self.x0_range[1] - self.x0_range[0]
self.x1_width = self.x1_range[1] - self.x1_range[0]
self.x0_diameter = self.x0_width / x0_num_intervals
self.x1_diameter = self.x1_width / x1_num_intervals
n_elements = x0_num_intervals * x1_num_intervals * 4
# TOPOLOGY
n_outer_vertices = (x0_num_intervals + 1 - identify_left_right) * (x1_num_intervals + 1 - identify_bottom_top)
self.__sizes = (n_elements,
((x0_num_intervals + 1 - identify_left_right) * x1_num_intervals
+ (x1_num_intervals + 1 - identify_bottom_top) * x0_num_intervals
+ n_elements),
n_outer_vertices + int(n_elements / 4))
# calculate subentities -- codim-1
V_EDGE_H_INDICES = np.arange(x0_num_intervals + 1, dtype=np.int32)
if identify_left_right:
V_EDGE_H_INDICES[-1] = 0
V_EDGE_V_INDICES = np.arange(x1_num_intervals, dtype=np.int32) * (x0_num_intervals + 1 - identify_left_right)
V_EDGE_INDICES = V_EDGE_V_INDICES[:, np.newaxis] + V_EDGE_H_INDICES
num_v_edges = x1_num_intervals * (x0_num_intervals + 1 - identify_left_right)
H_EDGE_H_INDICES = np.arange(x0_num_intervals, dtype=np.int32)
H_EDGE_V_INDICES = np.arange(x1_num_intervals + 1, dtype=np.int32)
if identify_bottom_top:
H_EDGE_V_INDICES[-1] = 0
H_EDGE_V_INDICES *= x0_num_intervals
H_EDGE_INDICES = H_EDGE_V_INDICES[:, np.newaxis] + H_EDGE_H_INDICES + num_v_edges
num_h_edges = x0_num_intervals * (x1_num_intervals + 1 - identify_bottom_top)
D_EDGE_LL_INDICES = np.arange(n_elements / 4, dtype=np.int32) + (num_v_edges + num_h_edges)
D_EDGE_UR_INDICES = D_EDGE_LL_INDICES + int(n_elements / 4)
D_EDGE_UL_INDICES = D_EDGE_UR_INDICES + int(n_elements / 4)
D_EDGE_LR_INDICES = D_EDGE_UL_INDICES + int(n_elements / 4)
E0 = np.array([H_EDGE_INDICES[:-1, :].ravel(),
D_EDGE_LR_INDICES,
D_EDGE_LL_INDICES]).T
E1 = np.array([V_EDGE_INDICES[:, 1:].ravel(),
D_EDGE_UR_INDICES,
D_EDGE_LR_INDICES]).T
E2 = np.array([H_EDGE_INDICES[1:, :].ravel(),
D_EDGE_UL_INDICES,
D_EDGE_UR_INDICES]).T
E3 = np.array([V_EDGE_INDICES[:, :-1].ravel(),
D_EDGE_LL_INDICES,
D_EDGE_UL_INDICES]).T
codim1_subentities = np.vstack((E0, E1, E2, E3))
# calculate subentities -- codim-2
VERTEX_H_INDICES = np.arange(x0_num_intervals + 1, dtype=np.int32)
if identify_left_right:
VERTEX_H_INDICES[-1] = 0
VERTEX_V_INDICES = np.arange(x1_num_intervals + 1, dtype=np.int32)
if identify_bottom_top:
VERTEX_V_INDICES[-1] = 0
VERTEX_V_INDICES *= x0_num_intervals + 1 - identify_left_right
VERTEX_NUMERS = VERTEX_V_INDICES[:, np.newaxis] + VERTEX_H_INDICES
VERTEX_CENTER_NUMBERS = np.arange(x0_num_intervals * x1_num_intervals, dtype=np.int32) + n_outer_vertices
V0 = np.array([VERTEX_CENTER_NUMBERS,
VERTEX_NUMERS[:-1, :-1].ravel(),
VERTEX_NUMERS[:-1, 1:].ravel()]).T
V1 = np.array([VERTEX_CENTER_NUMBERS,
VERTEX_NUMERS[:-1, 1:].ravel(),
VERTEX_NUMERS[1:, 1:].ravel()]).T
V2 = np.array([VERTEX_CENTER_NUMBERS,
VERTEX_NUMERS[1:, 1:].ravel(),
VERTEX_NUMERS[1:, :-1].ravel()]).T
V3 = np.array([VERTEX_CENTER_NUMBERS,
VERTEX_NUMERS[1:, :-1].ravel(),
VERTEX_NUMERS[:-1, :-1].ravel()]).T
codim2_subentities = np.vstack((V0, V1, V2, V3))
self.__subentities = (codim1_subentities, codim2_subentities)
# GEOMETRY
# embeddings
x0_shifts = np.arange(x0_num_intervals) * self.x0_diameter + (self.x0_range[0] + 0.5 * self.x0_diameter)
x1_shifts = np.arange(x1_num_intervals) * self.x1_diameter + (self.x1_range[0] + 0.5 * self.x1_diameter)
B = np.tile(np.array(np.meshgrid(x0_shifts, x1_shifts)).reshape((2, -1)).T,
(4, 1))
ROT45 = np.array([[1./np.sqrt(2.), -1./np.sqrt(2.)],
[1./np.sqrt(2.), 1./np.sqrt(2.)]])
ROT135 = np.array([[-1./np.sqrt(2.), -1./np.sqrt(2.)],
[1./np.sqrt(2.), -1./np.sqrt(2.)]])
ROT225 = np.array([[-1./np.sqrt(2.), 1./np.sqrt(2.)],
[-1./np.sqrt(2.), -1./np.sqrt(2.)]])
ROT315 = np.array([[1./np.sqrt(2.), 1./np.sqrt(2.)],
[-1./np.sqrt(2.), 1./np.sqrt(2.)]])
SCAL = np.diag([self.x0_diameter / np.sqrt(2), self.x1_diameter / np.sqrt(2)])
A0 = np.tile(SCAL.dot(ROT225), (int(n_elements / 4), 1, 1))
A1 = np.tile(SCAL.dot(ROT315), (int(n_elements / 4), 1, 1))
A2 = np.tile(SCAL.dot(ROT45), (int(n_elements / 4), 1, 1))
A3 = np.tile(SCAL.dot(ROT135), (int(n_elements / 4), 1, 1))
A = np.vstack((A0, A1, A2, A3))
self.__embeddings = (A, B)
def __reduce__(self):
return (TriaGrid,
(self.num_intervals, self.domain, self.identify_left_right, self.identify_bottom_top))
def __str__(self):
return (f'Tria-Grid on domain '
f'[{self.x0_range[0]},{self.x0_range[1]}] x [{self.x1_range[0]},{self.x1_range[1]}]\n'
f'x0-intervals: {self.x0_num_intervals}, x1-intervals: {self.x1_num_intervals}\n'
f'elements: {self.size(0)}, edges: {self.size(1)}, vertices: {self.size(2)}')
def size(self, codim=0):
assert 0 <= codim <= 2, 'Invalid codimension'
return self.__sizes[codim]
def subentities(self, codim, subentity_codim):
assert 0 <= codim <= 2, 'Invalid codimension'
assert codim <= subentity_codim <= 2, 'Invalid subentity codimension'
if codim == 0:
if subentity_codim == 0:
return np.arange(self.size(0), dtype='int32')[:, np.newaxis]
else:
return self.__subentities[subentity_codim - 1]
else:
return super().subentities(codim, subentity_codim)
def embeddings(self, codim=0):
if codim == 0:
return self.__embeddings
else:
return super().embeddings(codim)
def bounding_box(self):
return np.array(self.domain)
@cached
def orthogonal_centers(self):
embeddings = self.embeddings(0)
ne4 = len(embeddings[0]) // 4
if self.x0_diameter > self.x1_diameter:
x0_fac = (self.x1_diameter / 2) ** 2 / (3 * (self.x0_diameter / 2) ** 2)
x1_fac = 1./3.
else:
x1_fac = (self.x0_diameter / 2) ** 2 / (3 * (self.x1_diameter / 2) ** 2)
x0_fac = 1./3.
C0 = embeddings[0][:ne4].dot(np.array([x1_fac, x1_fac])) + embeddings[1][:ne4]
C1 = embeddings[0][ne4:2*ne4].dot(np.array([x0_fac, x0_fac])) + embeddings[1][ne4:2*ne4]
C2 = embeddings[0][2*ne4:3*ne4].dot(np.array([x1_fac, x1_fac])) + embeddings[1][2*ne4:3*ne4]
C3 = embeddings[0][3*ne4:4*ne4].dot(np.array([x0_fac, x0_fac])) + embeddings[1][3*ne4:4*ne4]
return np.concatenate((C0, C1, C2, C3), axis=0)
def visualize(self, U, codim=2, **kwargs):
"""Visualize scalar data associated to the grid as a patch plot.
Parameters
----------
U
|NumPy array| of the data to visualize. If `U.dim == 2 and len(U) > 1`, the
data is visualized as a time series of plots. Alternatively, a tuple of
|Numpy arrays| can be provided, in which case a subplot is created for
each entry of the tuple. The lengths of all arrays have to agree.
codim
The codimension of the entities the data in `U` is attached to (either 0 or 2).
kwargs
See :func:`~pymor.discretizers.builtin.gui.qt.visualize_patch`
"""
from pymor.discretizers.builtin.gui.qt import visualize_patch
from pymor.vectorarrays.interface import VectorArray
from pymor.vectorarrays.numpy import NumpyVectorSpace, NumpyVectorArray
if isinstance(U, (np.ndarray, VectorArray)):
U = (U,)
assert all(isinstance(u, (np.ndarray, VectorArray)) for u in U)
U = tuple(NumpyVectorSpace.make_array(u) if isinstance(u, np.ndarray) else
u if isinstance(u, NumpyVectorArray) else
NumpyVectorSpace.make_array(u.to_numpy())
for u in U)
bounding_box = kwargs.pop('bounding_box', self.domain)
visualize_patch(self, U, codim=codim, bounding_box=bounding_box, **kwargs)
| python |
<gh_stars>10-100
["animaxe","b-tree","combine-lists","crc","d3-array","d3-arrays","d3-financial-components","d3-jsnext","d3-no-global-export","d3-nogyp","d3-random","d3-util","d3zoompanbrushchart","dependency-parser","droplet-editor","enb-bem-techs","enmeaten","etag","fast-diff","fork-bone","fuck-shit-up","get-w2v-google-news-neighbors","giant-steps-edm-note-suggest","graphlib","grlg","lindenmayer","locket","mishear","nodejs-cipher-performance","nodejs-hash-performance","numbers","ordered-set","parunpar","pouchdb-adapter-fs","probable","queue-async","regl","reorder.js","rhaboo","stread","tablenest","topaz","yjs","ykd3"] | json |
package com.morethanheroic.swords.forum.domain;
import com.morethanheroic.swords.user.domain.UserEntity;
import lombok.Builder;
import lombok.Getter;
import java.util.Date;
@Builder
@Getter
public class ForumCommentEntity {
private final int id;
private final String content;
private final long postDate;
private final UserEntity postUser;
private final ForumCommentEntity answerToComment;
public boolean isAnswer() {
return answerToComment != null;
}
}
| java |
MIAMI GARDENS - Brock Glenn is ready for his moment.
But that doesn't mean the true freshman Florida State football quarterback is not shocked by his circumstances to how he rose to the starting quarterback role in the Orange Bowl for No. 5 FSU (13-0) against No. 6 Georgia (12-1) at 4 p.m. Saturday at here at Hard Rock Stadium.
In late November, starting quarterback Jordan Travis went down with a broken leg against North Alabama. Tate Rodemaker started against rival Florida but suffered a concussion during the game and missed the ACC Championship Game, paving the door for Glenn's first career start.
Rodemaker was expected to reclaim the starting role for the Orange Bowl, but he decided to opt out and enter the NCAA Transfer Portal on Christmas Day Monday.
Glenn will now make his second career start in the bowl game, against the two-time defending champion Georgia.
“When I first started, if you would have told me this is what happened to this story, I wouldn't have believed you,” Glenn said at his availability ahead of the game Wednesday at Le Méridien Dania Beach at Fort Lauderdale Airport.
Despite the change in quarterbacks and some struggles in his first career start, Glenn has earned the trust of his teammates.
"Man, Brock has been a worker since he got here. He's come in and worked hard," offensive lineman D'Mitri Emmanuel said. "Even when Jordan was here. Brock used to sit behind Jordan ready to study and to see how you see it is on the field, even off the field. Ultimate confidence in him and that he's going to go out there and do his thing."
Georgia players are aware of the quarterback dynamics for FSU. But they aren't ready to discount the Seminoles.
The Bulldogs have the 10th-best defense in the country, allowing an average of 295.2 yards per game and 4.83 yards per play. They are ready to challenge Glenn.
"We feel that every player is playing is a great player from no they don't get to that position for no reason," Georgia linebacker Jalon Walker said. "So we don't really take who's playing and this is a freshman playing as a big concern. We just care about the winning goal of winning, so I feel like every player that's playing in this game deserves to play.
The 6-foot-2, four-star prospect was the No. 13 quarterback nationally and the No. 7 overall prospect in Tennessee by 247Sports in the 2023 recruiting class. He flipped to FSU after being an Ohio State commit.
Glenn competed with Rodemaker during the spring and fall camps for the backup role behind Travis. During the preseason, his coaches constantly praised how the true freshman's maturity made his transition to college smooth.
During his first career appearance against Southern Miss, Glenn did not attempt a pass and came out after just one series due to a thumb injury for which he required surgery.
Glenn proceeded to miss the next six weeks and lost development time, as a result.
"Oh, yeah, there's there's definitely an effect to some point," Glenn said if the injury impacted his development. "Just not getting the physical reps for about six weeks or so.
"But during that whole time I was I was staying locked down mentally. So I was able to take my mental game to the next level when that happened. Although I didn't get the physical reps helped me mentally for sure."
Offensive coordinator Alex Atkins agreed with Glenn about the development of his mental game.
He credited Glenn for being ahead when he arrived in Tallahassee.
"Most of the time you get young quarterbacks, especially him, like they have a pattern of how they kind of prepare they have like a unique like, almost like kickers, they have their little system," Atkins said.
"But what I liked about Brock was he came in understanding that whatever my system is, I got to amp it up 100,000 times. So he didn't wait. He wasn't waiting for his turn. He was trying to keep the door down and make sure when it was time, we actually even considered him to be a guy who could lead us in the future."
His first career start did not go how Glenn expected.
He completed 8 of 21 passes for 55 yards, was sacked four times and finished with a 12.8 QB rating in the ACC Championship Game.
"There's a lot to learn from. And I think that's what football is all about. You'll never be perfect in football and there's always a way to get better," Glenn said.
"There's always stuff you can do to improve. So just going back and watching the game film and seeing what I could have done differently and how I read this and has helped tremendously.
Glenn quickly learned that 'game speed' and 'practice speed' are two different things.
"Yes, it's a lot different. It's a it's a little faster, for sure. But practice does a great job of preparing us. The coaches do a great job then I mean, I think we have some of the best coaches in the country especially preparing us for a game day," Glenn said.
This time around, Glenn will be without his top offensive weapons, with running backs Trey Benson and Lawrance Toafili, as well as wide receivers Keon Coleman and Johnny Wilson and tight end Jaheim Bell all opting out or out due to injury.
His teammates have seen enough in practice to know what he is capable of.
They feel confident he can help them finish the season perfect at 14-0.
"It's a ton of growth this year and especially in the past few weeks," tight end Kyle Morlock said of Glenn. "For him to get out there and play and then the Louisville game was huge for him, I think to get the first game jitters out and to just get comfortable back there, but the past few weeks have been really huge for him.
Luke Kromenhoek - a 4-star recruit in the 2024 class - signed with FSU last Wednesday. For the two Orange Bowl practices open to the media on Tuesday and Wednesday, he was among the QBs taking snaps for the Seminoles.
Kromenhoek has been committed to FSU since March 26, 2022. Since committing, he has made at least 15 trips to Tallahassee and just one to another school [Penn State on April 7], even while offers from other schools continued to pour in and he rose in recruiting rankings.
"It was as a recruit, they go a little bit crazier than I want you to get on the roster. Now people talk about how small you look and do you know what you're doing. So I think that I'm excited because we believed in Luke before he started any high school game. He was committed to Florida State before he started his first game so we knew what he was going to become.
"So that credits the evaluation, but it was awesome to see him out there with us."
Glenn, who was in Kromenhoek's shoes last season, is ready to show the freshman the ropes, as Travis did for him.
"He fits our quarterback room exceptionally well," Glenn said of Kromenhoek.
"He's a great guy, likes to have fun, but he's going to get serious when it's time to get serious. And that's how we all are in the quarterback room. We'd like to have a good time joking around and playing with each other. But when it's time to get serious we get serious and that's exactly how it is.
"I'm excited to I want to do the best that I can [to help him], how Jordan helped me and help him with the offense as well."
Who: No. 5 FSU (13-0) vs. No. 6 Georgia (12-1)
Reach Ehsan Kassim at ekassim@gannett.com or follow him on Twitter at @Ehsan_Kassim. You can also follow our coverage on Facebook (NoleSports), Instagram (tlhnolesports) and YouTube channel (NoleSportsTD).
No one covers the ‘Noles like the Tallahassee Democrat. Subscribe using the link at the top of the page and never miss a moment.
| english |
# ONF
**ONF** - небольшая, разнородная библиотека. [Лицензия](https://github.com/lelezard7/ONF/blob/main/LICENSE) ONF поощряет как коммерческое, так и некоммерческое использование.
Для работы ONF необходима поддержка C++17.
## Нумерация версий
Версия имеет вид `X.Y.Z` где: **X - major**, **Y - minor**, а **Z - patch**.
**Z** увеличивается при исправлении ошибок, внесении обратно совместимых изменений, оптимизации, добавлении поддержки новых платформ и т.д. Все изменения должны быть обратно совместимы и не добавлять новый функционал<sup>*1</sup>. Если добавление поддержки новых платформ или еще что-то требует добавление нового функционала, внесение этих изменений следует отложить до увеличения **X** или **Y**.
**Y** увеличивается при добавлении нового функционала. Также он может включать помимо добавления нового функционала и изменения уровня **Z**. Все изменения должны быть обратно совместимы.
**X** увеличивается при добавлении нового функционала который не является обратно совместимым. Он может включать помимо добавления нового функционала изменения уровня **Y** и **Z**.
Когда какой-то функционал устаревает, об этом будет сообщено в документации, а также будет выпущено промежуточное обновление предоставляющее новый функционал. Следующее обновление официально объявит отмеченный функционал устаревшим.
Пара дополнений:
- **X** старше **Y**, а **Y** старше **Z**.
- **X**, **Y** и **Z** всегда > 0.
- При увеличении значения старшего уровня, значения младших уровней должны быть сброшены в 0.
- Первая, дорелизная версия проекта, нумеруется как `0.0.0`. Первая релизная версия нумеруется как `1.0.0`.
- Версия должна содержать только цифры.
- Пакет изменений увеличивает соответствующий уровень версии на 1.
- Максимальное значение каждого уровня версии - 65535. При переходе этой границы, старший уровень должен быть увеличен на 1. Если уровень **X** достиг предела, то все (͡° ͜ʖ ͡°).
---
*\*1. Иногда исправление ошибок может подразумевать отсутствие обратной совместимости, а потому после публикации новой версии начинается отсчет 2-х дней. В течении этого периода можно вносить исправление ошибок которые не являются обратно совместимыми, но добавление нового функционала запрещено.*
*Пример: Новая версия опубликована 23.07.2021. Значит изменения можно вносить до 26.07.2021.*
| markdown |
---
title: "Internationalization Linting and Enforcement"
date: 2021-01-26T12:12:25-05:00
draft: false
---
## Translations View Linter and View Linter Full Report
Enroll includes a custom class, ViewTranslationsLinter, to lint view files and assure that no strings within .erb and .haml files are left untranslated. .slim files will be added in the near future. The ViewTranslationsLinter class will be run automatically on Github actions against any of your branch's files containing .html.erb files, with the following command:
```
bundle exec rake view_translations_linter:lint_git_difference_changed_lines
```
While the lint_git_difference_changed_lines rake task is best usd for your branch's individual filess, if you wish to view the status of translations for all of the views in the application, run the following rake task:
`
bundle exec rake view_translations_linter_report:run
`
It will return output with information such as:
`
For a total of 16 files in the ui_helpers directory:
There are a total of 1 views with translations both inside and outside erb missing.
There are a total of 2 views with translations outside erb missing.
There are a total of 0 views with translations inside erb missing.
There are a total of 13 views with all translations present.
`
## How Linting Works
The task will lint both strings *within* ERB tags, and outside of them.
Example 1:
```
# Within ERB Tags
<%= "This string would fail the check" %>
# Change this and add a corresponding translation
<%= l10n('string_check_fail_message') %>
```
Example 2:
```
# Outside ERB Tags
<p>"This would fail the check for outside ERB tags" %>
<p> <%= l10n('string_check_fail_message') %>
```
Example 2:
```
# Within ERB Tags
<%= link_to l10n('Back to Messages', main_app.exchanges_bulk_notices_path, class: 'btn btn-alt-blue' %>
# Change it to this and add translation
<%= link_to l10n('back_to_messages'), main_app.exchanges_bulk_notices_path, class: 'btn btn-alt-blue' %>
```
## Technical Details
The ViewTranslationsLinter, ViewTranslationsLinterHelper, and ViewTranslationsLinterReport live in the lib/custom_linters/translations/ directory. The approved strings are located in the config/translations_linter/approved_translation_strings.yml directory.
## When My Build Breaks
First, take a look at the output for the strings that didn't pass the check.
Next, check the "Allow List." We include an "Allow List" of approved strings in an ERB file config/translations_linter/approved_translation_strings.yml for strings that should be allowed through. Please do *not* add to this YML without lead dev approval. Here are the kinds of strings we allow and what exactly they allow:
| String Type Description | String List |
| ------------------------------------- | ----------- |
| HTML Elements/Helper Methods | "l10n", "I18n", "content_for", "render", "pundit_span", "number_to_currency", "format_policy_purchase_date", "format_policy_purchase_time", "display_carrier_logo", "enrollment_coverage_end" |
| Non-Word Numerical Strings | "coverage_year", "effective_on", "coverage_terminated_on", "hired_on", "end_of_month", "start_of_month", "terminated_on", "active_year", "dob" |
| Strings Related to Proper Names | "name", "first_name", "last_name", "full_name","title" |
| Record Identifier | "hbx_id", "hbx_enrollment_id","hios_id" |
| Non Text Method Calls | ".hios_id",".product_id" |
Please *do not* add any strings to the allow_list without lead dev approval.
| markdown |
:root {
--main-font: 'Roboto', 'san-serif';
--bg-dark: #333333;
--text-on-dark: #CCCCCC;
}
body, div, p {
margin: 0;
padding: 0;
} | css |
.table {
overflow-y: scroll;
overflow-x: hidden;
padding: 1em;
box-sizing: border-box;
height: 100%;
}
| css |
Passion is much talked about today, be it in conferences or leadership courses. People harp on being passionate as the secret of success. Truth be said, there is nothing wrong with being passionate about your dream. However, what has been noticed over time is that many people are passionate but remain unsuccessful in their plans for success.
This means that your passion is not sufficient enough if you want to be successful. This can sound strange to some people, but that is a fact, and this article will give more explanation on why passion alone is not enough.
A close look at history will see so many people with great passion who recorded either failure or not enough success as per the usual standards. In the art world, we see Vincent Van Gogh as a perfect example. This Dutch painter holds the record as one of the most prolific painters in history, but he made almost nothing reasonable from the sale. It was long after he died that his paintings were sold for great fortunes. I understand that the metrics of success vary from person to person, and I am not passing judgements on anyone’s life. But I still feel, if Van Gogh had made a great amount of money from his sale and channelised his passion the right way, he wouldn’t have suffered from mental health disorders and may have even painted more, which would have been a delight for me – to see as much art as possible from one of the greatest artists in the world.
Is Passion Alone Enough?
Some wonder why their business is not growing even with relentless passion. Some managers are at a loss as to why their workers and subordinates are not passionate about their ventures. On the other hand are those who are fed up because they are not getting the success they wish for even after pouring all the passionate energy they have. In all these people, there is a common thread: they all have the wrong perspective of what passion is.
Please think of the individual who got fed up because they could not record the desired success even after putting in a lot of effort and passion. Not all hope is lost as some steps can be taken to address this matter. There is nothing wrong with having dreams and passions of your own, but your end goal should be a success and nothing else. The first thing you need to start doing is to begin to pay attention to the comments that people leave concerning your visions.
You should also assess yourself to know if you get swayed too easily by public opinion. Once you have sorted that, the next thing you should prepare is a plan of action. It has been shown repeatedly that goals or aims that you write down on paper are the ones that you are most likely going to achieve.
Anyone can have a passion, but not everyone can have a passion that is backed by goals. An emphasis on its own is almost worthless. You will need to build upon that passion before it can become anything reasonable. Passion itself needs to be followed by concentration and a concrete plan that will allow you to realize what you have been missing and where you also need to make the necessary adjustments. With your plan, it must be one that covers all the aspects of the dream you have in mind.
Your progress is dependent on your plan, so it will be nice if you can devote some time to drawing an excellent one. A good plan is like a road map for you, and it is what will guide you every step of the way. With a plan, you are going to have a very clear vision of exactly what you are doing. Even more important is the fact that you are going to be able to keep track of what is going on.
This is not what many will want to hear, but it is real for those interested in success. The truth here is that there are some instances where your passion will not be relevant. There are some other conditions in which you may even have to drop your passion aside and face reality.
Motivational speakers are all over today but what they peddle in most cases is unrealistic. You have to be in tune with reality and what that means is that sometimes, you will need to drop the cloak of passion. You must remain proactive if you are to achieve the goals you have set out for yourself, and anything less than that will not give you the desired results.
Multiple Factors influence success.
To succeed in any endeavour in life, you need to know that several factors will be relevant. Passion is just one of these ‘ingredients,’ and that is precisely why it cannot launch you to success solely on its own. Other factors include resilience, determination, focus, discipline, optimism, and many more. What will get you the success that you dream of at the end of the day is an effective combination of these factors. | english |
<reponame>stephensolis/modmap-generator-cpp<filename>libkameris/distances/ssim.hpp
#ifndef _LIBKAMERIS_DISTANCES_SSIM_
#define _LIBKAMERIS_DISTANCES_SSIM_
#include <cstddef>
#include <cstdlib>
#include <memory>
#include <stdexcept>
#include "../utils/matrix_vector_adapters.hpp"
namespace kameris {
namespace ssim_impl {
template <typename T>
struct ssim_constants {
//1D Gaussian, radius = 5, sigma = 1.5
static constexpr T gaussian_kernel[11] = {0.0019501069320213926, 0.00902231675565504, 0.034029455396572636,
0.09976753114651542, 0.21139395521260004, 0.28767326911327096, 0.21139395521260004, 0.09976753114651542,
0.034029455396572636, 0.00902231675565504, 0.0019501069320213926};
};
template <typename T>
constexpr T ssim_constants<T>::gaussian_kernel[11]; // NOLINT
template <typename Ret = double, typename Img>
inline Ret correlate_one_horiz_el(const Img &img, size_t yIndex, size_t xIndex) {
Ret result = 0;
for (size_t i = 0; i < 11; ++i) {
result += ssim_constants<Ret>::gaussian_kernel[i] * img(yIndex, xIndex + i);
}
return result;
}
template <typename Ret = double, typename Img>
inline Ret correlate_one_vert_el(const Img &img, size_t yIndex, size_t xIndex) {
Ret result = 0;
for (size_t i = 0; i < 11; ++i) {
result += ssim_constants<Ret>::gaussian_kernel[i] * img(yIndex + i, xIndex);
}
return result;
}
template <typename Ret = double, typename Img1, typename Img2>
inline Ret correlate_two_horiz_el(const Img1 &img1, const Img2 &img2, size_t yIndex, size_t xIndex) {
Ret result = 0;
for (size_t i = 0; i < 11; ++i) {
result += ssim_constants<Ret>::gaussian_kernel[i] * img1(yIndex, xIndex + i) * img2(yIndex, xIndex + i);
}
return result;
}
}
template <typename Ret = double, typename Img1, typename Img2>
inline Ret ssim(const Img1 &img1, const Img2 &img2) {
if (img1.rows() != img2.rows() || img1.cols() != img2.cols()) {
throw std::invalid_argument("Matrices must have the same dimensions");
}
if (img1.rows() < 11 || img1.cols() < 11) {
throw std::invalid_argument("Matrices must be at least 11x11");
}
size_t horiz_data_size = img1.rows() * (img1.cols() - 10);
std::unique_ptr<Ret[]> horiz_data(new Ret[5 * horiz_data_size]);
MatrixAdapter<Ret> img1_horiz = make_matrix_adapter(&horiz_data[0], img1.rows(), img1.cols() - 10);
MatrixAdapter<Ret> img2_horiz =
make_matrix_adapter(&horiz_data[horiz_data_size], img1.rows(), img1.cols() - 10);
MatrixAdapter<Ret> img11_horiz =
make_matrix_adapter(&horiz_data[2 * horiz_data_size], img1.rows(), img1.cols() - 10);
MatrixAdapter<Ret> img22_horiz =
make_matrix_adapter(&horiz_data[3 * horiz_data_size], img1.rows(), img1.cols() - 10);
MatrixAdapter<Ret> img12_horiz =
make_matrix_adapter(&horiz_data[4 * horiz_data_size], img1.rows(), img1.cols() - 10);
for (size_t i = 0; i < img1.rows(); ++i) {
for (size_t j = 0; j < size_t(img1.cols() - 10); ++j) {
img1_horiz(i, j) = ssim_impl::correlate_one_horiz_el<Ret>(img1, i, j);
img2_horiz(i, j) = ssim_impl::correlate_one_horiz_el<Ret>(img2, i, j);
img11_horiz(i, j) = ssim_impl::correlate_two_horiz_el<Ret>(img1, img1, i, j);
img22_horiz(i, j) = ssim_impl::correlate_two_horiz_el<Ret>(img2, img2, i, j);
img12_horiz(i, j) = ssim_impl::correlate_two_horiz_el<Ret>(img1, img2, i, j);
}
}
Ret result = 0;
for (size_t i = 0; i < size_t(img1.rows() - 10); ++i) {
for (size_t j = 0; j < size_t(img1.cols() - 10); ++j) {
Ret m1 = ssim_impl::correlate_one_vert_el<Ret>(img1_horiz, i, j);
Ret m2 = ssim_impl::correlate_one_vert_el<Ret>(img2_horiz, i, j);
Ret m1sq = m1 * m1, m2sq = m2 * m2, m1m2 = m1 * m2;
Ret sigma1sq = ssim_impl::correlate_one_vert_el<Ret>(img11_horiz, i, j) - m1sq;
Ret sigma2sq = ssim_impl::correlate_one_vert_el<Ret>(img22_horiz, i, j) - m2sq;
Ret sigma12 = ssim_impl::correlate_one_vert_el<Ret>(img12_horiz, i, j) - m1m2;
result += ((0.0001 + (2 * m1m2)) * (0.0009 + (2 * sigma12))) /
((0.0001 + m1sq + m2sq) * (0.0009 + sigma1sq + sigma2sq));
}
}
return result / ((img1.rows() - 10) * (img1.cols() - 10));
}
}
#endif
| cpp |
<reponame>strassek/chromiumos-platform2<filename>chaps/opencryptoki_importer_test.cc
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chaps/opencryptoki_importer.h"
#include <stdlib.h>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include <base/files/scoped_temp_dir.h>
#include <base/logging.h>
#include <base/stl_util.h>
#include <base/strings/stringprintf.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "chaps/chaps_factory_mock.h"
#include "chaps/object_mock.h"
#include "chaps/object_pool_mock.h"
#include "chaps/tpm_utility_mock.h"
using base::FilePath;
using std::map;
using std::string;
using std::vector;
using testing::_;
using testing::AnyNumber;
using testing::DoAll;
using testing::Invoke;
using testing::Return;
using testing::SetArgPointee;
using testing::Values;
namespace chaps {
const unsigned char kSampleMasterKeyEncrypted[] = {
80, 118, 191, 150, 143, 171, 162, 61, 89, 32, 95, 219, 44, 244, 51,
84, 117, 228, 36, 225, 240, 122, 234, 92, 182, 224, 133, 238, 100, 18,
116, 130, 166, 177, 7, 103, 223, 122, 112, 136, 126, 30, 191, 253, 137,
85, 70, 187, 220, 137, 248, 155, 89, 152, 113, 153, 113, 48, 59, 148,
246, 114, 146, 13, 86, 254, 227, 3, 229, 70, 247, 165, 101, 76, 3,
58, 134, 230, 84, 113, 94, 226, 134, 130, 34, 100, 56, 157, 5, 255,
127, 180, 147, 56, 43, 233, 32, 254, 209, 52, 41, 48, 15, 127, 110,
187, 183, 254, 123, 20, 182, 153, 107, 192, 136, 229, 72, 243, 38, 238,
155, 59, 216, 15, 17, 72, 39, 209, 196, 66, 53, 140, 236, 132, 19,
69, 58, 107, 103, 22, 19, 70, 175, 35, 126, 16, 56, 132, 150, 89,
182, 12, 3, 166, 206, 160, 194, 12, 250, 211, 141, 73, 109, 83, 144,
253, 166, 71, 109, 219, 143, 202, 237, 89, 185, 136, 249, 104, 78, 68,
11, 169, 144, 194, 57, 140, 147, 104, 175, 229, 20, 223, 98, 109, 187,
120, 200, 126, 81, 147, 31, 13, 239, 36, 233, 221, 78, 117, 59, 248,
156, 231, 189, 232, 48, 128, 150, 128, 84, 244, 30, 117, 183, 150, 70,
30, 234, 2, 233, 161, 120, 96, 185, 155, 34, 75, 173, 200, 78, 183,
66, 8, 144, 72, 20, 92, 246, 229, 255, 55, 148, 160, 153, 9, 150,
16};
const unsigned char kSampleMasterKey[] = {
116, 62, 77, 252, 196, 57, 225, 14, 115, 52, 68,
60, 227, 254, 22, 162, 163, 22, 186, 125, 203, 138,
205, 98, 151, 202, 179, 203, 86, 98, 149, 208};
const unsigned char kSampleAuthDataEncrypted[] = {
37, 239, 160, 111, 19, 123, 167, 118, 161, 223, 61, 242, 63, 146, 22,
223, 100, 79, 178, 52, 206, 121, 155, 88, 23, 68, 144, 66, 167, 187,
83, 13, 101, 221, 218, 185, 99, 23, 149, 3, 239, 142, 78, 62, 239,
155, 114, 83, 106, 108, 168, 225, 241, 58, 49, 59, 235, 234, 51, 92,
241, 75, 120, 26, 8, 36, 238, 241, 33, 192, 170, 136, 138, 57, 87,
210, 181, 143, 111, 181, 251, 30, 50, 64, 48, 96, 195, 223, 172, 221,
19, 127, 253, 182, 102, 219, 36, 245, 246, 106, 157, 177, 230, 129, 130,
253, 51, 91, 214, 35, 221, 43, 174, 7, 185, 169, 92, 126, 52, 160,
212, 233, 158, 142, 120, 255, 212, 32, 10, 176, 112, 73, 71, 51, 72,
143, 218, 157, 186, 106, 146, 71, 24, 94, 216, 98, 114, 127, 56, 47,
38, 35, 63, 141, 193, 82, 107, 240, 39, 154, 28, 134, 32, 96, 16,
32, 54, 233, 74, 242, 136, 178, 236, 0, 243, 5, 78, 98, 219, 0,
104, 70, 235, 248, 169, 38, 88, 129, 219, 84, 197, 53, 232, 186, 157,
6, 24, 161, 86, 118, 85, 227, 72, 215, 30, 64, 236, 224, 234, 168,
16, 118, 4, 154, 170, 157, 85, 80, 158, 87, 14, 17, 76, 15, 11,
151, 157, 15, 42, 92, 34, 255, 244, 162, 195, 158, 162, 207, 167, 119,
9, 218, 218, 148, 33, 54, 131, 66, 125, 12, 141, 245, 162, 229, 134,
227};
const unsigned char kSampleAuthData[] = {29, 230, 13, 53, 202, 172, 136,
59, 83, 139, 43, 154, 175, 183,
163, 205, 110, 117, 149, 144};
const char kTokenPath[] = ".tpm";
const char kTokenObjectPath[] = "TOK_OBJ";
const char kSampleToken[] = "<PASSWORD>";
const int kPublicSampleObjects = 3;
const int kPrivateSampleObjects = 2;
string Bytes2String(const unsigned char* bytes, size_t num_bytes) {
return string(reinterpret_cast<const char*>(bytes), num_bytes);
}
void RunCommand(string command) {
int status = system(command.c_str());
ASSERT_EQ(0, WEXITSTATUS(status));
}
// Performs hard-coded transformations as a TPM would do. These match the
// sample token data for this test, they are not useful in general.
bool MockUnbind(int key, const string& input, string* output) {
map<string, string> transforms;
string encrypted = Bytes2String(kSampleMasterKeyEncrypted,
base::size(kSampleMasterKeyEncrypted));
string decrypted =
Bytes2String(kSampleMasterKey, base::size(kSampleMasterKey));
transforms[encrypted] = decrypted;
encrypted = Bytes2String(kSampleAuthDataEncrypted,
base::size(kSampleAuthDataEncrypted));
decrypted = Bytes2String(kSampleAuthData, base::size(kSampleAuthData));
transforms[encrypted] = decrypted;
map<string, string>::iterator iter = transforms.find(input);
if (iter != transforms.end()) {
*output = iter->second;
return true;
}
return false;
}
// Creates a very 'nice' object mock.
Object* CreateObjectMock() {
ObjectMock* o = new ObjectMock();
o->SetupFake();
EXPECT_CALL(*o, GetObjectClass()).Times(AnyNumber());
EXPECT_CALL(*o, SetAttributes(_, _)).Times(AnyNumber());
EXPECT_CALL(*o, FinalizeNewObject()).WillRepeatedly(Return(CKR_OK));
EXPECT_CALL(*o, Copy(_)).WillRepeatedly(Return(CKR_OK));
EXPECT_CALL(*o, IsTokenObject()).Times(AnyNumber());
EXPECT_CALL(*o, IsPrivate()).Times(AnyNumber());
EXPECT_CALL(*o, IsAttributePresent(_)).Times(AnyNumber());
EXPECT_CALL(*o, GetAttributeString(_)).Times(AnyNumber());
EXPECT_CALL(*o, GetAttributeInt(_, _)).Times(AnyNumber());
EXPECT_CALL(*o, GetAttributeBool(_, _)).Times(AnyNumber());
EXPECT_CALL(*o, SetAttributeString(_, _)).Times(AnyNumber());
EXPECT_CALL(*o, SetAttributeInt(_, _)).Times(AnyNumber());
EXPECT_CALL(*o, SetAttributeBool(_, _)).Times(AnyNumber());
EXPECT_CALL(*o, GetAttributeMap()).Times(AnyNumber());
EXPECT_CALL(*o, set_handle(_)).Times(AnyNumber());
EXPECT_CALL(*o, set_store_id(_)).Times(AnyNumber());
EXPECT_CALL(*o, handle()).Times(AnyNumber());
EXPECT_CALL(*o, store_id()).Times(AnyNumber());
return o;
}
// A test fixture base class for testing the importer.
class TestImporterBase {
public:
TestImporterBase() {
CHECK(temp_dir_.CreateUniqueTempDir());
importer_.reset(new OpencryptokiImporter(
0, temp_dir_.GetPath().Append(kTokenPath), &tpm_, &factory_));
// Set expectations for the TPM utility mock.
EXPECT_CALL(tpm_, Unbind(_, _, _)).WillRepeatedly(Invoke(MockUnbind));
EXPECT_CALL(tpm_, LoadKey(_, _, _, _))
.WillRepeatedly(DoAll(SetArgPointee<3>(1), Return(true)));
EXPECT_CALL(tpm_, LoadKeyWithParent(_, _, _, _, _))
.WillRepeatedly(DoAll(SetArgPointee<4>(1), Return(true)));
// Set expectations for the factory mock.
EXPECT_CALL(factory_, CreateObject())
.WillRepeatedly(Invoke(CreateObjectMock));
// Set expectations for the object pool mock.
pool_.SetupFake(0);
EXPECT_CALL(pool_, Insert(_)).Times(AnyNumber());
EXPECT_CALL(pool_, Import(_)).Times(AnyNumber());
EXPECT_CALL(pool_, Find(_, _)).Times(AnyNumber());
EXPECT_CALL(pool_, SetInternalBlob(3, _)).WillRepeatedly(Return(true));
EXPECT_CALL(pool_, SetInternalBlob(4, _)).WillRepeatedly(Return(true));
}
protected:
void PrepareSampleToken() {
CHECK(temp_dir_.IsValid());
RunCommand(base::StringPrintf("tar -xzf %s -C %s", kSampleToken,
temp_dir_.GetPath().value().c_str()));
}
ChapsFactoryMock factory_;
ObjectPoolMock pool_;
std::unique_ptr<OpencryptokiImporter> importer_;
TPMUtilityMock tpm_;
base::ScopedTempDir temp_dir_;
};
// A function that returns the number of objects expected to be imported.
// Returns -1 if a failure is expected.
struct ModifierResult {
bool import_public_result;
bool import_private_result;
int num_public_objects;
int num_private_objects;
};
typedef ModifierResult (*ModifierCallback)(const char* object_path);
const ModifierResult kModifierSuccess = {true, true, kPublicSampleObjects,
kPrivateSampleObjects};
const ModifierResult kModifierNone = {true, true, 0, 0};
const ModifierResult kModifierPublicOnly = {true, true, kPublicSampleObjects,
0};
const ModifierResult kModifierOneBadPublic = {
true, true, kPublicSampleObjects - 1, kPrivateSampleObjects};
const ModifierResult kModifierOneBadPrivate = {true, true, kPublicSampleObjects,
kPrivateSampleObjects - 1};
// A parameterized fixture so we can run the same test(s) with multiple modifier
// functions.
class TestImporterWithModifier
: public TestImporterBase,
public testing::TestWithParam<ModifierCallback> {};
// This test attempts to import a sample token after it has been modified by a
// modifier function.
TEST_P(TestImporterWithModifier, ImportSample) {
PrepareSampleToken();
FilePath object_path =
temp_dir_.GetPath().Append(kTokenPath).Append(kTokenObjectPath);
ModifierCallback modifier = GetParam();
ModifierResult expected_result = modifier(object_path.value().c_str());
EXPECT_EQ(expected_result.import_public_result,
importer_->ImportObjects(&pool_));
vector<const Object*> objects;
pool_.Find(NULL, &objects);
EXPECT_EQ(expected_result.num_public_objects, objects.size());
EXPECT_EQ(expected_result.import_private_result,
importer_->FinishImportAsync(&pool_));
objects.clear();
pool_.Find(NULL, &objects);
int total_objects =
expected_result.num_public_objects + expected_result.num_private_objects;
EXPECT_EQ(total_objects, objects.size());
}
ModifierResult NoModify(const char* object_path) {
// If we don't modify anything, the import should succeed.
return kModifierSuccess;
}
ModifierResult DeleteAll(const char* object_path) {
FilePath token_path = FilePath(object_path).DirName();
RunCommand(base::StringPrintf("rm -rf %s", token_path.value().c_str()));
return kModifierNone;
}
ModifierResult DeleteAllObjectFiles(const char* object_path) {
RunCommand(base::StringPrintf("rm -f %s/*", object_path));
return kModifierNone;
}
ModifierResult DeleteMasterKey(const char* object_path) {
FilePath token_path = FilePath(object_path).DirName();
RunCommand(
base::StringPrintf("rm -f %s/MK_PRIVATE", token_path.value().c_str()));
return kModifierPublicOnly;
}
ModifierResult DeleteObjectIndex(const char* object_path) {
RunCommand(base::StringPrintf("rm -f %s/OBJ.IDX", object_path));
return kModifierNone;
}
ModifierResult DeleteAllButIndex(const char* object_path) {
RunCommand(base::StringPrintf("rm -f %s/*0000", object_path));
return kModifierNone;
}
ModifierResult DeleteHierarchyFile(const char* object_path) {
RunCommand(base::StringPrintf("rm -f %s/50000000", object_path));
return kModifierPublicOnly;
}
ModifierResult TruncateFile0(const char* object_path) {
RunCommand(base::StringPrintf(":> %s/B0000000", object_path));
return kModifierOneBadPublic;
}
ModifierResult TruncateFile5(const char* object_path) {
RunCommand(base::StringPrintf("truncate -s 5 %s/B0000000", object_path));
return kModifierOneBadPublic;
}
ModifierResult TruncateFile21(const char* object_path) {
RunCommand(base::StringPrintf("truncate -s 21 %s/B0000000", object_path));
return kModifierOneBadPublic;
}
ModifierResult TruncateFile80(const char* object_path) {
RunCommand(base::StringPrintf("truncate -s 80 %s/B0000000", object_path));
return kModifierOneBadPublic;
}
ModifierResult TruncateEncrypted(const char* object_path) {
RunCommand(base::StringPrintf("truncate -s 80 %s/C0000000", object_path));
return kModifierOneBadPrivate;
}
ModifierResult AddNotIndexed(const char* object_path) {
RunCommand(base::StringPrintf(":> %s/D0000000", object_path));
return kModifierSuccess;
}
ModifierResult AppendJunk(const char* object_path) {
RunCommand(base::StringPrintf("head -c 100 < /dev/urandom >> %s/B0000000",
object_path));
return kModifierOneBadPublic;
}
ModifierResult AppendJunkEncrypted(const char* object_path) {
RunCommand(base::StringPrintf("head -c 100 < /dev/urandom >> %s/C0000000",
object_path));
return kModifierOneBadPrivate;
}
// List of parameterized test cases.
INSTANTIATE_TEST_SUITE_P(ModifierTests,
TestImporterWithModifier,
Values(NoModify,
DeleteAll,
DeleteAllObjectFiles,
DeleteMasterKey,
DeleteObjectIndex,
DeleteAllButIndex,
DeleteHierarchyFile,
TruncateFile0,
TruncateFile5,
TruncateFile21,
TruncateFile80,
TruncateEncrypted,
AddNotIndexed,
AppendJunk,
AppendJunkEncrypted));
ModifierResult RandomizeFile(const char* object_path) {
RunCommand(base::StringPrintf("head -c 1000 < /dev/urandom > %s/C0000000",
object_path));
return kModifierOneBadPrivate;
}
ModifierResult RandomizeObjectAttributes(const char* object_path) {
RunCommand(base::StringPrintf("truncate -s 21 %s/B0000000", object_path));
RunCommand(base::StringPrintf("head -c 1000 < /dev/urandom >> %s/B0000000",
object_path));
return kModifierOneBadPublic;
}
// List of test cases that involve randomization; these are listed separately
// for easy filtering.
INSTANTIATE_TEST_SUITE_P(RandomizedTests,
TestImporterWithModifier,
Values(RandomizeFile, RandomizeObjectAttributes));
} // namespace chaps
| cpp |
9 years after the release of On the other side of the periphery, a sequel has been launched for the action comedy worn by Omar Sy and Laurent Lafitte. Currently on promotion for the Lupine series on Netflix, director Louis Leterrier has announced that he is preparing to stage the sequel to the film which had recorded 2.2 million admissions in 2009.
Released on December 19, 2012, the first part of De autre coôté du peripher ‘brought together Omar Sy and Laurent Lafitte in the skin of characters who are opposites: Ousmane Diakité, police officer of the financial section of Bobigny and François Monge, captain of the Paris criminal police. An investigation will take them on one side to Paris and its employers’ union, on the other to the suburbs of Bobigny and its underground businesses. In turn, on the other side of the ring road ... The first film was written and directed by David Charhon, with Julien War and Rémy Four, based on an idea by Eric and Nicolas Altmayer.
| english |
{
"listing_id": 2266768,
"id": 12330976,
"date": "2014-04-29",
"reviewer_id": 6291050,
"reviewer_name": "Lindsay",
"text": "My boyfriend and I stayed in the Modern Granny Flat for 4 nights, and had a great experience. The location is super close to downtown, but in a quiet neighborhood that removes you from all the madness of the scene. We arrived and the key was right where Kristine said it would be, the flat was clean and looked just as it does in the pictures, and had towels, soaps, lotions and other helpful amenities ready to go. As other reviewers mention, the shower is awesome! And even more importantly, the bed is very comfortable and there were plenty of pillows. We never used the a/c or tv while we were there, preferring the fan and sound of the birds chirping outside. \r\nWe walked to a coffee shop one morning and got a feel for the neighborhood, which is very cute and quiet, and appears to have a lot of neat looking houses going up all around. It was also convenient to have a driveway spot to park, as we had a rental car for the duration of our stay. \r\nOverall I would highly recommend the Modern Granny Flat to anyone coming to Austin to visit, it was a fantastic place to stay!",
"title": "modern granny flat",
"host_id": 1507234,
"listing_latitude": 30.275484886441834,
"listing_longitude": -97.726282028393,
"host_name": "Kristine"
}
| json |
import { ILandscapeTexture, TextureBlockSizeX, TextureBlockSizeY } from './i-landscape-texture';
import { LandscapeType } from '../landscape-type';
import { TexturePoint } from './texture-point';
export class BigLandscapeTexture implements ILandscapeTexture {
private y: number;
private type: LandscapeType;
constructor(type: LandscapeType, y: number) {
this.y = y * TextureBlockSizeY;
this.type = type;
}
public getTextureA(tp: TexturePoint, x: number, y: number): [number, number] {
return [(x % 8) * 2 + 1, this.y + (y % 8)];
}
public getTextureB(tp: TexturePoint, x: number, y: number): [number, number] {
return [(x % 8) * 2, this.y + (y % 8)];
}
public getPattern(): TexturePoint[] {
return [new TexturePoint(this.type, this.type, this.type)];
}
}
| typescript |
European aerospace giant Airbus will host a public meet-and-greet event aimed at recruiting engineering and IT talent at 'Aero India', which is slated to be held in Bengaluru this month, officials said.
European aerospace giant Airbus will host a public meet-and-greet event aimed at recruiting engineering and IT talent at 'Aero India', which is slated to be held in Bengaluru this month, officials said.
The talent scouting event is part of the company's industrial ramp-up in this year, during which it intends to recruit more than 13,000 people globally, they said.
"The new hires will be instrumental in supporting Airbus' industrial ramp-up, its ambitious decarbonisation roadmap and preparations for the future of aviation," the global aerospace firm said in a statement.
The 14th edition of 'Aero India', known as Asia's largest aerospace exhibition, will be held from February 13 to 17.
Aspiring candidates can meet Airbus executives at stand number CR7. 1 in Hall C, where they can explore career opportunities in airframe design, avionics, aircraft systems simulation, data analytics, cybersecurity and cabin engineering, the statement said.
Candidates will also get a chance to interact with senior Airbus officials to find out more about the company’s already extensive and growing footprint in India and South Asia, it said.
"Airbus is a top destination for the very best of India's engineering and information management talent with a passion for aerospace," Suraj Chettri, HR Director, Airbus India and South Asia, was quoted as saying in the statement.
Visitors to the Airbus stall will also get an opportunity to see its extensive range of products, cutting-edge technologies, services and innovations from its commercial, helicopters and defence and space portfolios.
The stand will display scale models of the new-generation tanker A330 MRTT as well as the C295 military aircraft that the company will build under its 'Make in India' programme with its industrial partner, the Tata Advanced Systems Ltd, in Gujarat.
"Visitors to the stand can also see digital displays of the earth observation satellite, the Pléiades Neo, OneAtlas, that provides premium satellite imagery, and Sirtap, a tactical unmanned aerial system (UAS)," the statement said.
Scale models of the VSR700 from the UAS category, H225M from the military category, and the H160 from the civil helicopter range will also be on the show along with the commercial aircraft model of the A350, it said. | english |
Most of us are only aware of the common pregnancy symptoms, such as nausea, missed periods, fatigue and morning sickness, but there are many other uncommon pregnancy symptoms as well. Every woman shows different signs and symptoms of pregnancy, which depends on some factors like the woman’s health and whether the pregnancy is a normal or has complications.
- Constipation: This is another result of pregnancy hormones to your body. To resolve this problem, you must eat food rich in fiber, drink plenty of water, and do some exercise routinely. If the constipation continues, seek your doctor for treatment.
- Itching sensation: Another unusual pregnancy sign is itching sensation on entire body. But only some women report it.
- Skin Issues: There are certain skin issues that are associated with pregnancy. You may notice extra skin on your body parts or dark patches on your face. It is because, your body is producing extra melanin, causing dark spots and the skin tags are due to friction, as well as hormones.
- Spider Veins: The appearance of the veins surrounding the chest and upper arms is one of the most unusual early pregnancy symptoms. This symptom can be distressing, especially if the veins are prominent. During pregnancy the blood volume and flow increases. This change results in developing blue veins across chest, however they are harmless.
- Saliva Production: Some of women report to have excessive saliva, this is due to hormonal changes during pregnancy. You can try limiting starch in your diet or drinking water with lemon juice.
- Increased Cervical Fluid: There are chances that a pregnant woman notices more discharge of cervical fluid. It can either occur throughout the day or once in a day. The cervical fluid may have unusual colour and smell. It usually happens due to increased hormones and vaginal blood flow, however, talk to your doctor if it develops a foul odour, itches or burns, you may have an infection.
- Implantation Bleeding: Brownish and pinkish bleeding is also quite an unusual symptom of pregnancy. This bleeding starts when fertilized egg implants the uterus. However, one must remember that bleeding can also occur due to other factors such as certain infection.
- Runny and stuffy nose: This condition is referred as rhinitis of pregnancy. It is a rare symptom of pregnancy. It can start in the second month of your pregnancy and tends to worsen in the later stages.
- Vivid dreams: Pregnancy dreams, especially in the last trimester, are often vivid. These happen due to the fears and insecurities about pregnancy and impending motherhood.
- Strong smelling urine: At early stage of pregnancy, you may experience smelling urine than usual. It’s an uncommon sigh of pregnancy. Be sure to drink plenty of water.
- Achy legs or hips and backache: It is also anunsual sign of pregnancy. You may blame your growing tissue or hormonal changes for your aching problem. Consult your doctor before taking any medications.
- Dizziness: It's not uncommon to feel lightheaded or dizzy occasionally during pregnancy. Dizziness is caused by rising hormones that cause your blood vessels to relax and widen.
- Bleeding gums and nose: Your gums and nose may bleed unexpectedly during pregnancy. You may also notice that your nose is more congested than usual which is also a result of increased blood flow to the mucus membranes.
- Metallic taste in mouth: It is one of the most uncommon signs of pregnancy. It is unpleasant in taste and is named as Dysgeusia. Hormones, particularly estrogen, play a part in controlling the sense of taste.
- Insomnia: It can be caused by the combination of pregnancy hormones and a number of unhelpful conditions, like frequent urination, heartburn, leg cramps, and pre-birth anxiety.
For more related articles, Download OnlymyHealth App. | english |
<gh_stars>0
{
"name": "professional_website_2",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node ./bin/www",
"heroku-postbuild": "cd client && npm install && npm run build"
},
"dependencies": {
"axios": "^0.18.0",
"cookie-parser": "~1.4.3",
"debug": "~2.6.9",
"express": "~4.16.0",
"morgan": "~1.9.0",
"cors": "^2.8.5",
"nodemailer": "^5.1.1"
},
"description": "My professional Website",
"main": "app.js",
"repository": {
"type": "git",
"url": "git+https://github.com/CRFullStack/professionalWebsite2.git"
},
"author": "CRFullStack",
"license": "MIT",
"bugs": {
"url": "https://github.com/CRFullStack/professionalWebsite2/issues"
},
"homepage": "https://github.com/CRFullStack/professionalWebsite2#readme"
}
| json |
1Ne zutun nepasad te Megbevayà is kedlimbaǥa te langit, te kelibutan, wey te langun he taǥù dutun. 2Ne zutun te ikepitu he andew, geina te nepasad en te Megbevayà haazà is langun he menge vaal zin, midhimeley sikandin he ebaal. 3Ne midtuvazan te Megbevayà is ikepitu he andew ne migkaǥi zin daan he segradu haazà su midhimeley sikandin dutun te kedlimbaǥa zin te langun. 4Iyan heini sikan is keguǥuza te kedlimbaǥa zengan te langit wey kelibutan.
Dengan hein midlimbag te Nengazen he Megbevayà is langit wey kelibutan, 5wazè pa pinemula kayi te kelibutan wey wazè pa zaan benì he nenuvù, su wazè din pa ipeuzan su wazà etew he ebpekaatur te tanà. 6Dutun he timpu zuen gapun he ebpuun te tanà ne pinaaǥi zutun egkahames is tivuuk he tanà.
7Ne zutun midlimbag te Nengazen he Megbevayà is etew, ne iyan inlimbag din dutun is eliyavuk he ebpuun dini te tanà. Ne inhiyup din dutun te izung duen te etew is kandin en he ǥehinawa he ebpekeuyag, ne zutun nehimu is etew he linimbag he ebpekeǥeǥehinawa.
8Ne zutun mibeelan te Nengazen he Megbevayà is pemuleey ziyà te Eden he ziyà te zapit te edsilaan, ne insavuk din dutun haazà is etew he midlimbag din. 9Ne zuen menge kayu he impetuvù dutun te Nengazen he Megbevayà. Utew meupiya he ed-ahaan haazà is menge kayu ne meupiya zaan he egkeenen is menge veǥas dan. Ne zutun te teliwazà duen te pemuleey impetuvù din daan is kayu he ebpekeveǥey te untung wey is kayu he ebpekeveǥey te kegketau te meupiya wey mezaat.
10Ne zuen wahig diyà te Eden he ziyà ebayà te pemuleey su wey mevinyaǥi is menge pinemula zutun. Ne zutun nehimu haazà is wahig he ebpuunan duen te heepat he menge wahig. 11Is ngazan te nehuna he wahig ne Pishon. Iyan haazà sikan is wahig he ziyà edtudà te tivuuk he tanà he Havila he zutun duen egkaahà he vulawan. 12Lunsey he vulawan is ebpuun dutun, ne zuen daan dutun sikan is mahalen he pehemut he bidilyum wey zuen daan dutun menge mahalen he vatu he uniks. 13Is ngazan dutun te ikezuwa he wahig ne Gihon. Diyà heini edtudà te tivuuk he tanà he Cush. 14Is ngazan dutun te iketelu he wahig ne Tigris. Diyà heini edtudà te edsilaan te Asiria. Ne is ikeepat he wahig iyan is Eufrates.
18Ne migkaǥi zutun is Nengazen he Megbevayà te, “Kenà meupiya zuen te etew emun sebsevaha zà sikandin. Umbe ebeelan ku sikandin te zuma zin he zait he ebpeketavang kandin.” 19Ne zutun, puun dutun te tanà, midlimbag te Nengazen he Megbevayà is langun he menge leew he menge langgam wey is langun he menge tagbis he ziyà ebpemenlayang te hewhewanan. Ne impeetuvang din haazà is langun dutun te etew su ed-ahaan din ke hengkey is menge igngazan kandan duen te etew. Ne sumalà is igngazan te etew te uman sevaha zutun te linimbag he egeǥehinawa ne iyan en ngazan din. 20Ne migngezanan dutun te etew is langun he menge ayam he langgam dutun, wey is menge tagbis he ziyà ebpemenlayang te hewhewanan wey is langun he menge leew he langgam. Ne minsan pa zutun wazè pa hustu he zuma zutun te etew he ebpeketavang kandin. 21Ne tenged dutun impelipezeng te Nengazen he Megbevayà haazà is etew ne hein utew en nehurep, migkuwa zin is sevaha zuen te menge ǥusuk kayi ne midlimeng din haazà is ebpuunan duen te ǥusuk. 22Ne puun dutun te ǥusuk he migkuwa zin puun dutun te maama, midhimu te Nengazen he Megbevayà is bahi. Ne impeehè din haazà is bahi zutun te maama. 23Ne zutun migkaǥi kes maama te,
“Duen ku en human duma! Is menge tulan din, ne zini ebpuun te tulan ku wey is sapù din daan, ne zini ebpuun te sapù ku. Egngezanan ku sikandin he ‘vahi’ su zini sikandin ebpuun te kedì te maama,” ke sikandin.
24Iyan heini hinungdan ke maan is ed-ewaan te maama is amey zin wey iney zin ne ebpengesawa te vahi, ne zutun egkehimu haazà is maama wey vahi he sevaha zà.
25Ne lelevas haazà is dezuwa, sikan is maama wey esawa zin, iyan, kenè dan haazà igkeeled.
| english |
<gh_stars>0
import loading from "../assets/loading.gif";
export default function Loading() {
return (
<div className="loading">
<img src={loading} alt="Loading gif" />
</div>
);
}
| javascript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.