text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
The on the internet atmosphere offers extraordinary possibilities for individuals who would or else have restricted access to education, as well as a brand-new standard for teachers in which vibrant training courses of the best quality can be created. Education of the finest can and will certainly occur in an on the internet program provided that the educational program has actually been established or transformed to satisfy the needs of the on-line medium. DSU's online computer system scientific research program gains pupils access to the most recent software application and also advanced technological knowing materials. Time effectiveness is an additional strength brought by the on the internet understanding layout. If the participants' time online is limited by the amount of Internet accessibility they can pay for, after that guideline and involvement in the on-line program will certainly not be equitable for all students in the course. Its learning/teaching and also evaluation abilities are restricted. Computer technology levels are available in any way levels of university research studies. While numerous totally free online accountancy programs are not supplied for credit, an increasing number of programs are being provided for credit score either directly through an university or university or as part of a collaboration with an online knowing community. As a Southern Baptist associate, the college aims to shape trainees who are intellectually fantastic and also ethically upright.
What is Pligg?
Pligg is an open source content management system that lets you easily create your own user-powered website.
| english |
<reponame>Gabrieljgb18/FIUBA-Map
export const informatica = [
{
id: "75.58",
materia: "Evaluación de Proyectos y Manejo de Riesgos",
creditos: 4,
correlativas: "75.46-75.48",
categoria: "Materias Electivas",
level: 11,
},
{
id: "75.64",
materia: "Sistemas Multimediales",
creditos: 4,
correlativas: "66.74-75.74",
categoria: "Materias Electivas",
level: 12,
},
{
id: "66.46",
materia: "Procesamiento del Habla",
creditos: 6,
correlativas: "66.74",
categoria: "Materias Electivas",
level: 13,
},
{
id: "75.74",
materia: "Sistemas Distribuidos I",
creditos: 6,
correlativas: "61.10-75.43-75.59",
categoria: "Sistemas Distribuidos",
level: 8,
},
{
id: "75.56",
materia: "Organización de la Implantación y el Mantenimiento",
creditos: 6,
correlativas: "75.46-75.48",
categoria: "Materias Electivas",
level: 15,
},
{
id: "75.57",
materia: "Modelos de Proceso de Desarrollo",
creditos: 4,
correlativas: "75.46-75.48",
categoria: "Materias Electivas",
level: 10,
},
{
id: "75.63",
materia: "Sistemas Distribuidos II",
creditos: 4,
correlativas: "75.74",
categoria: "Materias Electivas",
level: 9,
},
{
id: "71.46",
materia: "Ingeniería Económica",
creditos: 6,
correlativas: "71.13",
categoria: "Materias Electivas",
level: 12,
},
{
id: "75.69",
materia: "Sistemas Automáticos de Diagnóstico y Detección Fallas II",
creditos: 6,
correlativas: "75.67",
categoria: "Materias Electivas",
level: 12,
},
{
id: "CBC",
materia: "Ciclo Básico Común",
creditos: 0,
categoria: "CBC",
level: 0,
},
{
id: "62.01",
materia: "Física I A",
creditos: 8,
correlativas: "CBC",
categoria: "Materias Obligatorias",
level: 1,
},
{
id: "61.03",
materia: "Análisis Matemático II A",
creditos: 8,
correlativas: "CBC",
categoria: "Materias Obligatorias",
level: 1,
},
{
id: "75.40",
materia: "Algoritmos y Programación I",
creditos: 6,
correlativas: "CBC",
categoria: "Materias Obligatorias",
level: 1,
},
{
id: "62.03",
materia: "Física II A",
creditos: 8,
correlativas: "61.03-62.01",
categoria: "Materias Obligatorias",
level: 2,
},
{
id: "63.01",
materia: "Química",
creditos: 6,
correlativas: "CBC",
categoria: "Materias Obligatorias",
level: 2,
},
{
id: "61.08",
materia: "Álgebra II A",
creditos: 8,
correlativas: "CBC",
categoria: "Materias Obligatorias",
level: 2,
},
{
id: "75.41",
materia: "Algoritmos y Programación II",
creditos: 6,
correlativas: "75.40",
categoria: "Materias Obligatorias",
level: 2,
},
{
id: "66.02",
materia: "Laboratorio",
creditos: 6,
correlativas: "62.03",
categoria: "Materias Obligatorias",
level: 3,
},
{
id: "62.15",
materia: "Física III D",
creditos: 4,
correlativas: "61.08-62.03-63.01",
categoria: "Materias Obligatorias",
level: 3,
},
{
id: "66.70",
materia: "Estructura del Computador",
creditos: 6,
correlativas: "61.08-62.03-75.41",
categoria: "Materias Obligatorias",
level: 3,
},
{
id: "75.12",
materia: "Análisis Numérico I",
creditos: 6,
correlativas: "61.03-61.08-75.41",
categoria: "Materias Obligatorias",
level: 3,
},
{
id: "75.07",
materia: "Algoritmos y Programación III",
creditos: 6,
correlativas: "75.41",
categoria: "Materias Obligatorias",
level: 3,
},
{
id: "61.09",
materia: "Probabilidad y Estadística B",
creditos: 6,
correlativas: "61.03-61.08",
categoria: "Materias Obligatorias",
level: 4,
},
{
id: "61.10",
materia: "Análisis Matemático III A",
creditos: 6,
correlativas: "61.03-61.08",
categoria: "Materias Obligatorias",
level: 4,
},
{
id: "66.20",
materia: "Organización de Computadoras",
creditos: 6,
correlativas: "66.02-66.70",
categoria: "Materias Obligatorias",
level: 4,
},
{
id: "75.42",
materia: "Taller de Programación I",
creditos: 4,
correlativas: "66.70-75.12-75.41",
categoria: "Materias Obligatorias",
level: 4,
},
{
id: "75.06",
materia: "Organización de Datos",
creditos: 6,
correlativas: "66.70-75.41",
categoria: "Materias Obligatorias",
level: 4,
},
{
id: "71.14",
materia: "Modelos y Optimización I",
creditos: 6,
correlativas: "61.10-62.03-63.01-75.42",
categoria: "Materias Obligatorias",
level: 5,
},
{
id: "75.09",
materia: "Análisis de la Información",
creditos: 6,
correlativas: "75.07-75.42",
categoria: "Materias Obligatorias",
level: 5,
},
{
id: "75.08",
materia: "Sistemas Operativos",
creditos: 6,
correlativas: "75.06",
categoria: "Materias Obligatorias",
level: 5,
},
{
id: "71.12",
materia: "Estructura de las Organizaciones",
creditos: 6,
correlativas: "75.06",
categoria: "Materias Obligatorias",
level: 5,
},
{
id: "71.40",
materia:
"Legislación y Ejercicio Profesional de la Ingeniería en Informática",
creditos: 4,
requiere: 140,
categoria: "Materias Obligatorias",
level: 6,
},
{
id: "75.52",
materia: "Taller de Programación II",
creditos: 4,
correlativas: "71.14-75.07-75.42",
categoria: "Materias Obligatorias",
level: 6,
},
{
id: "75.15",
materia: "Base de Datos",
creditos: 6,
correlativas: "75.06-75.09",
categoria: "Materias Obligatorias",
level: 6,
},
{
id: "75.43",
materia: "Introducción a los Sistemas Distribuidos",
creditos: 6,
correlativas: "66.20-62.15-75.08",
categoria: "Materias Obligatorias",
level: 6,
},
{
id: "75.10",
materia: "Técnicas de Diseño",
creditos: 6,
correlativas: "75.08-75.09",
categoria: "Materias Obligatorias",
level: 6,
},
{
id: "61.07",
materia: "Matemática Discreta",
creditos: 6,
correlativas: "CBC",
categoria: "Materias Electivas",
level: 9,
},
{
id: "71.13",
materia: "Información en las Organizaciones",
creditos: 6,
correlativas: "71.12",
categoria: "Gestión Industrial de Sistemas",
level: 7,
},
{
id: "75.44",
materia: "Administración y Control de Proyectos Informáticos I",
creditos: 6,
correlativas: "71.12-75.10",
categoria: "Gestión Industrial de Sistemas",
level: 7,
},
{
id: "75.45",
materia: "Taller de Desarrollo de Proyectos I",
creditos: 6,
correlativas: "75.10",
categoria: "Gestión Industrial de Sistemas",
level: 7,
},
{
id: "75.46",
materia: "Administración y Control de Proyectos Informáticos II",
creditos: 6,
correlativas: "75.44",
categoria: "Gestión Industrial de Sistemas",
level: 8,
},
{
id: "75.47",
materia: "Taller de Desarrollo de Proyectos II",
creditos: 6,
correlativas: "75.44-75.45",
categoria: "Gestión Industrial de Sistemas",
level: 8,
},
{
id: "75.48",
materia: "Calidad en Desarrollo de Sistemas",
creditos: 4,
correlativas: "75.45",
categoria: "Gestión Industrial de Sistemas",
level: 8,
},
{
id: "66.06",
materia: "Análisis de Circuitos",
creditos: 10,
correlativas: "61.10-62.03",
categoria: "Sistemas Distribuidos",
level: 7,
},
{
id: "75.59",
materia: "Técnicas de Programación Concurrente I",
creditos: 6,
correlativas: "75.08",
categoria: "Sistemas Distribuidos",
level: 7,
},
{
id: "66.74",
materia: "Señales y Sistemas",
creditos: 6,
correlativas: "61.09-66.06",
categoria: "Sistemas Distribuidos",
level: 8,
},
{
id: "75.61",
materia: "Taller de Programación III",
creditos: 6,
correlativas: "66.74-75.74",
categoria: "Sistemas Distribuidos",
level: 8,
},
{
id: "64.05",
materia: "Estática y Resistencia de Materiales B",
creditos: 6,
correlativas: "61.03-61.08",
categoria: "Sistemas de Producción",
level: 7,
},
{
id: "75.65",
materia: "Manufactura Integrada por Computadora I",
creditos: 6,
correlativas: "75.15-75.52",
categoria: "Sistemas de Producción",
level: 7,
},
{
id: "75.67",
materia: "Sistemas Automáticos de Diagnóstico y Detección Fallas I",
creditos: 6,
correlativas: "71.14",
categoria: "Sistemas de Producción",
level: 7,
},
{
id: "72.01",
materia: "Materiales Industriales I",
creditos: 6,
correlativas: "63.01-64.05",
categoria: "Sistemas de Producción",
level: 8,
},
{
id: "75.66",
materia: "Manufactura Integrada por Computadora II",
creditos: 6,
correlativas: "75.65",
categoria: "Sistemas de Producción",
level: 8,
},
{
id: "75.68",
materia: "Sistemas de Soporte para Celdas Producción Flexible",
creditos: 4,
correlativas: "75.65-75.67",
categoria: "Sistemas de Producción",
level: 8,
},
{
id: "61.18",
materia: "Ecuaciones Diferenciales Ordinarias",
creditos: 6,
correlativas: "61.03-61.08",
categoria: "Materias Electivas",
level: 16,
},
{
id: "61.19",
materia: "Análisis Funcional",
creditos: 6,
correlativas: "61.10",
categoria: "Materias Electivas",
level: 10,
},
{
id: "62.11",
materia: "Mecánica Racional",
creditos: 4,
correlativas: "61.10-62.01",
categoria: "Materias Electivas",
level: 10,
},
{
id: "66.08",
materia: "Circuitos Electrónicos I",
creditos: 8,
correlativas: "62.15-66.02-66.06",
categoria: "Materias Electivas",
level: 15,
},
{
id: "66.09",
materia: "Laboratorio de Microcomputadoras",
creditos: 6,
correlativas: "66.02-66.70",
categoria: "Materias Electivas",
level: 11,
},
{
id: "66.17",
materia: "Sistemas Digitales",
creditos: 6,
correlativas: "66.70",
categoria: "Materias Electivas",
level: 11,
},
{
id: "66.18",
materia: "Teoría de Control I",
creditos: 6,
correlativas: "66.74",
categoria: "Materias Electivas",
level: 13,
},
{
id: "66.19",
materia: "Circuitos de Pulsos",
creditos: 6,
correlativas: "66.08-66.70",
categoria: "Materias Electivas",
level: 16,
},
{
id: "66.24",
materia: "Teoría de la Información y Codificación",
creditos: 4,
correlativas: "66.74-66.75-66.70",
categoria: "Materias Electivas",
level: 16,
},
{
id: "66.26",
materia: "Arquitecturas Paralelas",
creditos: 6,
correlativas: "66.20",
categoria: "Materias Electivas",
level: 16,
},
{
id: "66.32",
materia: "Robótica",
creditos: 6,
correlativas: "62.11-66.18",
categoria: "Materias Electivas",
level: 16,
},
{
id: "66.35",
materia: "Técnica Digital Avanzada",
creditos: 6,
correlativas: "61.07-66.17",
categoria: "Materias Electivas",
level: 17,
},
{
id: "66.47",
materia: "Procesamiento de Imágenes",
creditos: 6,
correlativas: "61.09-66.74",
categoria: "Materias Electivas",
level: 13,
},
{
id: "66.49",
materia: "Sistemas Biológicos",
creditos: 6,
correlativas: "66.74-63.01",
categoria: "Materias Electivas",
level: 16,
},
{
id: "66.55",
materia: "Simulación de Sistemas de Control",
creditos: 4,
correlativas: "66.18",
categoria: "Materias Electivas",
level: 15,
},
{
id: "66.69",
materia: "Criptografía y Seguridad Informática",
creditos: 6,
correlativas: "75.43",
categoria: "Materias Electivas",
level: 12,
},
{
id: "66.71",
materia: "Sistemas Gráficos",
creditos: 6,
correlativas: "61.10-75.41",
categoria: "Materias Electivas",
level: 10,
},
{
id: "66.75",
materia: "Procesos Estocásticos",
creditos: 6,
correlativas: "61.03-61.09",
categoria: "Materias Electivas",
level: 15,
},
{
id: "67.61",
materia: "Fundamentos Matemáticos de la Visión en Robótica",
creditos: 6,
correlativas: "61.08-75.07",
categoria: "Materias Electivas",
level: 11,
},
{
id: "71.15",
materia: "Modelos y Optimización II",
creditos: 6,
correlativas: "61.09-71.14",
categoria: "Materias Electivas",
level: 11,
},
{
id: "71.18",
materia: "Estructura Económica Argentina",
creditos: 4,
correlativas: "CBC",
categoria: "Materias Electivas",
level: 9,
},
{
id: "71.20",
materia: "Modelos y Optimización III",
creditos: 6,
correlativas: "71.15",
categoria: "Materias Electivas",
level: 15,
},
{
id: "71.41",
materia: "Análisis y Resolución de Problemas",
creditos: 6,
correlativas: "71.15",
categoria: "Materias Electivas",
level: 15,
},
{
id: "71.42",
materia: "Circuitos de Información en la Empresa",
creditos: 4,
correlativas: "71.46",
categoria: "Materias Electivas",
level: 14,
},
{
id: "71.44",
materia: "Recursos Humanos",
creditos: 4,
requiere: 140,
categoria: "Materias Electivas",
level: 12,
},
{
id: "75.14",
materia: "Lenguajes Formales",
creditos: 6,
correlativas: "61.09",
categoria: "Materias Electivas",
level: 10,
},
{
id: "75.16",
materia: "Lenguajes de Programación",
creditos: 6,
correlativas: "75.14",
categoria: "Materias Electivas",
level: 14,
},
{
id: "75.26",
materia: "Simulación",
creditos: 6,
correlativas: "61.09",
categoria: "Materias Electivas",
level: 10,
},
{
id: "75.29",
materia: "Teoría de Algoritmos I",
creditos: 6,
correlativas: "61.07-75.41",
categoria: "Materias Electivas",
level: 14,
},
{
id: "75.30",
materia: "Teoría de Algoritmos II",
creditos: 6,
correlativas: "75.29",
categoria: "Materias Electivas",
level: 16,
},
{
id: "75.31",
materia: "Teoría de Lenguaje",
creditos: 4,
correlativas: "75.41",
categoria: "Materias Electivas",
level: 9,
},
{
id: "75.38",
materia: "Análisis Numérico II A",
creditos: 6,
correlativas: "75.52",
categoria: "Materias Electivas",
level: 17,
},
{
id: "75.50",
materia: "Introducción a los Sistemas Inteligentes",
creditos: 6,
correlativas: "61.09-71.14",
categoria: "Materias Electivas",
level: 12,
},
{
id: "75.51",
materia: "Técnicas de Producción de Software I",
creditos: 4,
correlativas: "75.15-75.52",
categoria: "Materias Electivas",
level: 11,
},
{
id: "75.53",
materia: "Técnicas de Producción de Software II",
creditos: 4,
correlativas: "75.51",
categoria: "Materias Electivas",
level: 14,
},
{
id: "75.54",
materia: "Técnicas de Producción de Software III",
creditos: 4,
correlativas: "75.48-75.53",
categoria: "Materias Electivas",
level: 17,
},
{
id: "75.62",
materia: "Técnicas de Programación Concurrente II",
creditos: 4,
correlativas: "75.59",
categoria: "Materias Electivas",
level: 14,
},
{
id: "75.70",
materia: "Sistemas de Programación no convencional de Robots",
creditos: 6,
correlativas: "75.50",
categoria: "Materias Electivas",
level: 17,
},
{
id: "75.71",
materia: "Seminario de Ingeniería en Informática I",
creditos: 3,
correlativas: "75.07",
categoria: "Materias Electivas",
level: 17,
},
{
id: "75.72",
materia: "Seminario de Ingeniería en Informática II",
creditos: 3,
correlativas: "75.06-75.44",
categoria: "Materias Electivas",
level: 13,
},
{
id: "75.73",
materia: "Arquitectura de Software",
creditos: 4,
correlativas: "75.07-75.09",
categoria: "Materias Electivas",
level: 9,
},
{
id: "78.xx",
materia: "Idioma",
creditos: 4,
correlativas: "CBC",
categoria: "Materias Electivas",
level: 9,
},
{
id: "66.63",
materia: "Redes Neuronales",
creditos: 6,
correlativas: "66.74-66.75",
categoria: "Materias Electivas",
level: 17,
},
{
id: "75.00",
materia: "Tesis de Ingeniería Informática",
creditos: 24,
requiere: 140,
categoria: "Fin de Carrera",
level: -1,
},
{
id: "75.99",
materia: "Trabajo Profesional de Ingeniería Informática",
creditos: 12,
requiere: 140,
categoria: "Fin de Carrera",
level: -1,
},
];
| javascript |
West Vancouver, April 9: Rani Rampal and Gurjit Kaur fired a brace each as India thumped Belarus 4-0 to set up a fil against Chile in the women’s Hockey World League (HWL) Round 2 here on Saturday.
Gurjit struck twice from the set-piece in the 13th and 58th minutes, while Rani Rampal’s pelty stroke conversion in the 20th minute and a clinical field goal in the 40th minute gave India a convincing victory.
With the win. Sjoerd Marijne-coached India secured a berth to take part in the HWL Semi-Fil to be held in June/ July. The HWL Semi-Fil is a qualifier for the FIH World Cup 2018.
Belarus, who were thrashed by India during the bilateral series in the south Asian country in March, were the perfect opponent for India to gain a psychological advantage even before the start of the match.
India were domint right from the start. Even though Belarus won two early pelty corners in the fourth and the ninth minutes, the Indian team’s defence was impressive as they denied an early lead.
India were quick to earn their first pelty corner in the 13th minute and it was Gurjit Kaur whose stunning goal gave India a 1-0 lead. Skipper Rampal doubled India’s tally when she successfully converted a pelty stroke in the 20th minute.
Both teams traded pelty corners in the third quarter. Belarusian Yuliya Mikheichyk’s hard-struck drag flick was saved by India’s goalkeeper Savita in the 40th minute.
Indian eves played fast-paced hockey as they rallied back to the striking circle with Rampal scoring a solo brilliant field goal that made it 3-0 in the 40th minute.
The fil quarter saw Belarus make desperate attempts to come back into the game. They began the quarter with a pelty awarded to them in the 49th minute but was promptly denied by Savita. The Indian defence was inch-perfect giving Belarus fewer opportunities to enter their striking circle.
Gurjit’s splendid pelty stroke goal in the 58th minute sealed the match for the Indians.
“We are very excited and happy about the win. We played as a strong unit with better defence and I am happy we did not miss pelty corner chances. Our aim was to enter the Fil and we look forward to a good game against Chile,” stated skipper Rani. | english |
<reponame>AnneSophieS/manager
{
"autorenew_service_warn_nic_billing_title": "Informações importantes",
"autorenew_service_warn_nic_billing_ok": "Ok",
"autorenew_service_debt_nic_billing": "Para pagar este serviço, ligue-se a partir da conta de cliente de faturação {{ nicBilling }}."
}
| json |
<reponame>vyzaldysanchez/php-cli-app<gh_stars>1-10
{
"name": "vyzaldy/command-line-app",
"description": "Some command line app",
"type": "library",
"require-dev": {
"symfony/console": "^3.3",
"symfony/event-dispatcher": "^3.3",
"symfony/filesystem": "^3.3",
"symfony/process": "^3.3"
},
"license": "MIT",
"authors": [
{
"name": "<NAME>",
"email": "<EMAIL>"
}
],
"minimum-stability": "beta",
"require": {},
"autoload": {
"psr-4": {
"Commands\\": "src"
}
}
}
| json |
<gh_stars>0
---
layout: post
title: Contribua com o Git Na Prática
status: publish
type: post
published: true
meta:
_edit_last: '7005667'
jabber_published: '1302205344'
---
Pra quem não sabe, tem um pessoal aqui no Brasil tocando um projeto chamado [git na prática](https://github.com/git-na-pratica/git-na-pratica), que tem por finalidade criar uma documentação rica e em português desse sistema de versionamento.
De uns dias para cá, a galera começou a andar em um ritmo muito bom, estando prestes a terminar uma primeira parte da documentação, já pensando nos tópicos futuros.
Se você conhece algo de git e tem vontade de contribuir com o projeto, faça seu fork e prepare seu material para submeter!
A comunidade agradece.
| markdown |
<reponame>mrmphys/pong
from turtle import Turtle
import time
class Ball(Turtle):
def __init__(self):
super().__init__()
self.color("white")
self.shape("circle")
self.penup()
self.y_move = 10
self.x_move = 10
self.speeding = 0.1
def move(self):
new_x = self.xcor() + self.x_move
new_y = self.ycor() + self.y_move
self.goto(new_x, new_y)
def bounce_y_direction(self):
self.y_move *= -1
self.speeding *= 0.9
def bounce_x_direction(self):
self.x_move *= -1
self.speeding *= 0.9
def reset(self):
self.goto(0, 0)
self.x_move *= -1
self.speeding = 0.1
time.sleep(0.5)
| python |
The Secretary (Posts), Smt. Jyotsna Diesh, today released the Premium Rakhi Envelopes in four new designs, brought by India Post this year with uniformity in both quality and specifications throughout the country. The new envelopes are of tear and water resistant besides very light to keep the Rakhi mail within the basic weight limit, as far as possible.The envelopes are priced at Rs. 5 each exclusive of normal postal charges. However, bulk buyers who intend to purchase 50 or more envelopes will be allowed a 50 paise discount.
Speaking on the occasion of introducing of the new envelopes Smt. Diesh said that she was confident that this product would be largely accepted by the target group of customers. She further said that since the Raksha Bandhan festival is an expression of tender sentiments India Post would like to ensure the best protection and security for reaching the Rakhi wishes to the brothers both in India and outside.
Though the general public are free to chose any other envelopes of their choice it is expected that a large number of Rakhi senders may opt for the Premium Rakhi envelopes being brought out now by India Post due to its aesthetic designs and tear & water proof nature. All Postal Circles in the country have followed the same sets of standards and specification through out the country in the procurement and sale of the new envelopes.
| english |
from modesOfOperation import CBCCipher
import sys
BLOCK_SIZE = 16
def blocks(l, n):
for i in range(0, len(l), n):
yield l[i:i + n]
def attack(cbc,ciphertext):
message = bytearray(b'')
blockGen = blocks(ciphertext,BLOCK_SIZE)
ctextBlocks = []
for i in blockGen:
ctextBlocks.append(i)
padBlock = ctextBlocks[len(ctextBlocks)-2]
for i in range(BLOCK_SIZE):
padBlock[i] = 72
if cbc.decrypt(bytearray(b''.join(ctextBlocks))) is False:
padlength = BLOCK_SIZE - i
break
ctextBlocks = []
blockGen = blocks(ciphertext,BLOCK_SIZE)
for i in blockGen:
ctextBlocks.append(i)
probeBlocks = ctextBlocks.copy()
delta1 = bytearray(BLOCK_SIZE)
for j in range(padlength):
delta1[BLOCK_SIZE - (1 + j)] = padlength
for i in reversed(range(BLOCK_SIZE - padlength)):
delta2 = bytearray(BLOCK_SIZE)
for j in range(BLOCK_SIZE - i):
delta2[BLOCK_SIZE - (1 + j)] = (BLOCK_SIZE - i)
for j in range(256):
cipherInter = probeBlocks.copy()
delta2[i] = j
delta = bytearray(bytes([a ^ b for (a,b) in zip(delta1, delta2)]))
block = cipherInter[len(cipherInter) - 2]
probe = bytearray(bytes([a ^ b for (a,b) in zip(block, delta)]))
cipherInter[len(cipherInter) - 2] = probe
if cbc.decrypt(bytearray(b''.join(cipherInter))) is not False:
sol1 = (BLOCK_SIZE - i)
sol2 = j
sol = sol1 ^ sol2
delta1[i] = sol
message = sol.to_bytes(1,'little') + message
break
probeBlocks = ctextBlocks.copy()
while len(probeBlocks)>2:
probeBlocks = probeBlocks.copy()[:-1]
delta1 = bytearray(BLOCK_SIZE)
for i in reversed(range(BLOCK_SIZE)):
delta2 = bytearray(BLOCK_SIZE)
for j in range(BLOCK_SIZE - (i+1)):
delta2[BLOCK_SIZE - (1 + j)] = (BLOCK_SIZE - i)
for j in range(256):
cipherInter = probeBlocks.copy()
delta2[i] = j
delta = bytearray(bytes([a ^ b for (a,b) in zip(delta1, delta2)]))
block = cipherInter[len(cipherInter)-2]
probe = bytearray(bytes([a ^ b for (a,b) in zip(block, delta)]))
cipherInter[len(cipherInter)-2] = probe
if cbc.decrypt(bytearray(b''.join(cipherInter))) is not False:
sol1 = BLOCK_SIZE - i
sol2 = j
sol = sol1 ^ sol2
delta1[i] = sol
message = sol.to_bytes(1,'little') + message
return message
if __name__ == "__main__":
key = <KEY>'
text = bytearray('go canes','utf-8')
cbc = CBCCipher(key)
ciphertext = cbc.encrypt(text)
#print(ciphertext)
broken = attack(cbc,ciphertext)
#print(broken)
print('-----Equality between text and broken message-----')
print(broken == text)
| python |
<reponame>FelippeChemello/podcast-maker
{"title":"Uber solta “bomba“ no setor de entregas / Polêmica com Mozilla / Governo lança central de notificações","fps":30,"timestamp":1641567119,"date":"07/01/2022","intro":{"text":"Olá pessoal, A seguir vocês acompanharão as notícias desta sexta-feira. Na descrição vocês encontram os links para saber mais sobre cada noticia. "},"end":{"text":"Estas notícias foram extraídas da newsletter de Filipe Deschamps. Para acompanhar estas notícias em formato de texto, inscreva-se no link na descrição.","url":"https://links.codestack.me/newsletter-filipe"},"news":[{"text":"Uber Eats decide encerrar operações de delivery de restaurantes no Brasil: o serviço deixará de funcionar a partir do dia 7 de março, mas continuará com a entrega de supermercados. A decisão caiu como “uma bomba no setor”, com bares e restaurantes temendo consequências da falta de competição. O iFood lidera o mercado, com 70% de participação. As informações são dos portais Valor Econômico e O Tempo.","url":""},{"text":"Mozilla pausa doações em moedas digitais após críticas de fundador: a entidade afirma que tecnologias descentralizadas são uma área importante de exploração, mas está revisando como a tecnologia se encaixa em sua política climática. <NAME>, fundador da Mozilla, criticou duramente a prática de receber doações através de ativos digitais que, na sua visão, “incineram o planeta”. As informações são do perfil da Mozilla no Twitter.","url":""},{"text":"Governo lança plataforma centralizada de notificações para a população: o sistema “Notifica.gov.br” enviará comunicações sobre serviços públicos através de SMS, email ou push pelo aplicativo “Gov.br” para a base de 116 milhões de brasileiros já cadastrados. O primeiro teste da plataforma foi realizado nesta semana com o envio de uma notificação para motoristas sobre a possibilidade de desconto no pagamento de multas de trânsito dentro do prazo. As informações são do site Mobile Time.","url":""},{"text":"Atividades ilícitas são pequena parte do uso de moedas digitais, aponta relatório: crimes cibernéticos, lavagem de dinheiro e financiamento do terrorismo representaram apenas 0,15% de todas as transações criptográficas conduzidas em 2021, de acordo com a plataforma de dados Chainalysis. Apesar do valor movimentado por cibercriminosos ter crescido em termos absolutos no ano passado, a taxa de crescimento de atividades legítimas teria sido muito maior. As informações são do site Axios.","url":""},{"text":"NIC.br lança mapa interativo de qualidade da Internet no Brasil: a partir de dados coletados por testes de velocidade realizados diariamente pelo Sistema de Medição de Tráfego Internet, é possível consultar informações por estado, município, distritos de uma cidade e, até mesmo, setores censitários. As informações são da página de notícias do NIC.br.","url":""},{"text":"WhatsApp, Instagram e Facebook continuam sendo aplicativos mais utilizados pelos brasileiros: o WhatsApp é o líder absoluto, mais presente na home screen dos smartphones nacionais e o mais utilizado ao longo do dia. O engajamento no Facebook e Instagram, no entanto, tem diminuído. As informações são do site Mobile Time.","url":""},{"text":"<NAME>, cofundador da Apple, e <NAME>, da Virgin, virão ao Brasil para evento de tecnologia: o “Rio Innovation Week” vai acontecer entre 13 e 16 de janeiro, na cidade do Rio de Janeiro. A agenda do evento também conta com outros 500 palestrantes, como <NAME>, ministro da Ciência, <NAME>, CEO da Hyperloop, além da presença de 1.000 startups e 190 expositores. As informações são do site Tecnoblog.","url":""},{"text":"Exército suíço proíbe uso do WhatsApp, Telegram e Signal por soldados: a segurança de dados é uma das razões para a mudança. O exército do país decidiu utilizar o mensageiro com criptografia de ponta-a-ponta e de código aberto Threema, desenvolvido na própria Suíça. As informações são do site Swissinfo.","url":""}]} | json |
<reponame>davidbrochart/pythran
#ifndef PYTHONIC_INCLUDE_NUMPY_BINCOUNT_HPP
#define PYTHONIC_INCLUDE_NUMPY_BINCOUNT_HPP
#include "pythonic/include/numpy/max.hpp"
#include "pythonic/include/utils/numpy_conversion.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
template <class T, class pS>
typename std::enable_if<std::tuple_size<pS>::value == 1,
types::ndarray<long, types::pshape<long>>>::type
bincount(types::ndarray<T, pS> const &expr,
types::none_type weights = builtins::None,
types::none<long> minlength = builtins::None);
template <class T, class E, class pS>
typename std::enable_if<
std::tuple_size<pS>::value == 1,
types::ndarray<decltype(std::declval<long>() *
std::declval<typename E::dtype>()),
types::pshape<long>>>::type
bincount(types::ndarray<T, pS> const &expr, E const &weights,
types::none<long> minlength = builtins::None);
NUMPY_EXPR_TO_NDARRAY0_DECL(bincount);
DEFINE_FUNCTOR(pythonic::numpy, bincount);
}
PYTHONIC_NS_END
#endif
| cpp |
<reponame>Reasuon/example-schedule
package org.reasuon.example.schedule;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 范例启动类.
*
* @author Reasuon <EMAIL>
*/
@SpringBootApplication
@MapperScan({"org.reasuon.example.schedule.mapper"})
public class ScheduleDemoApplication {
public static void main(String[] args) {
SpringApplication.run(ScheduleDemoApplication.class, args);
}
}
| java |
package org.vaadin.viritinv7;
import com.vaadin.annotations.Theme;
import com.vaadin.ui.Component;
import java.util.List;
import org.vaadin.addonhelpers.AbstractTest;
import org.vaadin.viritin.LazyList;
import org.vaadin.viritinv7.fields.MTable;
import org.vaadin.viritin.testdomain.Person;
import org.vaadin.viritin.testdomain.Service;
/**
*
* @author <NAME>
*/
@Theme("valo")
public class MTableLazyLoadingEmptyList extends AbstractTest {
@Override
public Component getTestComponent() {
final List<Person> backingList = Service.getListOfPersons(0);
MTable<Person> mTable = new MTable<>(
new LazyList.PagingProvider<Person>() {
private static final long serialVersionUID = 4212839156216191152L;
@Override
public List<Person> findEntities(int firstRow) {
return backingList.subList(firstRow, 0);
}
},
new LazyList.CountProvider() {
private static final long serialVersionUID = -3958524394327292732L;
@Override
public int size() {
return 0;
}
}
).withProperties("firstName", "lastName", "email");
mTable.withFullWidth().withHeight("300px");
// Alternative way, with explicitly defined bean type
// mTable = new MTable<Person>(Person.class).lazyLoadFrom(
// new LazyList.PagingProvider<Person>() {
//
// @Override
// public List<Person> findEntities(int firstRow) {
// return backingList.subList(firstRow, 0);
// }
// },
// new LazyList.CountProvider() {
//
// @Override
// public int size() {
// return 0;
// }
// }
// );
return mTable;
}
}
| java |
A recruitment drive by the Aam Aadmi Party in Shozhinganallur targeting mainly IT professionals took an unexpected turn on Tuesday, when more than 250 auto drivers turned up at the venue to join the party.
“I have been disappointed with the political scenario in this State for the last 30 years. The simplicity of AAP members reminds me of leaders such as Annadurai and Kamaraj. They are accessible, not like the MLAs of today,” said R. Velu who drives an autorickshaw in and around Guindy.
Most drivers who joined the party said they welcomed the moves taken by the party in New Delhi and hoped to work against corruption here. Some also seemed upset about the meter system and the regular checks for licenses and papers.
“Here, there has been no crackdown on people who illegally own many autos and force drivers to pay huge rents,” said R. Mani who runs a share auto on OMR.
He said Arvind Kejriwal’s move to provide permits to auto drivers belonging to SC/ST and OBC communities prompted him to volunteer for the party. “I have been voting for Captain for some years now but I am upset as no one seems to care for us,” said the 42-year-old, who plans to work six hours a week for the party. Deepak Raj, a volunteer-coordinator of AAP, said the party has been receiving a steady stream of auto drivers who want to be members or volunteers. “Many are willing to work with us several days of the week,” he said.
This month, the party recruited more than 3,000 volunteers across the State. | english |
Posted On:
The Prime Minister, Shri Narendra Modi has expressed happiness on UNESCO declaring Kakatiya Ramappa Temple a World Heritage site. He also urged people to visit this majestic Temple complex and get a first-hand experience of it’s grandness.
Reacting to a tweet by UNESCO, the Prime Minister said;
"Excellent! Congratulations to everyone, specially the people of Telangana.
The iconic Ramappa Temple showcases the outstanding craftsmanship of great Kakatiya dynasty. I would urge you all to visit this majestic Temple complex and get a first-hand experience of it’s grandness."
Read this release in:
| english |
<filename>drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapPersistenceContextManager.java
package org.drools.persistence.map;
import org.drools.persistence.PersistenceContext;
import org.drools.persistence.PersistenceContextManager;
public class MapPersistenceContextManager
implements
PersistenceContextManager {
private PersistenceContext persistenceContext;
public MapPersistenceContextManager(PersistenceContext persistenceContext) {
this.persistenceContext = persistenceContext;
}
public PersistenceContext getApplicationScopedPersistenceContext() {
return persistenceContext;
}
public PersistenceContext getCommandScopedPersistenceContext() {
return persistenceContext;
}
public void beginCommandScopedEntityManager() {
}
public void endCommandScopedEntityManager() {
}
public void dispose() {
persistenceContext.close();
}
}
| java |
‘Gender, Ecology and Development’ is a fast emerging area of academic and policy importance, especially in the context of developing societies. Beginning with a discussion in the international context, this paper looks into the attention paid to gender concerns in development in their links with environmental issues. Conceptual framework for studying the inter-relationship is discussed to delineate the intricacies of women’s interaction with nature against a patriarchal and traditional set-up. Karnataka’s major advances in women’s empowerment and development programmes is made by referring to both governmental and civil society organisations’ efforts. Gaps and inadequacies in knowledge and approaches in understanding the issues and challenges ahead are identified and a few areas of policy concern have been identified.
| english |
<gh_stars>0
@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');
body{
background: rgba(197, 189, 189, 0.699);
min-height: 100vh;
}
iframe{
border-radius: 10px;
box-shadow: 0px 2px 10px 2px #501c43da;
}
/* scroll bar */
/* width */
::-webkit-scrollbar {
width: 15px;
}
/* Track */
::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px grey;
border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #4d2543da;
border-radius: 10px;
cursor: pointer;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #52334a;
cursor: pointer;
}
.titleH2{
font-family: 'Courgette', cursive;
color: #6c4060;
text-shadow: 1px 2px 10px rgba(177, 167, 167, 0.856);
width: 20%;
margin:auto;
margin-bottom: 30px;
border-bottom: 4px solid #6c4060 ;
padding-bottom: 3px;
}
| css |
<reponame>PrivadoTest/arcobjects-sdk-community-samples
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Save a layer file in a MapControl application</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
}
th {
font-weight: bold;
}
</style>
</head>
<body>
## Save a layer file in a MapControl application
This sample demonstrates how to create and save a layer file in a stand-alone ArcGIS Engine application. In addition to providing the ability to save layer files, this sample also implements a context menu that opens when you right-click a layer in the application's table of contents (TOC). This context menu hosts two commands: Save the current layer as a layer file and Remove the current layer from the map.
```
Language: C#, VB
Subject: Controls
Organization: Esri, http://www.esri.com
Date: 10/17/2019
ArcObjects SDK: 10.8
Visual Studio: 2017, 2019
.NET Target Framework: 4.5
```
### Resources
* [ArcObjects .NET API Reference online](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm)
* [Sample Data Download](../../releases)
* [What's new](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#91cabc68-2271-400a-8ff9-c7fb25108546.htm)
* [Download the ArcObjects SDK for .Net from MyEsri.com](https://my.esri.com/)
### Usage
1. Start Visual Studio, open the solution file, and build the project.
1. Press F5 to run the MapControl application.
1. Use the AddData command to add a dataset to the map, or as an alternative, use Add MapDocument to add an existing map document to the map.
1. Right-click a layer in the TOC to open the context menu.
1. Click the Create Layer File command to save the current layer with its current renderer as a layer file.
1. Use the Load Layer File command to load the new layer to the map.
#### See Also
[How to save a layer file](http://desktop.arcgis.com/search/?q=How%20to%20save%20a%20layer%20file&p=0&language=en&product=arcobjects-sdk-dotnet&version=&n=15&collection=help)
---------------------------------
#### Licensing
<table><tr><th> Development licensing </th><th> Deployment licensing </th></tr>
<tr><td> Engine Developer Kit </td><td> Engine </td></tr>
<tr><td> </td><td> ArcGIS Desktop Basic </td></tr>
<tr><td> </td><td> ArcGIS Desktop Standard </td></tr>
<tr><td> </td><td> ArcGIS Desktop Advanced </td></tr>
</table>
</body>
</html> | html |
Congress leaders indicated that a number of Opposition parties will soon issue a joint statement on the latest claims by Malik.
New Delhi Days after former J&K governor Satyapal Malik made sensational claims related to the Pulwama terror attack, the Congress on Saturday demanded a response from Prime Minister Narendra Modi and defence minister Rajnath Singh, who was the Union home minister when a convoy of CRPF jawans came under attack on February 14, 2019, leaving 40 of them dead.
Congress leaders indicated that a number of Opposition parties will soon issue a joint statement on the latest claims by Malik.
The BJP’s national information & technology department head Amit Malviya tweeted Malik’s old videos, including one in which the former governor described Rahul Gandhi as “political juvenile” and attacked the Congress leader on his Kashmir policy. In the video, Malik, then a governor, predicted that people will beat Congress leaders with their shoes. In another post, Malviya showed Malik describing the Modi government as the best bet for J&K.
Malik, who was governor of J&K in 2018-19, claimed Modi asked him to keep quiet on the Pulwama attack and the home ministry allegedly rejected a proposal to fly down the jawans instead of having them travel by road. Malik didn’t provide any material evidence to prove his allegations.
Paramilitary personnel are transported by road, and the incident triggered key changes in convoy movement protocols.
Referring to Malik’s allegations, Congress leader Pawan Khera said, “Satyapal Malik said when he told the PM that Pulwama attack happened due to our carelessness, Modi asked him to keep quiet” and “said it is something else”.
Khera also quoted Malik, who claimed that the PMO controls who all can meet the President of India after Malik’s appointment with President Droupadi Murmu was cancelled at the last moment.
“It is surprising. Our Excellency, the President, the President of all of us, whom she will meet, whom she will not meet, the list of her appointments, the list of daily appointments, goes to the Prime Minister’s Office for approval,” Khera said.
Congress leader Supriya Shrinet demanded an answer on how 300kg of RDX came to a border state and why the jawans were not allowed to take planes. “There was so much intelligence input, there was a threat from Jaish, why were they taken from the road despite that and what is happening with this investigation? ” she asked.
“These charges are serious as Malik has been the governor of 4 states. He is a senior leader and even today he is a member of the BJP. So it is realistic to ask this question to this government that what is the answer? What is your response? Nation wants to know,” he said. | english |
<gh_stars>10-100
use cpuprofiler::PROFILER;
use criterion::profiler::Profiler;
use criterion::{
criterion_group, criterion_main, AxisScale, BenchmarkId, Criterion, PlotConfiguration,
Throughput,
};
use im::Vector;
use rand;
use rand::distributions::Alphanumeric;
use rand::Rng;
use sheeit_storage::location::Coordinate;
use sheeit_storage::{Cell, CoreDocument, Value};
use std::path::Path;
fn bench_sheet_operations(c: &mut Criterion) {
let generate_value = || {
let value = rand::thread_rng().gen_range(0, 1000);
Value::Integer(value)
};
let column_size = 10;
let cases: Vec<(i32, CoreDocument)> = vec![1000, 10_000, 100_000, 1_000_000]
.iter()
.map(|num| {
(
*num,
generate_single_sheet(column_size, *num, generate_value),
)
})
.collect();
let plot_config = PlotConfiguration::default().summary_scale(AxisScale::Logarithmic);
let mut group = c.benchmark_group("insert-in-middle");
group.plot_config(plot_config);
for (row_num, document) in cases {
group.throughput(Throughput::Elements(row_num as u64));
group.bench_with_input(
BenchmarkId::from_parameter(row_num),
&(row_num, document),
|b, (row_num, document)| {
let mut document_clone = document.clone();
let insert_index = (*row_num as usize) / 2;
let row: Vec<_> = vec![
Some(Cell::new_blank(0)),
None,
Some(Cell::with_value(Value::Integer(69), 0)),
None,
Some(Cell::with_value(
Value::String(String::from("world").into_boxed_str()),
0,
)),
Some(Cell::with_value(
Value::String(String::from("end").into_boxed_str()),
0,
)),
Some(Cell::with_value(Value::Number(69.5), 0)),
Some(Cell::with_value(Value::Number(699999.5), 0)),
Some(Cell::with_value(
Value::String(String::from("more string").into_boxed_str()),
0,
)),
Some(Cell::new_blank(0)),
]
.iter()
.map(|cell| vec![cell.as_ref().cloned()])
.collect();
b.iter(move || {
document_clone.insert_row_at(0, insert_index).ok().unwrap();
document_clone
.insert_cells(&Coordinate::new(0, insert_index, 0).unwrap(), row.clone())
.unwrap();
});
},
);
}
group.finish();
}
fn generate_single_sheet<F: Fn() -> Value>(
column_size: usize,
row_size: i32,
generate_value: F,
) -> CoreDocument {
let mut document = CoreDocument::new();
document.add_sheet();
for col_index in 0..column_size {
document.add_column(0).unwrap();
let mut cells = Vec::new();
for _j in 0..row_size {
cells.push(Cell::with_value(generate_value(), 0))
}
document
.add_cells_at_column(0, col_index, cells)
.ok()
.unwrap();
}
document
}
// TODO: Remove allow dead_code and create a separate benchmark for this.
#[allow(dead_code)]
fn bench_iteration(criterion: &mut Criterion) {
let gen_percent_of_int = |percent: i32| {
move || {
let int_range = rand::thread_rng().gen_range(0, 100);
let is_int = int_range < percent;
if is_int {
let value = rand::thread_rng().gen_range(0, std::i64::MAX);
Value::Integer(value)
} else {
let chars: String = rand::thread_rng()
.sample_iter(&Alphanumeric)
.take(30)
.collect();
Value::String(chars.into_boxed_str())
}
}
};
let generate_int_vec = |num| {
let mut vec = Vec::with_capacity(num);
for i in 0..num {
let _value = rand::thread_rng().gen_range(0, std::i64::MAX);
vec.push(i);
}
vec
};
let generate_int_vector = |num| {
let mut vec = Vector::new();
for i in 0..num {
let _value = rand::thread_rng().gen_range(0, std::i64::MAX);
vec.push_back(i);
}
vec
};
let samples = vec![1000, 10_000];
let plot_config = PlotConfiguration::default().summary_scale(AxisScale::Logarithmic);
let mut group = criterion.benchmark_group("Enum Vector vs Vec Iteration");
group.plot_config(plot_config);
for num in samples {
group.throughput(Throughput::Elements(num as u64));
for percent in &[100] {
let doc = generate_single_sheet(1, num, gen_percent_of_int(*percent));
let sheet = doc.sheet_at(0).unwrap();
let column = sheet.column_at(0).unwrap();
let enum_case_cells = column.cells();
group.bench_with_input(
BenchmarkId::new(format!("Enum {} percent:", percent), num),
&enum_case_cells,
|b, enum_case_cells| {
b.iter(|| {
enum_case_cells
.iter()
.fold(0 as f64, |acc, cell| match cell.value() {
Value::Number(i) => acc + *i,
_ => acc,
})
})
},
);
}
let vec_num = generate_int_vec(num as usize);
group.bench_with_input(BenchmarkId::new("Vec:", num), &vec_num, |b, vec_num| {
b.iter(|| vec_num.iter().fold(0, |acc, val| acc + *val))
});
let vector_num = generate_int_vector(num);
group.bench_with_input(
BenchmarkId::new("VectorIntOnly:", num),
&vector_num,
|b, vector_num| b.iter(|| vector_num.iter().fold(0, |acc, val| acc + *val)),
);
}
group.finish();
}
struct SimpleProfiler;
impl Profiler for SimpleProfiler {
fn start_profiling(&mut self, benchmark_id: &str, _benchmark_dir: &Path) {
let splitted: Vec<_> = benchmark_id.split('/').collect();
let profile_id = splitted[1];
PROFILER
.lock()
.unwrap()
.start(format!("./benchmark-profile-{}.profile", profile_id))
.unwrap();
}
fn stop_profiling(&mut self, _benchmark_id: &str, _benchmark_dir: &Path) {
PROFILER.lock().unwrap().stop().unwrap();
}
}
fn profiled() -> Criterion {
Criterion::default().with_profiler(SimpleProfiler)
}
criterion_group!(
name = benches;
config = profiled();
targets = bench_sheet_operations);
//criterion_group!(benches, bench_iteration);
criterion_main!(benches);
| rust |
India doled out another dominating defeat to South Africa.
After their 5-1 win in the first match, India has won their second match against South Africa with a thumping 7-0 win!
The first half saw a dominant display from the visitors as the hosts just couldn't get the ball off of India. With a couple of goals in quick succession, India went into the half time with a 6-0 lead.
The final goal was scored in the fourth quarter as India took a 2-0 lead in the four-match series against South Africa.
As it happened:
Second quarter is underway!
India still ahead with that one goal lead thanks to Lalremsiami's penalty corner.
India score!!!!
Lalremsiami scores from a penalty corner as India takes the lead halfway through the first quarter!
India with the intent in the opening five minutes.
The women in blue have penetrated South Africa's box multiple times but are yet to open the scoring.
India will eye a second win on the trot in the series.
As the men's team is performing at the World Cup, the women's team has already thumped South Africa in their first match of the series.
| english |
Anushka Shetty and Naveen Polishetty, the two captivating leads of Miss Shetty Mr Polishetty, have woven their magic on the silver screen. Their on-screen chemistry, skillfully directed by Mahesh Babu P, continues to captivate audiences and drive the film’s box office success.
Recent online rumours have ignited excitement, suggesting that Miss Shetty Mr Polishetty might soon see a Hindi remake. It’s rumoured that both Yash Raj Films and Dharma Productions are actively pursuing the rights from UV Creations. We eagerly await further details to confirm this development.
In addition to the lead pair, the movie features a stellar cast, including Jayasudha, Tulasi, Murali Sharma, Sonia Deepti, Bhadram, Abhinav Gomatam, and more in prominent roles. Stay tuned for more intriguing updates.
Articles that might interest you:
| english |
RAWALPINDI: The Inter-services Public Relations (ISPR) has denied claims regarding Chief of Army Staff General Qamar Javed Bajwa and his family’s assests, saying that the data shared on social media is based on “blatant lies and malice”.
“Misleading data regarding the assets of army chief General Qamar Javed Bajwa and his family have been shared on social media. These misleading figures are exaggerated and based on assumption,” the military’s media wing said in a statement released on Sunday.
The statement said that a specific group has very “cleverly and dishonestly” associated the assets of General Bajwa’s daughter-in-law’s father and family with the army chief and his family.
“An incorrect impression is being created that these assets were created by army chief General Bajwa’s family during his six-year tenure. It is totally untrue, based on blatant lies and malice,” the statement read.
The military’s media wing assured that all the assets of the army chief, his wife and his family have been declared to the Federal Board of Revenue (FBR).
“Army chief and his family regularly file tax return. Like every citizen, the army chief and his family are accountable to the tax authorities for their assets,” it added.
| english |
<gh_stars>1-10
import PullRequestsList from './PullRequestsList';
export default PullRequestsList;
| javascript |
<reponame>0999312/The-Last-Smith
{
"name" : "<NAME>",
"icon" : "flammpfeil.slashblade:slashbladenamed{ModelName: \"named/arthurs/model_0\", TextureName: \"named/arthurs/texture_0\"}",
"category" : "category_6",
"pages" : [
{
"type" : "text",
"text" : "R_Liu, leader of Mysterious Mountain Forging-Shop.$(br2)Chief modeller of this team. Important person who leads the custom SlashBlade making in China Minecraft community.$(br2)Recently he began to learn to develop SlashBlade Mod's addon. Let's cheer fo him."
},
{
"type" : "crafting",
"recipe" : "lastsmith:flammpfeil.slashblade.named.mmf.r_liu"
}
],
"advancement":"lastsmith:final_blade",
"sortnum" : 0
}
| json |
- Russian wheat is expected to soften ongoing flour crisis in country.
- Flour price across Pakistan has soared to Rs130/kg.
KARACHI: Two cargo ships carrying 300,000 tonnes of wheat from Russia, the first consignment, docked at Port Qasim on Monday as the government struggles to bridge the demand and supply gap in the country.
According to the ministry of food security, the remaining 400,000 tonnes of the total 700,000 tonnes of Russian wheat will reach Gwadar port by March 30.
The arrival of the Russian wheat is expected to soften the ongoing flour crisis in the country after surging inflation and worsening economic conditions sent flour prices through the roof recently.
Flour price across Pakistan has soared to Rs130 per kg, fine flour to Rs150 per kg, while Chakki flour is being sold at Rs160 per kg in some places.
Subsidised 10-20kg flour bags are in short supply across the country, while dual grain rates have given rise to black markets.
In Sindh and Balochistan, flour prices have gone up to over Rs150 per kg, while in Khyber Pakhtunkhwa (KP) a 20kg flour bag is being sold at a record price of Rs3,000 per bag. The flour prices are reportedly higher in Gilgit Baltistan, and Azad and Jammu Kashmir.
Pakistan’s flour crisis has escalated due to a worsening macroeconomic situation, depleting foreign exchange reserves, and the destruction of wheat crops in the floods.
People are struggling to get a single bag of the daily-use commodity and stampedes have also been reported at sale points in several parts of the country as the people endeavour to get subsidised flour bags.
Last week, The News reported the death of a peasant in a stampede during the sale of subsidised flour in Mirpurkhas.
Several others were injured in similar incidents in Badin and Shaheed Benazirabad, which led to protests. As per details, several hundred people had gathered to purchase a 10-kg flour bag at the subsided rate of Rs65 from the sale point in Mirpurkhas.
The rush resulted in another stampede and the eventual death of Harsingh alias Gulahi Bheel, 37. He was the father of seven, including six daughters.
Similarly, in Tando Bago, district Badin, two women, among several others, were injured after the police baton-charged the crowd gathered to buy flour at subsided rates.
In Sakrand, Shaheed Benazirabad, three women were injured during a stampede while purchasing subsidised flour from a makeshift shop. Afterwards, people protested on the roads in various districts against the steep rise in the prices of flour and other essential commodities.
| english |
<gh_stars>1-10
/* *** responsive style rules for header/navbar - outer pages *** */
@media (min-width: 880px) {
.lg-vp-header {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-between;
}
.navicon {
display: none;
}
.app-nav {
width: unset;
position: static;
display: flex;
border-top: 0;
background-color: transparent;
}
.app-nav__list {
margin-top: 0;
display: flex;
}
.app-nav__item a {
display: inline-block;
padding: 10px 25px;
margin-left: 10px;
}
}
| css |
So much has been said about Pam & Tommy, a series that tells the story behind the infamous sex tape scandal from the '90s - Baywatch star Pamela Anderson and Mötley Crüe drummer Tommy Lee's private VHS tape was stolen from their home by a carpenter seeking revenge from Lee for unpaid dues. The series is a nuanced look at the wild yet true events and a comment on obsessive celebrity culture. But the most head-turning aspect of the show was the transformations of stars Lily James and Sebastian Stan. While James looks unrecognisable in prosthetics and make-up, Stan is a chameleon as the loud, tattooed rockstar. And if you ask the actor, the role came with its own set of challenges.
Tommy Lee is a stark departure for Sebastian Stan from his best-known role in the MCU as Bucky Barnes aka the Winter Soldier. Between I, Tonya and his most recent film FRESH which premiered at the Sundance Film Festival, his filmography is delightfully diverse outside superhero movies. Lucky us! In an interview, the actor opened up about his latest role.
The show sees Stan take on crazy scenes, including one with a talking penis, but that's a discussion for another day. When asked about exploring a fascinating range of characters from FRESH to Pam & Tommy, he revealed that not a lot of it is left to improvisation.
"Oh that's great! I'm so glad you got to watch it [FRESH]. Well, playing a fictional character versus a real-life person has got its own challenges. With this particular role, a lot of the work is done for you. There's a lot of information out there on YouTube, there were books that were written about him - one that he wrote himself and another one that was very famously written about him. So I had a lot of draw from and that's your job really as an actor, you're looking for anything you can find and constructing their life in the best way possible," he said.
He added, "None of that would be possible if the scripts aren't great or they don't do that work for you or don't challenge you in certain ways. And these certainly did. A lot of what you see as the final product has always been on the page and they were just really well-written."
Sebastian Stan’s transformation goes a little beyond tattoos and playing the drums. And it’s a testament to his versatility.
| english |
<filename>hls.js/1.0.0-beta.3.0.canary.6704.json<gh_stars>1-10
{"hls.js":"<KEY>,"hls.light.js":"<KEY>,"hls.light.min.js":"<KEY>,"hls.min.js":"<KEY>} | json |
- Pets and strays could be seen lost in Mumbai streets.
- Gurudwaras and other animal rescue organisations are working round the clock to provide them shelter and food.
- Call any of the helplines provided below if you have spotted a helpless pet anywhere in Mumbai.
The Mumbai floods have left a trail of disaster in various parts of the city. As the water level goes down, one can figure out that the tragedy has not affected humans alone, but has also distressed our four-legged friends too. It is indeed heart-wrenching to see strays and lost pets seeking shelter in already dilapidated structures, shivering with cold.
Thanks to Gurudwaras and some citizens in Mumbai who have opened their houses and kitchens for these friends too. Besides them, there are organisations like PAWS, Karuna and other welfare associations joining hands in rescuing the animals. It is to be noted that the PAWS had previously helped animals in the 2005 floods too by sending supplies and in the ground work.
If you are an animal lover living in Mumbai and have spotted an abandoned pet in the flood water, call these lines for help. All you have to do is give the organisations your location and the breed that you have spotted. Here are a few numbers for your help: | english |
General deliberations on the government’s annual estimate of income and expenditure for the fiscal year 2022-23 continued today in the House of Representatives.
Taking part in the discussions, CPN (UML) vice-chair and former Finance Minister Surendra Prasad Pandey talked about how the budget for the new fiscal year promised to increase agricultural production, but it failed to pay attention to addressing problems in the agricultural sectors.
As he said, farmers are struggling for fertiliser and the agricultural production was not achievable until and unless the smooth supply of fertiliser was ensured. According to him, the imposition of excise duty on biscuits, and cookies produced within the country would promote food import as it would make the domestic products more expensive.
Likewise, the announcement to give a heavy (up to 90 percent) discount on income tax on sanitary pads is capable of discouraging the domestic industries.
He says he sees a challenge in the implementation of the budget as the country is preparing for the next rounds of elections. Pandey took the time to say that it would be hard for the government to discourage the import of petroleum products.
Some lawmakers have said the budget is oriented towards increasing production and it was positive in this aspect, stressing its effective implementation.
CPN (Maoist Center)'s Shakti Bahadur Basnet described the budget as 'balanced' citing that it has put the nation and the people in the centre. He said the budget has been brought focusing on production and creating employment and that it is in favour of Madhes, Karnali, and other marginalized communities.
Basnet also expressed the belief that the budget would also contribute to poverty alleviation through reforms in the agriculture sector. It has prepared a new model of economic development, but the model of public-private partnership model should be further defined, he reiterated.
Nepali Congress' Padma Narayan Chaudhary said the budget has given priority to agriculture considering the present economic crisis. He said the investments in agriculture and tourism will create huge employment opportunities.
Niradevi Jairu of the CPN (Unified Socialist) described the budget as populist. She demanded removing the 'syndicate' in the education and health sectors for its effective implementation. Jairu said the budget has addressed the issues of the Dalit and backward communities.
Pradip Yadav of the Janata Samajbadi Party complained about the 'meager' budgetary allocation for the construction of the Hulaki highway, suggesting a review on this. He alleged that no major projects have been proposed in the Madhes province and the subsidies have also been reduced. He said the Supreme Court's decision to stop the Nijgadh international airport has delivered injustice to the Madhes province as it will hamper the development.
Bimal Prasad Srivastav of the Loktantrik Samajbadi Party has demanded that the government establish a sugar mill and agricultural tools factory in Birgunj. He said he was even ready to donate his land for this purpose.
He argued that opening a sugar mill in Birgunj would provide employment to thousands of people of Bara, Parsa, and Rautahat, among other districts of the Madhesh province. Similarly, the operation of an agricultural tools factory there would benefit the farmers of the country and reduce their dependence on imported tools.
READ ALSO: | english |
export enum TypeKeys {
SWAP_STEP = 'SWAP_STEP',
SWAP_INIT = 'SWAP_INIT',
SWAP_LOAD_BITY_RATES_SUCCEEDED = 'SWAP_LOAD_BITY_RATES_SUCCEEDED',
SWAP_LOAD_SHAPESHIFT_RATES_SUCCEEDED = 'SWAP_LOAD_SHAPESHIFT_RATES_SUCCEEDED',
SWAP_DESTINATION_ADDRESS = 'SWAP_DESTINATION_ADDRESS',
SWAP_RESTART = 'SWAP_RESTART',
SWAP_LOAD_BITY_RATES_REQUESTED = 'SWAP_LOAD_BITY_RATES_REQUESTED',
SWAP_LOAD_SHAPESHIFT_RATES_REQUESTED = 'SWAP_LOAD_SHAPESHIFT_RATES_REQUESTED',
SWAP_LOAD_BITY_RATES_FAILED = 'SWAP_LOAD_BITY_RATES_FAILED',
SWAP_LOAD_SHAPESHIFT_RATES_FAILED = 'SWAP_LOAD_SHAPESHIFT_RATES_FAILED',
SWAP_STOP_LOAD_BITY_RATES = 'SWAP_STOP_LOAD_BITY_RATES',
SWAP_STOP_LOAD_SHAPESHIFT_RATES = 'SWAP_STOP_LOAD_SHAPESHIFT_RATES',
SWAP_ORDER_TIME = 'SWAP_ORDER_TIME',
SWAP_BITY_ORDER_CREATE_SUCCEEDED = 'SWAP_BITY_ORDER_CREATE_SUCCEEDED',
SWAP_SHAPESHIFT_ORDER_CREATE_SUCCEEDED = 'SWAP_SHAPESHIFT_ORDER_CREATE_SUCCEEDED',
SWAP_BITY_ORDER_STATUS_SUCCEEDED = 'SWAP_BITY_ORDER_STATUS_SUCCEEDED',
SWAP_SHAPESHIFT_ORDER_STATUS_SUCCEEDED = 'SWAP_SHAPESHIFT_ORDER_STATUS_SUCCEEDED',
SWAP_BITY_ORDER_STATUS_REQUESTED = 'SWAP_BITY_ORDER_STATUS_REQUESTED',
SWAP_SHAPESHIFT_ORDER_STATUS_REQUESTED = 'SWAP_SHAPESHIFT_ORDER_STATUS_REQUESTED',
SWAP_ORDER_START_TIMER = 'SWAP_ORDER_START_TIMER',
SWAP_ORDER_STOP_TIMER = 'SWAP_ORDER_STOP_TIMER',
SWAP_START_POLL_BITY_ORDER_STATUS = 'SWAP_START_POLL_BITY_ORDER_STATUS',
SWAP_START_POLL_SHAPESHIFT_ORDER_STATUS = 'SWAP_START_POLL_SHAPESHIFT_ORDER_STATUS',
SWAP_STOP_POLL_BITY_ORDER_STATUS = 'SWAP_STOP_POLL_BITY_ORDER_STATUS',
SWAP_STOP_POLL_SHAPESHIFT_ORDER_STATUS = 'SWAP_STOP_POLL_SHAPESHIFT_ORDER_STATUS',
SWAP_BITY_ORDER_CREATE_REQUESTED = 'SWAP_ORDER_CREATE_REQUESTED',
SWAP_SHAPESHIFT_ORDER_CREATE_REQUESTED = 'SWAP_SHAPESHIFT_ORDER_CREATE_REQUESTED',
SWAP_BITY_ORDER_CREATE_FAILED = 'SWAP_ORDER_CREATE_FAILED',
SWAP_SHAPESHIFT_ORDER_CREATE_FAILED = 'SWAP_SHAPESHIFT_ORDER_CREATE_FAILED',
SWAP_CHANGE_PROVIDER = 'SWAP_CHANGE_PROVIDER',
SWAP_CONFIGURE_LITE_SEND = 'SWAP_CONFIGURE_LITE_SEND',
SWAP_SHOW_LITE_SEND = 'SWAP_SHOW_LITE_SEND'
}
| typescript |
# test builtin sorted
try:
sorted
set
except:
import sys
print("SKIP")
sys.exit()
print(sorted(set(range(100))))
print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2)))
# need to use keyword argument
try:
sorted([], None)
except TypeError:
print("TypeError")
| python |
A Rapid Action Force constable has been booked for allegedly molesting a seven-year-old girl outside the RAF complex at Kuwarsi area here, police said on Monday. An FIR in this connection was filed on Sunday on the complaint of the girl's father and efforts are on to identify the culprit, they said.
According to the girl's father who runs a small shop near the RAF gate, he had left his shop for sometime on Friday leaving his daughter behind when she was molested by the constable who sped away as soon as he saw him approaching. Since the girl had not recognised the culprit the issue could not be taken up further but on Sunday evening the girl spotted the alleged culprit and raised an alarm, he said. When her father chased the constable, he ran inside the RAF compound to seek shelter. A large crowd of protesters gathered at the spot but was prevented from accosting the alleged culprit by the RAF guards posted at the gate, the girl's father claimed. Senior RAF officials who rushed to the spot managed to defuse the situation. They also assured the protesters that the guilty personnel would not be spared. | english |
dos. Topic reduction: Baerg phone calls this the new customer’s “cover blanket. It is its time for you to would their due diligence.” Inside the a balanced industry, she says, this is usually throughout the five working days. Standard sufferers may be the problems that must be satisfied ahead of the customer sees through the pick – plus organizing profit, commissioning a check, and you may learning strata records if applicable. “Once you’ve searched those packages, you might be willing to hand in brand new deposit. When the in those days your weren’t pleased with one thing, including the review otherwise strata documents,” would certainly be in a position to say, you’re not deleting the fresh new victims due to a challenge, which is something similar to the next special testing otherwise levy stated from the strata moments.
4pletion big date: This is the time that house name transfers regarding vendor in order to visitors. “A different way to put it is, this is actually the currency time,” Baerg told you. “This is basically the newest day the customer will have to give total of the last closing costs and last down-payment toward notary attorneys.” Not to feel mistaken for the fresh arms time.
5. Fingers big date: Break out the Wine; you are now happy to pour particular on the the fresh new floors. “This is actually the day you really get the important factors,” Baerg told you. “Usually, it’s you to four weeks adopting the end date.” This is as well as the date the latest homeowner can expect a current using their realtor, according to the agent. Baerg claims you to this woman is continue this lady clients’ occasion current as the a wonder for the moment.
6. Assets Revelation Statement: “Keeps indeed there been people flames otherwise water damage and mold, were there people unique levies otherwise proposed special levies, what is the restoration percentage, what exactly is within the maintenance commission?” Such questions and a lot more is answered because of the provider inside declaration.
seven. Unique levy/assessment: This can be a price you’ll need for the next endeavor, including rooftop solutions or screen substitute for, that a beneficial strata was believed. When there is diminished profit the Contingency Reserve Funds, the amount required are split up certainly individual gadgets predicated on unit entitlement, including the measurements of these devices.
8. Contingency Put aside Money: The newest CRF ‘s the currency you to a good strata possess squirrelled away to have a wet day. Money on fund arises from a month-to-month repairs payment reduced from the for every single product. The fee along with pays for the new caretaking regarding a building’s common portion.
| english |
package org.nlp2rdf.vm.olia.models;
import org.apache.commons.collections.map.MultiValueMap;
import java.util.ArrayList;
import java.util.HashMap;
public class Meno {
public static MultiValueMap links = MultiValueMap.decorate(new HashMap<String, ArrayList<String>>());
static {
links.put("http://purl.org/olia/meno.owl#PInd", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#PInd", "http://purl.org/olia/olia.owl#IndefinitePronoun");
links.put("http://purl.org/olia/meno.owl#PInd", "http://purl.org/olia/olia.owl#Pronoun");
links.put("http://purl.org/olia/meno.owl#Adjective", "http://purl.org/olia/olia.owl#Adjective");
links.put("http://purl.org/olia/meno.owl#Adverb", "http://purl.org/olia/olia.owl#Adverb");
links.put("http://purl.org/olia/meno.owl#CC", "http://purl.org/olia/olia.owl#Conjunction");
links.put("http://purl.org/olia/meno.owl#CC", "http://purl.org/olia/olia.owl#CoordinatingConjunction");
links.put("http://purl.org/olia/meno.owl#DDet", "http://purl.org/olia/olia.owl#Determiner");
links.put("http://purl.org/olia/meno.owl#DDet", "http://purl.org/olia/olia.owl#AttributivePronoun");
links.put("http://purl.org/olia/meno.owl#DDet", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#DDet", "http://purl.org/olia/olia.owl#Pronoun");
links.put("http://purl.org/olia/meno.owl#DDet", "http://purl.org/olia/olia.owl#DemonstrativeDeterminer");
links.put("http://purl.org/olia/meno.owl#Imperative", "http://purl.org/olia/olia.owl#FiniteVerb");
links.put("http://purl.org/olia/meno.owl#Imperative", "http://purl.org/olia/olia.owl#ImperativeVerb");
links.put("http://purl.org/olia/meno.owl#Imperative", "http://purl.org/olia/olia.owl#Verb");
links.put("http://purl.org/olia/meno.owl#u", "http://purl.org/olia/olia.owl#Residual");
links.put("http://purl.org/olia/meno.owl#PronounOrDeterminer", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#Unassigned", "http://purl.org/olia/olia.owl#Residual");
links.put("http://purl.org/olia/meno.owl#PInt", "http://purl.org/olia/olia.owl#Pronoun");
links.put("http://purl.org/olia/meno.owl#PInt", "http://purl.org/olia/olia.owl#WHPronoun");
links.put("http://purl.org/olia/meno.owl#PInt", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#PInt", "http://purl.org/olia/olia.owl#InterrogativePronoun");
links.put("http://purl.org/olia/meno.owl#AT", "http://purl.org/olia/olia.owl#Article");
links.put("http://purl.org/olia/meno.owl#AT", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#AT", "http://purl.org/olia/olia.owl#Determiner");
links.put("http://purl.org/olia/meno.owl#VPresPart", "http://purl.org/olia/olia.owl#Verb");
links.put("http://purl.org/olia/meno.owl#VPresPart", "http://purl.org/olia/olia.owl#Participle");
links.put("http://purl.org/olia/meno.owl#VPresPart", "http://purl.org/olia/olia.owl#NonFiniteVerb");
links.put("http://purl.org/olia/meno.owl#PPer3", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#PPer3", "http://purl.org/olia/olia.owl#PersonalPronoun");
links.put("http://purl.org/olia/meno.owl#PPer3", "http://purl.org/olia/olia.owl#PersReflPronoun");
links.put("http://purl.org/olia/meno.owl#PPer3", "http://purl.org/olia/olia.owl#ThirdPersonPronoun");
links.put("http://purl.org/olia/meno.owl#PPer3", "http://purl.org/olia/olia.owl#Pronoun");
links.put("http://purl.org/olia/meno.owl#PPer1", "http://purl.org/olia/olia.owl#Pronoun");
links.put("http://purl.org/olia/meno.owl#PPer1", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#PPer1", "http://purl.org/olia/olia.owl#PersonalPronoun");
links.put("http://purl.org/olia/meno.owl#PPer1", "http://purl.org/olia/olia.owl#FirstPersonPronoun");
links.put("http://purl.org/olia/meno.owl#PPer1", "http://purl.org/olia/olia.owl#PersReflPronoun");
links.put("http://purl.org/olia/meno.owl#Interjection", "http://purl.org/olia/olia.owl#Interjection");
links.put("http://purl.org/olia/meno.owl#SubjunctiveVerb", "http://purl.org/olia/olia.owl#FiniteVerb");
links.put("http://purl.org/olia/meno.owl#SubjunctiveVerb", "http://purl.org/olia/olia.owl#Verb");
links.put("http://purl.org/olia/meno.owl#SubjunctiveVerb", "http://purl.org/olia/olia.owl#SubjunctiveVerb");
links.put("http://purl.org/olia/meno.owl#xCS", "http://purl.org/olia/olia.owl#SubordinatingConjunction");
links.put("http://purl.org/olia/meno.owl#xCS", "http://purl.org/olia/olia.owl#Conjunction");
links.put("http://purl.org/olia/meno.owl#CS", "http://purl.org/olia/olia.owl#SubordinatingConjunction");
links.put("http://purl.org/olia/meno.owl#CS", "http://purl.org/olia/olia.owl#Conjunction");
links.put("http://purl.org/olia/meno.owl#InfinitiveMarker", "http://purl.org/olia/olia.owl#Unique");
links.put("http://purl.org/olia/meno.owl#NP", "http://purl.org/olia/olia.owl#ProperNoun");
links.put("http://purl.org/olia/meno.owl#NP", "http://purl.org/olia/olia.owl#Noun");
links.put("http://purl.org/olia/meno.owl#RelativeParticle", "http://purl.org/olia/olia.owl#Unique");
links.put("http://purl.org/olia/meno.owl#RelativeParticle", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#RelativeParticle", "http://purl.org/olia/olia.owl#RelativePronoun");
links.put("http://purl.org/olia/meno.owl#RelativeParticle", "http://purl.org/olia/olia.owl#WHPronoun");
links.put("http://purl.org/olia/meno.owl#RelativeParticle", "http://purl.org/olia/olia.owl#Conjunction");
links.put("http://purl.org/olia/meno.owl#RelativeParticle", "http://purl.org/olia/olia.owl#Pronoun");
links.put("http://purl.org/olia/meno.owl#RelativeParticle", "http://purl.org/olia/olia.owl#SubordinatingConjunction");
links.put("http://purl.org/olia/meno.owl#xCU", "http://purl.org/olia/olia.owl#Conjunction");
links.put("http://purl.org/olia/meno.owl#Infinitive", "http://purl.org/olia/olia.owl#Infinitive");
links.put("http://purl.org/olia/meno.owl#Infinitive", "http://purl.org/olia/olia.owl#NonFiniteVerb");
links.put("http://purl.org/olia/meno.owl#Infinitive", "http://purl.org/olia/olia.owl#Verb");
links.put("http://purl.org/olia/meno.owl#IndicativeVerb", "http://purl.org/olia/olia.owl#IndicativeVerb");
links.put("http://purl.org/olia/meno.owl#IndicativeVerb", "http://purl.org/olia/olia.owl#FiniteVerb");
links.put("http://purl.org/olia/meno.owl#IndicativeVerb", "http://purl.org/olia/olia.owl#Verb");
links.put("http://purl.org/olia/meno.owl#xCC", "http://purl.org/olia/olia.owl#CoordinatingConjunction");
links.put("http://purl.org/olia/meno.owl#xCC", "http://purl.org/olia/olia.owl#Conjunction");
links.put("http://purl.org/olia/meno.owl#NC", "http://purl.org/olia/olia.owl#Noun");
links.put("http://purl.org/olia/meno.owl#NC", "http://purl.org/olia/olia.owl#CommonNoun");
links.put("http://purl.org/olia/meno.owl#Adposition", "http://purl.org/olia/olia.owl#Adposition");
links.put("http://purl.org/olia/meno.owl#Adposition", "http://purl.org/olia/olia.owl#Preposition");
links.put("http://purl.org/olia/meno.owl#PPer2", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#PPer2", "http://purl.org/olia/olia.owl#SecondPersonPronoun");
links.put("http://purl.org/olia/meno.owl#PPer2", "http://purl.org/olia/olia.owl#PersonalPronoun");
links.put("http://purl.org/olia/meno.owl#PPer2", "http://purl.org/olia/olia.owl#PersReflPronoun");
links.put("http://purl.org/olia/meno.owl#PPer2", "http://purl.org/olia/olia.owl#Pronoun");
links.put("http://purl.org/olia/meno.owl#DPos", "http://purl.org/olia/olia.owl#PossessiveDeterminer");
links.put("http://purl.org/olia/meno.owl#DPos", "http://purl.org/olia/olia.owl#Pronoun");
links.put("http://purl.org/olia/meno.owl#DPos", "http://purl.org/olia/olia.owl#PossessivePronoun");
links.put("http://purl.org/olia/meno.owl#DPos", "http://purl.org/olia/olia.owl#AttributivePronoun");
links.put("http://purl.org/olia/meno.owl#DPos", "http://purl.org/olia/olia.owl#PronounOrDeterminer");
links.put("http://purl.org/olia/meno.owl#DPos", "http://purl.org/olia/olia.owl#Determiner");
links.put("http://purl.org/olia/meno.owl#_preterite_participle", "http://purl.org/olia/olia.owl#NonFiniteVerb");
links.put("http://purl.org/olia/meno.owl#_preterite_participle", "http://purl.org/olia/olia.owl#Participle");
links.put("http://purl.org/olia/meno.owl#_preterite_participle", "http://purl.org/olia/olia.owl#Verb");
links.put("http://purl.org/olia/meno.owl#NUO", "http://purl.org/olia/olia.owl#Quantifier");
links.put("http://purl.org/olia/meno.owl#NUO", "http://purl.org/olia/olia.owl#Numeral");
links.put("http://purl.org/olia/meno.owl#NUO", "http://purl.org/olia/olia.owl#OrdinalNumber");
links.put("http://purl.org/olia/meno.owl#NUC", "http://purl.org/olia/olia.owl#CardinalNumber");
links.put("http://purl.org/olia/meno.owl#NUC", "http://purl.org/olia/olia.owl#Numeral");
links.put("http://purl.org/olia/meno.owl#NUC", "http://purl.org/olia/olia.owl#Quantifier");
}
public static MultiValueMap hasTag = MultiValueMap.decorate(new HashMap<String, ArrayList<String>>());
static {
hasTag.put("CC", "http://purl.org/olia/meno.owl#CC");
hasTag.put("NP", "http://purl.org/olia/meno.owl#NP");
hasTag.put("DPos", "http://purl.org/olia/meno.owl#DPos");
hasTag.put("PInt", "http://purl.org/olia/meno.owl#PInt");
hasTag.put("NUC", "http://purl.org/olia/meno.owl#NUC");
hasTag.put("xCU", "http://purl.org/olia/meno.owl#xCU");
hasTag.put("NUO", "http://purl.org/olia/meno.owl#NUO");
hasTag.put("PInd", "http://purl.org/olia/meno.owl#PInd");
hasTag.put("VPresPart", "http://purl.org/olia/meno.owl#VPresPart");
hasTag.put("AT", "http://purl.org/olia/meno.owl#AT");
hasTag.put("CS", "http://purl.org/olia/meno.owl#CS");
hasTag.put("NC", "http://purl.org/olia/meno.owl#NC");
hasTag.put("xCS", "http://purl.org/olia/meno.owl#xCS");
hasTag.put("PPer3", "http://purl.org/olia/meno.owl#PPer3");
hasTag.put("PPer1", "http://purl.org/olia/meno.owl#PPer1");
hasTag.put("xVB_fF", "http://purl.org/olia/meno.owl#xVB_fF");
hasTag.put("xCC", "http://purl.org/olia/meno.owl#xCC");
hasTag.put("PPer2", "http://purl.org/olia/meno.owl#PPer2");
hasTag.put("DDet", "http://purl.org/olia/meno.owl#DDet");
hasTag.put("u", "http://purl.org/olia/meno.owl#u");
}
}
| java |
Your login session has expired. Please logout and login again.
Sportskeeda tries to find out the hidden stories from former India cricketer L Balaji's cricket den. Some interesting stories about Sachin Tendulkar, India-Pakistan 2004 series, Brett Lee, Chennai Super Kings and many more.
Sort by:
Delete the comment?
Delete the comment?
| english |
<filename>package.json
{
"name": "@joshoy/quartz-cron-parser",
"version": "0.1.5",
"description": "A quartz cron expression parser",
"main": "dist/index.js",
"types": "dist/types/src/index.d.ts",
"repository": "<EMAIL>:JoshOY/quartz-cron-parser.git",
"author": "<NAME> <<EMAIL>>",
"keywords": [
"quartz-cron",
"quartz",
"cron-expression",
"parser",
"validator"
],
"files": [
"dist/types/src/grammar.d.ts",
"dist/types/src/index.d.ts",
"dist/index.js",
"dist/index.min.js"
],
"license": "MIT",
"scripts": {
"gen-parser": "nearleyc ./src/grammar.ne -o ./src/grammar.js",
"build": "npm run gen-parser && rimraf ./dist && rollup -c rollup.config.js",
"release": "npm run build && npm publish --access=public --registry=https://registry.npmjs.org",
"test": "jest"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/jest": "^26.0.23",
"@types/nearley": "^2.11.1",
"jest": "^27.0.3",
"moo": "^0.5.1",
"nearley": "^2.20.1",
"rimraf": "^3.0.2",
"rollup": "^2.50.5",
"rollup-plugin-dts": "^3.0.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^27.0.3",
"tslib": "^2.2.0",
"typescript": "^4.3.2"
}
}
| json |
<reponame>eyl056/tech-interview-for-developer<filename>Web/OAuth.md
## OAuth
> Open Authentification
인터넷 사용자들이 비밀번호를 제공하지 않고, 다른 웹사이트 상의 자신들의 정보에 대해 웹사이트나 애플리케이션의 접근 권한을 부여할 수있는 개방형 표준 방법
<br>
이러한 매커니즘은 구글, 페이스북, 트위터 등이 사용하고 있으며 타사 애플리케이션 및 웹사이트의 계정에 대한 정보를 공유할 수 있도록 허용해준다.
<br>
<br>
#### 사용 용어
---
- **사용자** : 계정을 가지고 있는 개인
- **소비자** : OAuth를 사용해 서비스 제공자에게 접근하는 웹사이트 or 애플리케이션
- **서비스 제공자** : OAuth를 통해 접근을 지원하는 웹 애플리케이션
- **소비자 비밀번호** : 서비스 제공자에서 소비자가 자신임을 인증하기 위한 키
- **요청 토큰** : 소비자가 사용자에게 접근권한을 인증받기 위해 필요한 정보가 담겨있음
- **접근 토큰** : 인증 후에 사용자가 서비스 제공자가 아닌 소비자를 통해 보호 자원에 접근하기 위한 키 값
<br>
토큰 종류로는 Access Token과 Refresh Token이 있다.
Access Token은 만료시간이 있고 끝나면 다시 요청해야 한다. Refresh Token은 만료되면 아예 처음부터 진행해야 한다.
<br>
#### 인증 과정
---
> 소비자 <-> 서비스 제공자
1. 소비자가 서비스 제공자에게 요청토큰을 요청한다.
2. 서비스 제공자가 소비자에게 요청토큰을 발급해준다.
3. 소비자가 사용자를 서비스제공자로 이동시킨다. 여기서 사용자 인증이 수행된다.
4. 서비스 제공자가 사용자를 소비자로 이동시킨다.
5. 소비자가 접근토큰을 요청한다.
6. 서비스제공자가 접근토큰을 발급한다.
7. 발급된 접근토큰을 이용해서 소비자에서 사용자 정보에 접근한다.
<br> | markdown |
CSK captain gives suggestions to Shivam Dube: The veteran cricketer was seen giving suggestions to the rookie all-rounder.
According to Royal Challengers Bangalore captain Virat Kohli, the only positive in his team getting all out on 70 was that a game like this being out of their way now. While that might be the only positive in an otherwise shambolic performance from Royal Challengers as a team, some of their rookie players searched for positives even after the match got over.
In what was a successful attempt on the part of these players, they ended up getting to meet Chennai Super Kings captain Mahendra Singh Dhoni for an on-field discussion after the match got over.
It was the all-rounder-duo of Washington Sundar and Shivam Dube who were witnessed receiving advises from the veteran cricketer. Standing near the sponsor boards, Dube seemed to be asking some batting tips from MS Dhoni.
For someone who bats lower down the order and has come with a reputation of finishing innings, Dube will have no one better than Dhoni to ask for suggestions on this division on cricket. Having done that, the Mumbai cricketer gave the impression of making the most of his off-the-field opportunity.
Coming on the back of some praiseworthy all-round performances, Dube made his IPL debut last night. Coming in to bat at No. 6 in the ninth over, the 25-year old cricketer didn’t last for more than two deliveries against veteran Super Kings spinner Imran Tahir.
Walking back to the pavilion for a duck on a much-discussed IPL debut would have been the last thing on Dube’s mind, but RCB are expected to give him a long run this season.
Watch the full video below:
How Twitter reacted:
For more IPL-related news, click here.
| english |
{"ast":null,"code":"import _extends from '@babel/runtime/helpers/esm/extends';\nimport React from 'react';\nimport { S as Select } from '../../dist/Select-09b3775e.esm.js';\nimport { u as useStateManager } from '../../dist/useStateManager-783b07d5.esm.js';\nimport { u as useCreatable } from '../../dist/useCreatable-00a6568c.esm.js';\nexport { u as useCreatable } from '../../dist/useCreatable-00a6568c.esm.js';\nimport '../../dist/index-c7a4d7ce.esm.js';\nimport '@emotion/react';\nimport '@babel/runtime/helpers/taggedTemplateLiteral';\nimport '@babel/runtime/helpers/objectWithoutProperties';\nimport '@babel/runtime/helpers/typeof';\nimport '@babel/runtime/helpers/classCallCheck';\nimport '@babel/runtime/helpers/createClass';\nimport '@babel/runtime/helpers/inherits';\nimport '@babel/runtime/helpers/defineProperty';\nimport 'react-dom';\nimport '@babel/runtime/helpers/toConsumableArray';\nimport 'memoize-one';\nimport '@babel/runtime/helpers/slicedToArray';\nvar CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var creatableProps = useStateManager(props);\n var selectProps = useCreatable(creatableProps);\n return /*#__PURE__*/React.createElement(Select, _extends({\n ref: ref\n }, selectProps));\n});\nexport default CreatableSelect;","map":{"version":3,"sources":["/Users/optiologicdeveloper/rnProjects/trunk-ui/node_modules/react-select/creatable/dist/react-select.esm.js"],"names":["_extends","React","S","Select","u","useStateManager","useCreatable","CreatableSelect","forwardRef","props","ref","creatableProps","selectProps","createElement"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,CAAC,IAAIC,MAAd,QAA4B,mCAA5B;AACA,SAASC,CAAC,IAAIC,eAAd,QAAqC,4CAArC;AACA,SAASD,CAAC,IAAIE,YAAd,QAAkC,yCAAlC;AACA,SAASF,CAAC,IAAIE,YAAd,QAAkC,yCAAlC;AACA,OAAO,kCAAP;AACA,OAAO,gBAAP;AACA,OAAO,8CAAP;AACA,OAAO,gDAAP;AACA,OAAO,+BAAP;AACA,OAAO,uCAAP;AACA,OAAO,oCAAP;AACA,OAAO,iCAAP;AACA,OAAO,uCAAP;AACA,OAAO,WAAP;AACA,OAAO,0CAAP;AACA,OAAO,aAAP;AACA,OAAO,sCAAP;AAEA,IAAIC,eAAe,GAAG,aAAaN,KAAK,CAACO,UAAN,CAAiB,UAAUC,KAAV,EAAiBC,GAAjB,EAAsB;AACxE,MAAIC,cAAc,GAAGN,eAAe,CAACI,KAAD,CAApC;AACA,MAAIG,WAAW,GAAGN,YAAY,CAACK,cAAD,CAA9B;AACA,SAAO,aAAaV,KAAK,CAACY,aAAN,CAAoBV,MAApB,EAA4BH,QAAQ,CAAC;AACvDU,IAAAA,GAAG,EAAEA;AADkD,GAAD,EAErDE,WAFqD,CAApC,CAApB;AAGD,CANkC,CAAnC;AAQA,eAAeL,eAAf","sourcesContent":["import _extends from '@babel/runtime/helpers/esm/extends';\nimport React from 'react';\nimport { S as Select } from '../../dist/Select-09b3775e.esm.js';\nimport { u as useStateManager } from '../../dist/useStateManager-783b07d5.esm.js';\nimport { u as useCreatable } from '../../dist/useCreatable-00a6568c.esm.js';\nexport { u as useCreatable } from '../../dist/useCreatable-00a6568c.esm.js';\nimport '../../dist/index-c7a4d7ce.esm.js';\nimport '@emotion/react';\nimport '@babel/runtime/helpers/taggedTemplateLiteral';\nimport '@babel/runtime/helpers/objectWithoutProperties';\nimport '@babel/runtime/helpers/typeof';\nimport '@babel/runtime/helpers/classCallCheck';\nimport '@babel/runtime/helpers/createClass';\nimport '@babel/runtime/helpers/inherits';\nimport '@babel/runtime/helpers/defineProperty';\nimport 'react-dom';\nimport '@babel/runtime/helpers/toConsumableArray';\nimport 'memoize-one';\nimport '@babel/runtime/helpers/slicedToArray';\n\nvar CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var creatableProps = useStateManager(props);\n var selectProps = useCreatable(creatableProps);\n return /*#__PURE__*/React.createElement(Select, _extends({\n ref: ref\n }, selectProps));\n});\n\nexport default CreatableSelect;\n"]},"metadata":{},"sourceType":"module"} | json |
[China Packaging Network News] Nowadays, with the rapid advancement of technology, new technologies and new technologies are gradually emerging. The excellent performance characteristics are constantly impacting the traditional processing methods and injecting momentum into current processing production.
Since the advent of laser technology, with its unique advantages and excellent performance characteristics, it has been favored by many enterprises and widely used in many industries. Its unique processing form provides many creative ideas for production and processing. So, what happens when laser technology is integrated into the printing industry?
has experienced people's criticism and questioning. Each innovation is the performance of the development of science and technology. The control system has experienced the large-format era, the rotating mirror era and the galvanometer era in the field of laser marking machines. The control mode has also completed a series of evolutions from software direct control to real-time processing and time-division multiplexing. Today, semiconductor lasers and optical fibers The emergence of lasers and ultrafast lasers poses new challenges to optical process control.
The laser machine has the advantages of high engraving accuracy, non-contact, permanent, anti-counterfeiting, and high processing efficiency. Compared with traditional screen printing and pad printing machines, what are the advantages and disadvantages?
We first distinguish from the color, the laser can not hit a variety of colors so far, it is through the light of high temperature and chemical reaction of the material surface, showing the color, usually three kinds of black, white, yellow. Screen printing, printing of colors they can show, colorful, it is through the ink mix, ink only has six basic colors, red, yellow, blue, black and white, and a variety of colors from the six colors of the reconcile Matching ratio.
From the perspective of production applications, we can appreciate the charm of laser marking machines from six angles: speed, efficiency, degree of use, difficulty of operation, potential safety hazards, and product demand.
Speed, laser from the typesetting to LOGO forming, occupy an absolute advantage, get rid of the screen printing, printing, from the production of film - plate - weaving network - drying plate - transfer ink - fixture - printed on the LOGO. Every step in the middle can't go wrong. The complexity of the process is far beyond your imagination. The laser from the graphics - typesetting - positioning - play LOGO, the middle process as long as the two software, the operation is simple, the error rate is low.
In terms of efficiency, lasers are free from consumables, eliminating the need for ink in screen printing. In the operation of the worker, the laser only needs to adjust the image file. In the process of using the screen printing, the workers are required to pay attention to whether the network is blocked or not. The printed image has a section, the mesh surface is neat, and the external environment is clean and dust-free.
The extent of the use of silk screen or occupy the bulk of the market, after all, it is veteran, in many products LOGO expression laser is not as good as the colorful changes in silk screen, laser's single color limits the development of laser in many industries.
In terms of operation difficulty, the laser marking operation is simple and the screen printing operation is meticulous. The laser operation pays attention to the operation software of the CDR and the laser machine. Therefore, as long as you learn about the computer, it is not an issue. In silk screen printing, you first need to select the ink, choose the color you want, and get the color you want through the combination of one or more colors. Put the ink into the stencil. You must devote yourself to the process of using it. Each time you print a part of your product, you will have to repeat several actions, the strength of the doctor blade, whether the screen is blocked, whether the screen is dirty, the amount of ink, and the uniformity of the ink printed on the product.
In terms of safety hazards, lasers are dazzling glare, and the inks are volatile gases. Lasers will inevitably produce some smoke and dust when playing LOGO. Ink (components) will produce an odor during the process of reconciliation and printing. These are all harmful to the body, but the laser can be equipped with ventilation. This problem is solved by the machine, and silk screen printing is indeed unable to effectively improve the entire work environment.
In terms of product demand, the comprehensiveness of laser aspects is still far higher than that of screen printing. Lasers are far superior to screen printing in terms of LOGO forming, speed, operation, and manpower.
Such as laser marking machine in the electronic industry applications, in the application of aerospace technology, in the application of sanitary ware and cosmetics, food packaging, pharmaceutical packaging and a wide range of metal and non-metallic materials. Such as these shows that the laser marking machine has penetrated into all aspects of people's lives and work. In short, because the performance of laser marking machines is far higher than the advantages of traditional screen printing and pad printing machines, its application prospects can be foreseen. Laser marking machines will also have a small market in the future, even as the process requirements increase.
| english |
LAHORE: Haider Rasool has become country’s first ever international hockey umpire to complete a century of supervising international hockey matches.
He gained this unique distinction of standing in his 100th match during hockey world league in Johannesburg, South Africa on Thursday, said the information made available to APP here on Friday.
Before the start of the Hockey World League match Germany and South Africa Haider received the Golden Whistle from the FIH. The golden whistle is awarded to umpires on completing 100 senior international matches.
Haider a former national goal keeper also attended quite a few national camps including the one for the World Cup 1998. He started to blow whistle on domestic circuit in 2002 and next year attended an umpiring seminar conducted by the Asian Hockey Federation in the Malaysian city of Ipoh.
He umpired his first tournament outside Pakistan: 2nd edition of the Indian Premier League, in 2004.
Declared ‘International Umpire’ in 2005 by the FIH.
First Junior International Tournament (6-Nation in Malaysia) in 2005.
First Senior International Tournament (MIA International Challenge, Singapore) in August 2005.
Managers, Haider was promoted to the ‘Promising Umpires’ list of the FIH in Feb, 2008.
This enabled him to stand, among others, in continental tournaments like the Pan Am Championships (2008) and the Asian Games (2010) as well as other high profile events such as the Junior World Cup (2009) and the Commonwealth Games (2010).
Again, his consistently high quality performance got him excellent evaluations, and Haider Rasool became a ‘Grade 1’ international umpire in Dec 2010. This up gradation enabled him to stand in the Champions Trophy’s editions.
Next step up was the ‘World Development Panel’ in 2013, a notch below the World Panel (the top most tier). He was among the reserves for the Olympics in 2012 and 2016.
Haider is very hopeful to blow whistle in the 2018 World Cup and also to be promoted to the World Panel- soon.
“I am very delighted to stand in my 100th international match and I am thankful to Allah Almighty for giving me this honour”, Haider told APP.
He attributes his success as an international hockey umpire to his country.
“I am thankful to Pakistan Hockey Federation for extending help and support to me to achieve a milestone in my hockey career to have supervised one hundred international matches”, he said.
| english |
Carlos Maza, a video producer for the news site Vox, said the harassment began about two years ago.
Steven Crowder, a right-wing commentator and comedian, had begun to call out Maza's sexuality and his race - Maza is gay and Latino - in some of his videos on YouTube.
And last week, Maza said, he finally grew sick of it. He edited a video of all the epithets that Crowder hurled at him over the last couple of years into a video and uploaded it to Twitter.
In an edited video compilation, Crowder calls Maza a "lispy sprite," a "little queer," "Mr. Gay Vox," "Mr. Lispy queer from Vox," "an angry little queer," "gay Mexican," "gay Latino from Vox," and more. Crowder also breaks into a caricatured gay voice at points and appears to pantomime oral sex with his microphone. During one of the segments, Crowder wears a shirt that says "Socialism is for f--s. "
The tweet took off, and YouTube said in response that it would investigate Crowder's videos. But the company announced Tuesday night that Crowder's videos didn't violate its policies and that it would leave them on the site. The decision drew a torrent of criticism as concerns grow about YouTube's resolve to moderate its content.
Maza, who is of Cuban descent and has been open about his sexuality online, said he was upset by YouTube's decision, saying he believed the company was allowing itself to be used for racial and sexual harassment.
"It seems to me to be a clear violation of that policy," he said in an interview. "I understand that speech always involves gray areas, but that it's hard to enforce hate speech policies should not distract from the fact that it's sometimes extremely clear-cut. And this seems to be one of those cases. "
YouTube's policy explicitly forbids hate speech, which it defines as "content promoting violence or hatred" against people or groups based on things such as race, sexuality, nationality, immigration status and other things.
Using stereotypes that promote hatred is also prohibited. The company also forbids "behavior intended to maliciously harass, threaten, or bully others," including content that "is deliberately posted in order to humiliate someone" or that "makes hurtful and negative personal comments/videos about another person. "
But it said Crowder's videos did not violate any of these policies.
"Our teams spent the last few days conducting an in-depth review of the videos flagged to us, and while we found language that was clearly hurtful, the videos as posted don't violate our policies," the company said in a statement posted to social media on Tuesday. "As an open platform, it's crucial for us to allow everyone-from creators to journalists to late-night TV hosts-to express their opinions w/in the scope of our policies. Opinions can be deeply offensive, but if they don't violate our policies, they'll remain on our site. "
On Wednesday, the company changed course, despite the findings of its first "in-depth review," saying it decided to suspend Crowder's ability to run ads on and monetize his videos. The company did not say why its determination had changed overnight.
"We came to this decision because a pattern of egregious actions has harmed the broader community and is against our YouTube Partner Program policies," it said on Twitter.
Gizmodo had published an emailed response that Google's press team had sent to reporters earlier in the day that the tech company said was "okay to paraphrase," but Gizmodo published it in full.
On social media, some people took issue with YouTube's rationale, which they said indicated that hateful expressions could be permitted as long as the opinions were transmitted in the appearance of a debate.
Crowder, who did not respond to an immediate request for comment sent to his website, has defended himself in videos on his channel, saying he's the victim of forces that seek to silence him.
"That's friendly ribbing," he said, of the language he used about Maza. "Did I ever offhandedly use the term lispy queer? I really don't remember it, but it sounds like me. Why? Because you speak with a lisp and you refer to yourself as a queer. . . It's funny, and this is a comedy show. "
Crowder said that the criticism of his videos was an example of a powerful media company, Vox, trying to "silence voices that they don't like. "
YouTube "appears to be broken in some ways that we can't tolerate," Vox Media said in a statement. "By refusing to take a stand on hate speech, they allow the worst of their communities to hide behind cries of 'free speech,' and 'fake news' all while increasingly targeting people with the most offensive and odious harassment. "
But Google's lax enforcement of YouTube has long made it a target of criticism, particularly on the left. The company has regularly been caught flat-footed, taking action only after its content - including a 14-year-old spouting Islamophobia, violent images spliced into children's videos, and white-supremacist and neo-Nazi videos - has been the subject of damning investigations done by media companies a fraction of its size.
That, too, was the case with Maza - the company only responded after he had called it out in a widely shared tweet. And it had only taken action against Crowder after the results of its first review drew such harsh criticism.
Maza told The Washington Post that his company, Vox, first reached out to YouTube last year after he was doxed - someone gave out his cellphone number, a common tactic of online harassers, ahd he was flooded with text messages urging him to debate Crowder - but that the company had ndone nothing in response.
Maza then began to report the videos to YouTube but said he did not receive a response.
"You're just screaming into the ether," he said.
So last week, he said, "something snapped" and he decided to publicly call out the company, despite the unwanted attention it would bring.
"It's my worst nightmare," he said. "Since this has happened I have caught myself being much more aware and self-critical about how I come across on camera. "
YouTube spokeswoman Andrea Faville said Crowder has not ever instructed his followers to harass Maza.
The company also announced what it called a pre-planned update to its service on Wednesday, saying it would take more actions against people who spread misinformation and hate speech. The new policies ban videos that say "a group is superior in order to justify discrimination, segregation, or exclusion," and they include others that "glorify Nazi ideology," the company said.
Maza said the company's embrace of LGBT issues - it changed its logo to rainbow colors amid LGBT Pride Month, and routinely spotlights the work that LGBT creators do on the platform - was hypocritical.
"It's dehumanizing, and it's something I thought YouTube would be more protective about because it brands itself as being a queer space," he said. "But you can't have that space if those people have to worry about being humiliated in front of millions of people every time they want to be themselves. "
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed. ) | english |
Unless it results in Sturm und Drang, change often goes unnoticed, but is inevitable for any progressive event and it does not always mean instantaneous progress. Be it a vagary, be it volition, the seed of change has been sown in Indian cricket. And it is the duty of not just the 15 players, not just the coach, not just the BCCI but also the colossal community of Indian cricket fans, to nurture and to cultivate so that it gives us the fruits of success.
If we, mere watchers, are going through such intense remorse, it is really hard to even imagine what is going on in the minds and hearts of players. They have been playing for the country for many years now and more often than not, made us proud. Isn’t it too early to chastise them? The current situation in Indian cricket can be compared to the break between two shows of a super hit movie – audience of quondam show not able to leave the hall and those of the latter show not able to showcase their maturity, either in waiting or in making their way in to the hall. Isn’t it the responsibility of everyone involved – from the audience to the management – to help and bring the situation back in control? And however, once the break is over and the show begins, peace and order are bound to follow. What matters is the composure in the process of their attainment.
Nevertheless, this kind of turbulence is not very new to Indian cricket. Cricket India has witnessed some unsuccessful patches before too. After 1983 World Cup victory, although we won some matches against sub-continental countries, the first series against others (non sub-continental countries) was won only after 2 years in 1985 and a test series was won only after 3 years. Again in 1995-2000 seasons, we lost almost all away-from-home series and then we made a come-back, and winning the NatWest series is one of the most cherished moments of this come-back. Not to say that we are once again having such a rough phase which will go on for years, but these examples show us that we are going to bounce back, like we always have. It is just that the process is not momentary. It is going to consume some time and we have to wait with patience until that happens.
In the last couple of matches against England, Indian players’ performances in both innings were poles apart. In a team game like cricket, winning when nobody stood out is a good thing to happen, but only one man’s performance standing out in each game and even that one man not able to put it up consistently, is something to be worried about. A good team game should be built up and the captain should lead the building activity from the front. I believe, Dhoni, as a captain, is very much capable of doing that. He backs his youngsters and also has the quality of respecting seniors in his side. He rightly said, “Quitting now is running away from responsibility”. It is not in the nature of great leaders to quit when their team is in chaos. They need to absorb pressure and find a way out of it. Losing does not make good players bad. It just means they are not performing. India has still got quality players and let’s hope that the era of victories will soon return. Let’s wait for the baton to be passed on safely. Otherwise, there is a threat of losing it completely. | english |
The ongoing court case between Epic Games and Apple brought to light a lot of interesting details with respect to Fortnite collaborations. The current season hasn't had many collaborations so far and will not see any. However, the same cannot be said for Fortnite Chapter 2 Season 7.
The upcoming season may see a good deal of collaborations, some of which have been featured in the document.
First things first, a lot of potential skins for Fortnite were leaked in the document. The document talked about a Naruto Uzumaki skin and a Dwayne "The Rock" Johnson Icon Series skin.
Now, many fans believe that The Rock is the voice actor for the Foundation. If that happens to be the case, then The Rock may soon get his own icon series skin.
Other than that, the Naruto Fortnite skin is something that fans are really excited about. One fan even went the extra mile to raise a petition asking Epic Games to release the Naruto Fortnite skin.
As for sports stars, Neymar Jr. is the secret skin for the current Battle Pass. However, he was supposed to arrive in Q3 last year. LeBron James was also mentioned in the files. Neymar Jr. appeared with Fortnite Chapter 2 Season 6, and it's highly likely that LeBron James will be seen next season.
Epic Games is also planning to introduce a basketball mini-game in Fortnite. Since there aren't many concerts happening in the game, the Party Royale segment is practically empty at this point in time. To make use of it, Epic Games is planning to launch a basketball mini-game within Fortnite itself.
Coupled with the LeBron James skin, the basketball mini-game will be a wonderful addition to Fortnite. Other than that, the document contained information about a possible Icon Series skin for Lady Gaga and Ariana Grande.
If these two pop stars get their own Icon Series skins in Fortnite, then their concerts may be on the cards as well.
Finally, those who've been playing Fortnite regularly will have noticed that the battle lab is missing from the game. Epic Games removed it intentionally and will probably be replacing it with a new open-world sandbox mode.
There's no information on if this mode will replace the battle lab completely or coexist with it. Either way, it does look very interesting.
As of now, these are the leaks surrounding Fortnite Chapter 2 Season 7. These leaks may or may not be true. Since most of these features were planned for last year, some of them may have been scrapped already, so it's really difficult to say which one is real and which one isn't.
Keeping that in mind, readers are requested to take this information with a pinch of salt.
The Battle Bus is heading into Fortnite Chapter 4 Season 4 soon! Check out the final Fortnite item shop today!
| english |
<div class="list-group">
<a class="list-group-item"
ng-repeat="topicSummary in topicSummaries"
ng-click="selectOrDeselectTopic(topicSummary.id, $index)"
ng-class="{'list-group-item-success': topicSummary.isSelected}">
<label class="list-group-item-heading"><[topicSummary.name]></label>
<p class="list-group-item-text">Uncategorized Skill Count: <[topicSummary.uncategorized_skill_count]></p>
<p class="list-group-item-text">Status: <[topicSummary.is_published ? 'Published' : 'Not Published']></p>
</a>
</div>
| html |
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "chain-settings.json",
"title": "Chain Settings",
"description": "Preferences about what services are available for a chain",
"type": "object",
"properties": {
"simulationsEnabled": {
"type": "boolean"
},
"zapsEnabled": {
"type": "boolean"
}
},
"required": ["simulationsEnabled", "zapsEnabled"]
}
| json |
export * from './mouse.manager';
export * from './keyboard.manager';
| typescript |
17 At that time (A)Hazael king of Syria went up and fought against Gath and took it. But when Hazael set his face (B)to go up against Jerusalem,
51 When the days drew near for (A)him to be taken up, (B)he set his face (C)to go to Jerusalem.
The Holy Bible, English Standard Version. ESV® Text Edition: 2016. Copyright © 2001 by Crossway Bibles, a publishing ministry of Good News Publishers.
| english |
<reponame>Milo123459/serenity-bot-template<filename>src/commands/info.rs<gh_stars>1-10
use serenity::{
client::Context,
http::Http,
model::interactions::{
application_command::{ApplicationCommand, ApplicationCommandInteraction},
InteractionResponseType,
},
};
pub async fn info_register(http: &Http) {
ApplicationCommand::create_global_application_command(&http, |a| {
a.name("info").description("Template command")
})
.await
.unwrap();
}
pub async fn info_run(ctx: Context, interaction: ApplicationCommandInteraction) {
if let Err(err) = interaction
.create_interaction_response(&ctx.http, |r| {
r.kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|m| m.content("Template command"))
})
.await
{
println!("Cannot respond to slash command: {}", err);
}
}
| rust |
{
"name": "mongodb-portable",
"version": "1.0.1",
"description": "MongoDB driver that does not necessarily require a MongoDB server.",
"main": "lib",
"scripts": {
},
"keywords": [
"mongodb",
"server",
"portable"
],
"author": "<NAME>",
"license": "MIT",
"files": [
"lib",
"test"
],
"homepage": "https://github.com/kdPark0723/mongodb-portable",
"bugs": {
"url": "https://github.com/kdPark0723/mongodb-portable/issues",
"email": "<EMAIL>"
},
"dependencies": {
"mongodb": "^3.5.4",
"mongodb-memory-server": "^6.3.1"
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1"
}
}
| json |
<gh_stars>1-10
import { EOVERFLOW, PRIORITY_BELOW_NORMAL } from "constants";
import { ErrorMapper } from "utils/ErrorMapper";
import * as disassembler from "./logic/disassembler"
import * as drill from "./logic/drill"
import * as worker from "./logic/worker"
import * as remote_miner from "./logic/remote_miner"
import * as scout from "./logic/scout"
import * as claimer from "./logic/claimer"
import * as remote_builder from "./logic/remote_builder"
import * as fighter from "./logic/fighter"
import { RespawnManager } from "./respawn"
import { memoryUsage } from "process";
import { ResourceScheduler } from "./scheduler/resource"
import { JobScheduler } from "./scheduler/job"
import * as fancy from "./scheduler/fancy_job_scheduler"
import * as roomData from "./data/room"
import * as globalData from "./data/global"
import { close } from "fs";
function defendRoom(roomName : string) {
const hostiles = Game.rooms[roomName].find(FIND_HOSTILE_CREEPS);
if (hostiles.length > 0) {
var username = hostiles[0].owner.username;
Game.notify(`User ${username} spotted in room ${roomName}`);
var towers = Game.rooms[roomName].find(
FIND_MY_STRUCTURES, { filter: { structureType: STRUCTURE_TOWER } }) as StructureTower[];
towers.forEach((tower: StructureTower) => { tower.attack(hostiles[0]); });
}
}
class SpawnData {
constructor(public spawn: StructureSpawn) { }
}
class TimingData {
constructor() {
this["builder"] = 0;
this["worker"] = 0;
this["scout"] = 0;
this["drill"] = 0;
this["remote_miner"] = 0;
this["remote_builder"] = 0;
this["claimer"] = 0;
this["fighter"] = 0;
}
[key: string]: number;
}
class CPUMeasurement {
constructor() {
this.last = Game.cpu.getUsed();
}
measure(label: string) {
const now = Game.cpu.getUsed();
console.log(`⚡ CPU spent on ${label} ${now - this.last}`);
this.last = now;
}
private last: number;
}
// When compiling TS to JS and bundling with rollup, the line numbers and file names in error messages change
// This utility uses source maps to get the line numbers and file names of the original, TS source code
export const loop = ErrorMapper.wrapLoop(() => {
console.log(`Current game tick is ${Game.time}`);
const cpuLogger = new CPUMeasurement();
let currentCPU = 0;
const fancySchedulers = new Array<fancy.FancyJobScheduler>();
if (Memory.chunks)
for (let chunkName of Object.keys(Memory.chunks)) {
fancySchedulers.push(fancy.FancyJobScheduler.createScheduler(chunkName));
}
cpuLogger.measure("Fancy Scheduler initialization.");
const rooms = new Map<string, roomData.RoomData>();
for (let room of Object.values(Game.rooms)) {
rooms.set(room.name, new roomData.RoomData(room));
}
const empire = new globalData.Global();
cpuLogger.measure("de-serialization");
const respawnManager = RespawnManager.create();
respawnManager.run();
cpuLogger.measure("respawn logic");
for (let spawn of Object.values(Game.spawns)) {
ResourceScheduler.initResourceScheduler(spawn.room);
JobScheduler.initJobScheduler(spawn.room);
}
cpuLogger.measure("initializing schedulers");
for (let spawn of Object.values(Game.spawns)) {
defendRoom(spawn.room.name);
}
cpuLogger.measure("room defense");
let timing = new TimingData();
let intermediateCPU = currentCPU;
for (const name in Game.creeps) {
var creep = Game.creeps[name];
switch (creep.memory.role) {
/*
case "smartworker":
let state: fancyScheduler.WorkflowState;
while ((state = fancyScheduler.Job.doWorkflowStep(creep)) === fancyScheduler.WorkflowState.WORKFLOW_RETRY);
if (state === fancyScheduler.WorkflowState.WORKFLOW_DONE || state === fancyScheduler.WorkflowState.WORKFLOW_FAILED) {
creep.memory.currentWorkflow = [];
fancyJobScheduler.onCreepAvailable(creep);
}
break;
*/
case "drill":
intermediateCPU = Game.cpu.getUsed();
const room = rooms.get(creep.room.name) as roomData.RoomData;
drill.run(creep, empire);
timing["drill"] += Game.cpu.getUsed() - intermediateCPU;
break;
case "worker":
intermediateCPU = Game.cpu.getUsed();
worker.run(creep);
timing["worker"] += Game.cpu.getUsed() - intermediateCPU;
break;
case "remote_miner":
intermediateCPU = Game.cpu.getUsed();
remote_miner.run(creep);
timing["remote_miner"] += Game.cpu.getUsed() - intermediateCPU;
break;
case "scout":
intermediateCPU = Game.cpu.getUsed();
scout.run(creep, empire);
timing["scout"] += Game.cpu.getUsed() - intermediateCPU;
break;
case "remote_builder":
intermediateCPU = Game.cpu.getUsed();
remote_builder.run(creep);
timing["remote_builder"] += Game.cpu.getUsed() - intermediateCPU;
break;
case "claimer":
intermediateCPU = Game.cpu.getUsed();
claimer.run(creep, empire);
timing["claimer"] += Game.cpu.getUsed() - intermediateCPU;
break;
case "disassembler":
intermediateCPU = Game.cpu.getUsed();
disassembler.run(creep);
timing["disassembler"] += Game.cpu.getUsed() - intermediateCPU;
break;
case "fighter":
intermediateCPU = Game.cpu.getUsed();
fighter.run(creep);
timing["fighter"] += Game.cpu.getUsed() - intermediateCPU;
break;
}
}
for (let key of Object.keys(timing)) {
console.log(`By role CPU spending for ${key} is ${timing[key]}`);
}
cpuLogger.measure("creep logic");
// Automatically delete memory of missing creeps
for (const name in Memory.creeps) {
if (!(name in Game.creeps)) {
//fancyJobScheduler.onCreepDeath(name, Memory.creeps[name]);
delete Memory.creeps[name];
}
}
empire.Serialize();
//fancyJobScheduler.Serialize();
cpuLogger.measure("serialization");
if (Game.shard.name !== "shardSeason" && Game.cpu.bucket > 9000) {
Game.cpu.generatePixel();
}
});
| typescript |
<reponame>Kidel/DesktopSimulation
var apps=[];
function add_app(params){
apps.push(''+
'<div class="window window-'+ params.name +'">'+
'<div class="window-right-click-menu">'+
''+
'</div><!--window-right-click-menu-->'+
'<div class="window-frame">'+
'<div class="window-handle" onmousedown="open_app(\''+ params.name +'\')" onclick="open_app(\''+ params.name +'\')">'+
'</div>'+
'<div class="close-button" onclick="close_app(\''+ params.name +'\')">'+
'x' +
'</div>'+
''+
'<div class="window-contents" onclick="open_app(\''+ params.name +'\')">'+
params.contents +
'</div><!--window-contents-->'+
'</div><!--window-frame-->'+
'</div><!--window-'+ params.name +'-->'+
''+
''+
'<div class="app app-'+ params.name +'" onmousedown="select_app(\''+ params.name +'\')" onclick="select_app(\''+ params.name +'\')" ondblclick="open_app(\''+ params.name +'\')">'+
'<div class="app-right-click-menu">'+
''+
'</div><!--app-right-click-menu-->'+
'<div class="icon">'+
'<img src="img/'+ params.icon +'" alt=" " />'+
'</div><!--icon-->'+
'<div class="app-text">'+
params.name +
'</div><!--app-text-->'+
'</div><!--app-'+ params.name +'-->' +
'');
}
| javascript |
<gh_stars>10-100
version https://git-lfs.github.com/spec/v1
oid sha256:b165367d0037e39a569f8e1ca90244402942a2edc23f176cf1d57a01672e3444
size 17148
| html |
<filename>tests/coins/Algorand.json
[
{
"modifiers": [
"SL4FL4VQRLRN24WMOL5FIDFTRHVU6OTC7VB2THQNEIKBQFHQKGIXMIPGHU"
]
},
{
"modifiers": []
}
] | json |
Studio behind Job Simulator says it will continue to build virtual reality content for different game platforms.
Google has acquired Owlchemy Labs, the VR game studio that created such game titles as Job Simulator and Rick and Morty: Virtual Rick-ality.
The Austin, Texas-based game studio revealed the acquisition in a blog post Wednesday, saying it will continue to build content for the HTC Vive, Oculus Touch, and PlayStation VR after joining Google.
"We are continuing to do all of this with even more support and focus on building awesome stuff," Owlechemy wrote. "It's incredibly exciting that Google and Owlchemy are so well aligned on our goals and vision for the future of VR."
Google confirmed the acquisition in a blog post that praised the company for producing "really thoughtful interactive experiences that are responsive, intuitive, and feel natural."
The acquisition underscores the tech community's commitment to virtual reality, which promises to transport goggle-wearing users to a computer-generated 3D environment. Alphabet, Google's parent company, is said to be investing big money on content for the platform, much of it going toward development of video games and apps, licensing sports leagues and shooting 360-degree videos.
Google's latest entry in the market is Daydream, a hardware and software platform unveiled late last year that runs off Google's Android mobile operating system and helps any Android phone manufacturer create a VR headset themselves.
Terms of the acquisition of Owlchemy Labs weren't revealed.
Virtual reality 101: CNET tells you everything you need to know about what VR is and how it'll affect your life.
Logging Out: Welcome to the crossroads of online life and the afterlife.
| english |
<reponame>HarryHaoLee/Relationship-Analysis-between-Packages
{"name": "autojump", "description": "A cd command that learns - easily navigate directories from the command line", "license": {"key": "other", "name": "Other", "spdx_id": null, "url": null}, "starNum": 6315, "folkNum": 354, "watchNum": 6315, "topic": ["autojump", "command-line-tool", "filesystem", "python"]} | json |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setupIntl } from 'ember-intl/test-support';
import { render, click } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | leadership collapsed', function (hooks) {
setupRenderingTest(hooks);
setupIntl(hooks, 'en-us');
test('it renders', async function (assert) {
assert.expect(3);
this.set('title', 'Test Title');
this.set('directorsCount', 3);
this.set('administratorsCount', 1);
this.set('click', () => {});
await render(hbs`<LeadershipCollapsed
@title={{this.title}}
@directorsCount={{this.directorsCount}}
@administratorsCount={{this.administratorsCount}}
@expand={{this.click}}
@showAdministrators={{true}}
@showDirectors={{true}}
/>`);
const title = '.title';
const table = 'table';
const directorsRow = `${table} tbody tr:nth-of-type(1)`;
const administratorsRow = `${table} tbody tr:nth-of-type(2)`;
const directors = `${directorsRow} td:nth-of-type(2)`;
const administrators = `${administratorsRow} td:nth-of-type(2)`;
assert.dom(title).hasText('Test Title');
assert.dom(directors).hasText('There are 3 directors');
assert.dom(administrators).hasText('There is 1 administrator');
});
test('clicking the header expands the list', async function (assert) {
assert.expect(1);
this.set('click', () => {
assert.ok(true, 'Action was fired');
});
await render(hbs`<LeadershipCollapsed
@directorsCount={{0}}
@administratorsCount={{0}}
@expand={{this.click}}
@showAdministrators={{true}}
@showDirectors={{true}}
/>`);
const title = '.title';
await click(title);
});
test('it renders without directors', async function (assert) {
assert.expect(2);
this.set('title', 'Test Title');
this.set('directorsCount', 3);
this.set('administratorsCount', 1);
this.set('click', () => {});
await render(hbs`<LeadershipCollapsed
@title={{this.title}}
@showDirectors={{false}}
@showAdministrators={{true}}
@directorsCount={{this.directorsCount}}
@administratorsCount={{this.administratorsCount}}
@expand={{this.click}}
/>`);
const title = '.title';
const table = 'table';
const administratorsRow = `${table} tbody tr:nth-of-type(1)`;
const administrators = `${administratorsRow} td:nth-of-type(2)`;
assert.dom(title).hasText('Test Title');
assert.dom(administrators).hasText('There is 1 administrator');
});
test('it renders without administrators', async function (assert) {
assert.expect(2);
this.set('title', 'Test Title');
this.set('directorsCount', 3);
this.set('administratorsCount', 1);
this.set('click', () => {});
await render(hbs`<LeadershipCollapsed
@title={{this.title}}
@showAdministrators={{false}}
@showDirectors={{true}}
@directorsCount={{this.directorsCount}}
@administratorsCount={{this.administratorsCount}}
@expand={{this.click}}
/>`);
const title = '.title';
const table = 'table';
const directorsRow = `${table} tbody tr:nth-of-type(1)`;
const directors = `${directorsRow} td:nth-of-type(2)`;
assert.dom(title).hasText('Test Title');
assert.dom(directors).hasText('There are 3 directors');
});
});
| javascript |
<reponame>maxleaver/dotfiles<gh_stars>1-10
# Max's Dotfiles
This repository helps me setup and maintain my Mac. It takes the effort out of installing everything manually.
## Before you re-install!
Go through the checklist below to make sure you didn't forget anything before you wipe your hard drive!
- Did you commit and push any changes/branches to your git repositories?
- Did you remember to save all important documents from directories that aren't automatically backed up to the cloud?
- Did you save all of your work and settings from apps which aren't synced through iCloud?
- Did you remember to export important data from your local database?
- Did you update [mackup](https://github.com/lra/mackup) to the latest version and run `mackup backup`?
### Installing macOS cleanly
After going through the checklist above and making sure you backed everything up, we're going to cleanly install macOS with the latest release. Follow [this article](https://www.imore.com/how-do-clean-install-macos) to cleanly install the latest macOS version.
### Setting up your Mac
If you did all of the above, follow these install instructions to setup your new Mac:
1. Update macOS to the latest version with the App Store
2. Install Xcode from the App Store, open it and accept the license agreement
3. Install macOS Command Line Tools by running `xcode-select --install`
4. Generate SSH keys (`ssh-keygen`) and make sure the permissions for the resulting files are set to `600`
5. Clone this repo to `~/.dotfiles`
6. Install [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh#getting-started)
6. Run `sh install.sh` to start the installation
7. After mackup is synced with your cloud storage, restore preferences by running `mackup restore`
8. Restart your computer to finalize the process
Your Mac is ready to use!
## Backing up your settings
After installing these dotfiles for the first time or when you install new applications, you'll need to backup all of your settings with Mackup. Back up your settings with the commands below. Your settings will be synced to Dropbox by default, so you can use them to sync between computers and reinstall them when reinstalling your Mac. If you want to save your settings to a different directory or different storage than Dropbox, [check out the documentation](https://github.com/lra/mackup/blob/master/doc/README.md#storage).
```zsh
brew install mackup
mackup backup
```
## Adding app store purchases
Apps purchased to the app store can be added to `Brewfile` and will be installed using [Mac App Store command line interface](https://github.com/mas-cli/mas). A list of installed apps and their app IDs can be obtained by running `mas list`.
| markdown |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import "mocha";
import { strict as assert } from "assert";
import { Monkey, IMonkeyOption } from "../src";
describe("Monkey", () => {
let monkey: Monkey;
beforeEach(() => {
monkey = new Monkey();
});
for (const { start, end } of [
{ start: 0, end: 1 },
{ start: -1, end: 1 },
{ start: -3, end: 5 },
]) {
describe(`chooseInt(min=${start}, max=${end})`, () => {
const next = () => {
const actual = monkey.chooseInt(start, end);
assert(start <= actual && actual < end,
`Expected 'chooseInt(${start}, ${end})' to return a value in the range [${start}..${end}] (inclusive), but got '${actual}'.`);
return actual;
}
it(`must produces values in range [${start}..${end})`, () => {
for (let i = 100; i >= 0; i--) {
next();
}
});
it(`must include start value '${start}'`, () => { while (next() !== start); });
it(`must include end - 1 value '${end - 1}'`, () => { while (next() !== (end - 1)); });
});
}
describe(`chooseString(length=0)`, () => {
it(`must return empty string`, () => {
assert.equal(monkey.chooseString(0), "");
});
});
for (const length of [1, 2, 10]) {
describe(`chooseString(length=${length})`, () => {
it(`must return expected length=${length}`, () => {
assert.equal(monkey.chooseString(length).length, length);
});
it(`must randomly choose characters`, () => {
const init = monkey.chooseString(length);
while (monkey.chooseString(length) === init);
});
it(`must choose characters from alphabet="0"`, () => {
assert.equal(monkey.chooseString(length, "0"), "0".repeat(length));
});
});
}
for (let count = 1; count < 4; count++) {
describe(`choose([options=${count}])`, () => {
const chosen: number[] = new Array(count).fill(0);
const options: IMonkeyOption[] = new Array(count).fill(undefined).map((_, index) => ({
scale: 1,
action: () => { chosen[index]++; }
}));
beforeEach(() => { chosen.fill(0); })
it("Must choose each option", () => {
do {
monkey.choose(options);
} while (chosen.reduce<boolean>((accumulator, value) => accumulator || (value === 0), false));
});
});
}
});
| typescript |
{"template":{"small":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/1.0","medium":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/2.0","large":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/3.0"},"channels":{"tehp":{"title":"Tehp","channel_id":31789290,"link":"http://twitch.tv/tehp","desc":null,"plans":{"$4.99":"12279","$9.99":"38857","$24.99":"38858"},"id":"tehp","first_seen":null,"badge":"https://static-cdn.jtvnw.net/badges/v1/6c678da4-d81c-4964-bec6-46854a689fe3/1","badge_starting":"https://static-cdn.jtvnw.net/badges/v1/6c678da4-d81c-4964-bec6-46854a689fe3/3","badge_3m":null,"badge_6m":null,"badge_12m":null,"badge_24m":null,"badges":[{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/6c678da4-d81c-4964-bec6-46854a689fe3/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/6c678da4-d81c-4964-bec6-46854a689fe3/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/6c678da4-d81c-4964-bec6-46854a689fe3/3","description":"Subscriber","title":"Subscriber","click_action":"subscribe_to_channel","click_url":""}],"bits_badges":null,"cheermote1":null,"cheermote100":null,"cheermote1000":null,"cheermote5000":null,"cheermote10000":null,"set":12279,"emotes":[{"code":"tehpJASMINE","image_id":41045,"set":12279},{"code":"tehpBLEGH","image_id":43539,"set":12279},{"code":"tehpRAGE","image_id":41391,"set":12279},{"code":"tehpLUCY","image_id":44312,"set":12279},{"code":"tehpHEART","image_id":46011,"set":12279},{"code":"tehpLEWD","image_id":41445,"set":12279},{"code":"tehpTHUMP","image_id":48551,"set":12279},{"code":"tehpDED","image_id":180897,"set":12279}]}}}
| json |
<filename>carpyncho.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2020, <NAME>
# License: BSD-3-Clause
# Full Text: https://github.com/carpyncho/carpyncho-py/blob/master/LICENSE
# =============================================================================
# DOCS
# =============================================================================
"""Python client for Carpyncho VVV dataset collection.
This code access as a Pandas DataFrame all the data of the web version of
Carpyncho https://carpyncho.github.io/.
"""
__all__ = ["Carpyncho", "CARPYNCHOPY_DATA_PATH"]
__version__ = "0.0.5"
# =============================================================================
# IMPORTS
# =============================================================================
import os
import io
import bz2
import pathlib
import typing as t
import inspect
import hashlib
import functools
import urllib
import json
import attr
import diskcache as dcache
import tqdm
import humanize
import requests
import clize
import pandas as pd
# =============================================================================
# CONSTANTS
# =============================================================================
VERSION = __version__
#: Location of the entire dataset index.
CARPYNCHO_INDEX_URL = "https://raw.githubusercontent.com/carpyncho/carpyncho-py/master/data/index.json" # noqa
#: Google drive location.
DRIVE_URL = "https://docs.google.com/uc?export=download"
#: Where carpyncho gonna store the entire data.
CARPYNCHOPY_DATA_PATH = pathlib.Path(
os.path.expanduser(os.path.join('~', 'carpyncho_py_data')))
#: Chunk size when the library are download the big files of Carpyncho.
CHUNK_SIZE = 32768
#: Maximun cache size (10TB)
DEFAULT_CACHE_SIZE_LIMIT = int(1e10)
#: The location of the cache catabase and files.
DEFAULT_CACHE_DIR = CARPYNCHOPY_DATA_PATH / "_cache_"
# =============================================================================
# CACHE ORCHESTRATION
# =============================================================================
def from_cache(
cache, tag, function, cache_expire,
force=False, *args, **kwargs
):
"""Simplify cache orchestration.
Parameters
----------
tag: str
Normally every function call the cache with their own tag.
We sugest "module.function" or "module.Class.function"
function: callable
The function to be cached
force: bool (default=False)
If the vale of the cache must be ignored and re-execute the
function.
cache_expire: bool or None
Time in seconds to expire the function call
args and kwargs:
All the parameters needed to execute the function.
Returns
-------
The result of calling the function or the cached version of the same value.
"""
# start the cache orchestration
key = dcache.core.args_to_key(
base=("carpyncho", tag), args=args, kwargs=kwargs, typed=False)
with cache as c:
c.expire()
value = (
dcache.core.ENOVAL if force else
c.get(key, default=dcache.core.ENOVAL, retry=True))
if value is dcache.core.ENOVAL:
value = function(**kwargs)
c.set(
key, value, expire=cache_expire,
tag=f"carpyncho.{tag}", retry=True)
return value
# =============================================================================
# CLIENT
# =============================================================================
@attr.s(hash=False, frozen=True)
class Carpyncho:
"""Client to access the *Carpyncho VVV dataset collection*.
This code access as a Pandas Dataframe all the data of the web version of
Carpyncho. https://carpyncho.github.io/.
Parameters
----------
cache : ``diskcache.Cache``, ``diskcache.Fanout``,
or ``None`` (default: ``None``)
Any instance of ``diskcache.Cache``, ``diskcache.Fanout`` or
``None`` (Default). If it's ``None`` a ``diskcache.Cache``
istance is created with the parameter
``directory = carpyncho.DEFAULT_CACHE_DIR``.
More information: http://www.grantjenks.com/docs/diskcache
cache_expire : ``float`` or None (default=``None``)
Seconds until item expires (default ``None``, no expiry)
More information: http://www.grantjenks.com/docs/diskcache
"""
#: Local cache of the carpyncho database.
cache: t.Union[dcache.Cache, dcache.FanoutCache] = attr.ib()
#: Default timout of the catalog-cache.
#: Try to always set to None (default), the catalogs are big and mostly
#: never change.
cache_expire: float = attr.ib(default=None, repr=False)
#: Location of the carpyncho index (usefull for development)
index_url: str = attr.ib(default=CARPYNCHO_INDEX_URL)
# =========================================================================
# ATTRS ORCHESTRATION
# =========================================================================
@cache.default
def _cache_default(self):
return dcache.Cache(
directory=DEFAULT_CACHE_DIR, size_limit=DEFAULT_CACHE_SIZE_LIMIT)
# =========================================================================
# UTILITIES FOR CHECK THE REMOTE DATA
# =========================================================================
def retrieve_index(self, reset):
"""Access the remote index of the Carpyncho-Dataset.
The index is stored internally for 1 hr.
Parameters
----------
reset: bool
If its True the entire cache is ignored and a new index is
donwloaded and cached.
Returns
-------
dict with the index structure.
"""
def get_json_data(url):
parsed = urllib.parse.urlparse(url)
if parsed.scheme in ("http", "https", "ftp"):
response = requests.get(
url, headers={'Cache-Control': 'no-cache'})
return response.json()
with open(url) as fp:
return json.load(fp)
return from_cache(
cache=self.cache,
tag="get_index",
function=get_json_data,
cache_expire=3600,
force=reset,
url=self.index_url)
@property
def index_(self):
"""Structure of the Carpyncho dataset information as a Python-dict."""
return self.retrieve_index(reset=False)
def list_tiles(self):
"""Retrieve available tiles with catalogs as a tuple of str."""
index = self.index_
return tuple(k for k in index.keys() if not k.startswith("_"))
def list_catalogs(self, tile):
"""Retrieve the available catalogs for a given tile.
Parameters
----------
tile: str
The name of the tile to retrieve the catalogs.
Returns
-------
tuple of str:
The names of available catalogs in the given tile.
Raises
------
ValueError:
If the tile is not found.
"""
index = self.index_
if tile not in index:
raise ValueError(f"Tile {tile} not found")
return tuple(index[tile])
def has_catalog(self, tile, catalog):
"""Check if a given catalog and tile exists.
Parameters
----------
tile: str
The name of the tile.
catalog:
The name of the catalog.
Returns
-------
bool:
True if the convination tile+catalog exists.
"""
cat = self.index_.get(tile, {}).get(catalog)
return bool(cat)
def catalog_info(self, tile, catalog):
"""Retrieve the information about a given catalog.
Parameters
----------
tile: str
The name of the tile.
catalog:
The name of the catalog.
Returns
-------
dict:
The entire information of the given catalog file. This include
drive-id, md5 checksum, size in bytes, number of total records,
etc.
Raises
------
ValueError:
If the tile or the catalog is not found.
"""
index = self.index_
if tile not in index:
raise ValueError(f"Tile {tile} not found")
tile = index[tile]
if catalog not in tile:
raise ValueError(
f"Catalog {catalog} for tile {tile} not found")
return tile[catalog]
# =========================================================================
# THE DOWNLOAD PART
# =========================================================================
def _grive_download(self, tile, catalog, driveid, size, md5sum):
# https://stackoverflow.com/a/39225272
# https://stackoverflow.com/a/27508615
# prepare the parameters and download the token
params = {'id': driveid}
session = requests.Session()
response = session.get(
DRIVE_URL, params=params, stream=True,
headers={'Cache-Control': 'no-cache'})
# retrieve the token from gdrive page
token = None
for key, value in response.cookies.items():
if key.startswith('download_warning'):
token = value
break
# if we have token add to the parameters
if token:
params['confirm'] = token
# make the real deal request
response = session.get(
DRIVE_URL, params=params, stream=True,
headers={'Cache-Control': 'no-cache'})
# progress bar
pbar = tqdm.tqdm(
total=size, initial=0, unit='B',
unit_scale=True, desc=f"{tile}-{catalog}")
# the file is a bz2 file, we are going to decompress and store
# the raw parquet data into a BytesIO
decompressor = bz2.BZ2Decompressor()
parquet_stream = io.BytesIO()
# ademas necesitamos fijarnos que el md5 este ok
file_hash = hashlib.md5()
# retrive all the data one chunk at the time
for chunk in response.iter_content(CHUNK_SIZE):
if not chunk:
break
parquet_stream.write(decompressor.decompress(chunk))
file_hash.update(chunk)
pbar.update(CHUNK_SIZE)
# stop the progress bar
pbar.close()
# check if the file was download correctly
if file_hash.hexdigest() != md5sum:
raise IOError(
f"'{tile}-{catalog}' incorrect download.\n"
f"expected: {md5sum}\n"
f"caclulated: {file_hash.hexdigest()}")
# read the entire stream into a dataframe
df = pd.read_parquet(parquet_stream)
return df
def get_catalog(self, tile, catalog, force=False):
"""Retrieve a catalog from the carpyncho dataset.
Parameters
----------
tile: str
The name of the tile.
catalog:
The name of the catalog.
force: bool (default=False)
If its True, the cached version of the catalog is ignored and
redownloaded. Try to always set force to False.
Returns
-------
pandas.DataFrame:
The columns of the DataFrame changes between the different catalog.
Raises
------
ValueError:
If the tile or the catalog is not found.
IOError:
If the checksum not match.
"""
info = self.catalog_info(tile, catalog)
driveid, size = info["driveid"], info["size"]
md5sum = info["md5sum"].split()[0].strip().lower()
df = from_cache(
cache=self.cache,
tag="get_catalog",
function=self._grive_download,
cache_expire=None,
force=force,
# params to _gdrive_download
tile=tile, catalog=catalog,
driveid=driveid, size=size, md5sum=md5sum)
return df
# =============================================================================
# CLI
# =============================================================================
@attr.s(hash=False, frozen=True)
class CLI:
"""Carpyncho console client.
Explore and download the entire https://carpyncho.github.io/
catalogs from your command line.
"""
footnotes = "\n".join([
"This software is under the BSD 3-Clause License.",
"Copyright (c) 2020, <NAME>.",
"For bug reporting or other instructions please check:"
" https://github.com/carpyncho/carpyncho-py"])
#: Carpyncho client.
client = attr.ib()
def get_commands(self):
methods = {}
for k in dir(self):
if k.startswith("_"):
continue
v = getattr(self, k)
if inspect.ismethod(v) and k != "get_commands":
methods[k] = v
return methods
def version(self):
"""Print Carpyncho version."""
print(VERSION)
def list_tiles(self):
"""Show available tiles."""
for tile in self.client.list_tiles():
print(f"- {tile}")
def list_catalogs(self, tile):
"""Show the available catalogs for a given tile.
tile:
The name of the tile to retrieve the catalogs.
"""
print(f"Tile {tile}")
for catalog in self.client.list_catalogs(tile=tile):
print(f" - {catalog}")
def has_catalog(self, tile, catalog):
"""Check if a given catalog and tile exists.
tile:
catalog:
The name of the catalog.
"""
has = "" if self.client.has_catalog(tile, catalog) else "NO "
print(f"Catalog '{catalog}' or tile '{tile}': {has}exists")
def catalog_info(self, tile, catalog):
"""Retrieve the information about a given catalog.
tile:
The name of the tile.
catalog:
The name of the catalog.
"""
FORMATTERS = {
"size": functools.partial(humanize.naturalsize, binary=True),
"records": humanize.intcomma
}
print(f"Catalog {tile}-{catalog}")
for k, v in self.client.catalog_info(tile, catalog).items():
fmt = FORMATTERS.get(k, str)
print(f" - {k}: {fmt(v)}")
def download_catalog(self, tile, catalog, *, force=False, out):
"""Retrives a catalog from th Carpyncho dataset collection.
tile:
The name of the tile.
catalog:
The name of the catalog.
out:
Path to store the catalog. The extension of the file detemines
the format. Options are ".xlsx" (Excel), ".csv",
".pkl" (Python pickle) and ".parquet".
force:
Force to ignore the cached value and redownload the catalog.
Try to always set force to False.
"""
PARSERS = {
".xlsx": pd.DataFrame.to_excel,
".csv": pd.DataFrame.to_csv,
".pkl": pd.DataFrame.to_pickle,
".parquet": pd.DataFrame.to_parquet}
df = self.client.get_catalog(tile, catalog)
ext = os.path.splitext(out)[-1].lower()
if ext not in PARSERS:
raise clize.UserError(f"format '{ext}' not recognized")
print(f"Writing {out}...")
parser = PARSERS[ext]
parser(df, out)
def main():
"""Run the carpyncho CLI interface."""
cli = CLI(client=Carpyncho())
commands = tuple(cli.get_commands().values())
clize.run(
*commands,
description=cli.__doc__,
footnotes=cli.footnotes)
if __name__ == "__main__":
main()
| python |
Shane Steichen has spent the last two NFL seasons with the Philadelphia Eagles. He was hired by head coach Nick Sirianni to be their offensive coordinator prior to the start of the 2021 season. Steichen helped quarterback Jalen Hurts elevate his game to be among the finalists for the 2022 NFL MVP award, while also making an appearance in Super Bowl LVII.
After his success over with the Eagles, Shane Steichen was recently hired to take over as the next head coach of the Indianapolis Colts. He will replace former head coach Frank Reich and interim head coach Jeff Saturday. The Colts are going with another Philadelphia product, as both Reich and Steichen were hired from the Eagles.
This is the first time in Shane Steichen's career that he will be the head coach of an NFL team. The innovative offensive coordinator will look to have success in his new position, as he has at just about every stop during his coaching career.
After serving as an offensive assistant for a year with the Louisville Cardinals in 2010, Shane Steichen was hired by the Los Angeles Chargers. He was a defensive assistant for them in 2011. He spent two years with the team, where they recorded a 15-17 record.
Steichen then joined the Cleveland Browns for a year as an offensive quality control coach in 2013 under head coach Rod Chudzinski. The Browns had a disappointing 4-12 record. Steichen was then hired by the Chargers once again after just one year away, this time as an offensive quality control coach.
He spent two years in this position with the Chargers before being promoted to their quarterbacks coach in 2016. He worked with quarterback Philip Rivers for four years in this position and made an appearance in the playoffs. This earned Steichen another promotion in 2019, having been elevated to offensive coordinator.
Steichen worked with Philip Rivers again during the 2019 season. The Chargers then selected Justin Herbert in the 2020 draft. Herbert replaced veteran Tyrod Taylor as the starting quarterback just a few games into the 2020 season. During this seven-year run with the Chargers, the team totaled a 51-61 record.
After helping develop Herbert during his rookie season, Steichen was hired to take over as the offensive coordinator for the Philadelphia Eagles in 2021. In his two years with the team, they posted a 23-11 record and made the playoffs in both seasons.
Shane Steichen has now spent 12 years as an assistant coach in the NFL, totaling a 93-101 record along the way. He will get his first chance at being a head coach with the Indianapolis Colts during the upcoming 2023 season.
Discover the Eagles QB's family. All about Jalen Hurts's parents and Jalen Hurts's girlfriend.
| english |
<reponame>OliMe/cqrs-bus
var app = app || {};
(function () {
'use strict';
/**
* Collection for settlements
*/
app.Settlements = app.Collection.extend({
model: app.Settlement,
urlRoot: app.entryScript + 'https://www.sima-land.ru/api/v3/settlement',
fetchParams: {
data: {
perPage: 10,
},
},
fetchByIp: function (clientIp) {
var params = this.fetchParams;
if (clientIp) {
params = _.merge({
data: {
detect_by_ip: 1,
},
headers: {
"x-client-ip": clientIp,
},
}, params);
this.fetch(params);
}
},
fetchByName: function (name) {
var params = this.fetchParams;
if (name) {
params = _.merge({
data: {
name: name
}
}, params)
this.fetch(params);
}
}
});
})();
| javascript |
{
"name": "Senioritis",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"highlight.js": {
"version": "9.12.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.12.0.tgz",
"integrity": "sha1-5tnb5Xy+/mB1HwKvM2GVhwyQwB4="
},
"marked": {
"version": "0.3.12",
"resolved": "https://registry.npmjs.org/marked/-/marked-0.3.12.tgz",
"integrity": "<KEY>
},
"mime-db": {
"version": "1.25.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.25.0.tgz",
"integrity": "sha1-wY29fHOl2/b0SgJNwNFloeexw5I="
},
"mime-types": {
"version": "2.1.13",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.13.tgz",
"integrity": "sha1-4HqqnGxrmnyjASxpADrSWjnpKog=",
"requires": {
"mime-db": "1.25.0"
}
},
"moment": {
"version": "2.20.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.20.1.tgz",
"integrity": "sha512-Yh9y73JRljxW5QxN08Fner68eFLxM5ynNOAw2LbIB1YAGeQzZT8QFSUvkAz609Zf+IHhhaUxqZK8dG3W/+HEvg=="
},
"rss": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/rss/-/rss-1.2.2.tgz",
"integrity": "sha1-UKFpiHYTgTOnT5oF0r3I240nqSE=",
"requires": {
"mime-types": "2.1.13",
"xml": "1.0.1"
}
},
"xml": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",
"integrity": "sha1-eLpyAgApxbyHuKgaPPzXS0ovweU="
}
}
}
| json |
<reponame>wykeenjenga/SaveONE-life
package com.wyksofts.saveone.ui.landingUI.authfrags.others;
import static android.content.ContentValues.TAG;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.view.ViewCompat;
import androidx.fragment.app.Fragment;
import android.text.TextUtils;
import android.transition.Transition;
import android.transition.TransitionInflater;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.google.android.gms.auth.api.signin.GoogleSignIn;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthCredential;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.GoogleAuthProvider;
import com.wyksofts.saveone.App.MainActivity;
import com.wyksofts.saveone.R;
import com.wyksofts.saveone.models.Donors.CreateUserAccount;
import com.wyksofts.saveone.ui.homeUI.HelperClasses.showTermsDiag;
import com.wyksofts.saveone.util.AgreeWithTerms;
import com.wyksofts.saveone.util.PasswordChecker;
import com.wyksofts.saveone.util.showAppToast;
public class SignUpDonor extends Fragment {
TextView terms;
CheckBox agree_with_terms;
EditText UserEmail, UserName, UserPassword;
ProgressBar google_loading;
FirebaseAuth mAuth;
GoogleSignInAccount googleSignInAccount;
GoogleSignInClient mGoogleSignInClient;
private static final int RC_SIGN_IN = 1;
Button register_donor;
LinearLayout continue_with_google;
public SignUpDonor() {
// Required empty public constructor
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Transition transition = TransitionInflater.from(requireContext())
.inflateTransition(R.transition.shared_image);
setSharedElementEnterTransition(transition);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_sign_up_donor, container, false);
register_donor = view.findViewById(R.id.register_donor);
continue_with_google = view.findViewById(R.id.continue_with_google);
UserName = view.findViewById(R.id.donor_name);
UserPassword =view.findViewById(R.id.<PASSWORD>);
UserEmail = view.findViewById(R.id.donor_email);
agree_with_terms = view.findViewById(R.id.donor_agree_with_terms);
terms = view.findViewById(R.id.terms);
google_loading = view.findViewById(R.id.loading_bar);
mAuth = FirebaseAuth.getInstance();
initGoogle();
ViewCompat.setTransitionName(register_donor, "donor");
return view;
}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
register_donor.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
verifyFields();
}
});
continue_with_google.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
signIn();
}
});
terms.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
new showTermsDiag(getContext()).showTCDialog();
}
});
}
private void verifyFields() {
String email = UserEmail.getText().toString();
String name = UserName.getText().toString();
String password = UserPassword.getText().toString();
String isValid = UserPassword.getText().toString().trim();
if(TextUtils.isEmpty(name)){
UserName.setError("Enter your user name");
}else if (TextUtils.isEmpty(email)){
UserEmail.setError("Enter your email");
}else if(
!email.contains("@gmail.com")
&& !email.contains("@outlook.com")
&& !email.contains("@icloud.com")
&& !email.contains("@yahoo.com")
&& !email.contains("@hotmail.com")){
UserEmail.setError("Invalid email");
}else if (TextUtils.isEmpty(password)){
UserPassword.setError("Enter your password");
}
else if (password.length()<6){
UserPassword.setError("Your password is too short, must be atleast 6 characters.");
}else if (!new PasswordChecker().isValidPassword(isValid)){
UserPassword.setError("Must have atleast one upper case and one number.");
}else if (!new AgreeWithTerms().agreewithTerms(agree_with_terms)){
new showAppToast().showFailure(getContext(), "Agree with our terms to continue.");
}
else{
new CreateUserAccount(getContext()).authUser(name,email,password, google_loading,true);
}
}
private void initGoogle() {
// Configure Google Sign In
GoogleSignInOptions gso = new GoogleSignInOptions
.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.web_client_ip))
.requestEmail()
.build();
mGoogleSignInClient = GoogleSignIn.getClient(getContext(), gso);
}
private void signIn() {
//logout any logged in user
FirebaseAuth.getInstance().signOut();
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
startActivityForResult(signInIntent, RC_SIGN_IN);
google_loading.setVisibility(View.VISIBLE);
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == RC_SIGN_IN) {
Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);
try {
// Google Sign In was successful, authenticate with Firebase
GoogleSignInAccount account = task.getResult(ApiException.class);
firebaseAuthWithGoogle(account.getIdToken());
} catch (ApiException e) {
// Google Sign In failed
Log.w(TAG, "Google sign in failed", e);
new showAppToast().showFailure(getContext(), "Google sign in failed");
google_loading.setVisibility(View.GONE);
}
}
}
private void firebaseAuthWithGoogle(String idToken) {
AuthCredential credential = GoogleAuthProvider.getCredential(idToken, null);
mAuth.signInWithCredential(credential)
.addOnCompleteListener((Activity) getContext(), new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
google_loading.setVisibility(View.GONE);
if (task.isSuccessful()) {
// Sign in success, update UI with the signed-in user's information
Log.d(TAG, "signInWithCredential:success");
new showAppToast().showSuccess(getContext(), "Hello! Good to See You Back");
startActivity(new Intent(getContext(), MainActivity.class));
} else {
// If sign in fails, display a message to the user.
Log.w(TAG, "signInWithCredential:failure", task.getException());
new showAppToast().showFailure(getContext(), "Timeout error check you network connection");
}
}
});
}
} | java |
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod aipstz;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod dcdc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod pit;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod cmp;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod iomuxc_snvs_gpr;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod iomuxc_snvs;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod iomuxc_gpr;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod flexram;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod ewm;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod wdog;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod rtwdog;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod adc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod trng;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod snvs;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod ccm_analog;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod pmu;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod tempmon;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod usb_analog;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod xtalosc24m;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod usbphy;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod csu;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod tsc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod dma0;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod dmamux;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod gpc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod pgc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod src;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod ccm;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod romc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod lpuart;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod flexio;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod gpio;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod can;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod can3;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod tmr;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod gpt;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod ocotp;
#[cfg(any(feature = "doc", feature = "imxrt1061", feature = "imxrt1062"))]
pub mod iomuxc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod kpp;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod flexspi;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod usdhc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod enet;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod usb;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod usbnc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod semc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod dcp;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod spdif;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod sai;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod lpspi;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod adc_etc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod aoi;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod xbara1;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod xbarb;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod enc;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod pwm;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod bee;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod lpi2c;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod systemcontrol;
#[cfg(any(
feature = "doc",
feature = "imxrt1061",
feature = "imxrt1062",
feature = "imxrt1064"
))]
pub mod nvic;
#[cfg(any(feature = "doc", feature = "imxrt1062", feature = "imxrt1064"))]
pub mod pxp;
#[cfg(any(feature = "doc", feature = "imxrt1062", feature = "imxrt1064"))]
pub mod lcdif;
#[cfg(any(feature = "doc", feature = "imxrt1062", feature = "imxrt1064"))]
pub mod csi;
| rust |
import inMaokunView from '../../components/MaoKunMap/inMaokunView';
import latlngBoundsReducer from '../../util/latlngBoundsReducer';
import updateFov from '../../components/MiniMap/updateFov';
const WHOLE_GLOBE = [
[90, 180],
[-90, -180],
];
const BOUNDS_MARGIN = 0.08; // degrees latitude or longitude
export default (modernMapRef, minimapFovRef, filteredPlaces, selected) => (percentBounds) => {
// Update red "field of view" box in MiniMap
updateFov(minimapFovRef, percentBounds);
// Identify bounds of the places visible on the Mao Kun map
const latlngBounds = filteredPlaces.filter(inMaokunView(percentBounds)).reduce(latlngBoundsReducer, WHOLE_GLOBE);
const boundsWithMargin = [
[latlngBounds[0][0] - BOUNDS_MARGIN, latlngBounds[0][1] - BOUNDS_MARGIN],
[latlngBounds[1][0] + BOUNDS_MARGIN, latlngBounds[1][1] + BOUNDS_MARGIN],
];
// Update ModernMap (unless triggered by centerOn())
const timeSinceSelection = (Date.now() - selected.time) / 1000;
if (!selected.time || timeSinceSelection > 2) modernMapRef.current.leafletElement.fitBounds(boundsWithMargin);
};
| javascript |
{
"name": "anime-mal-api",
"version": "1.0.1",
"description": "An awesome library to connect with the new MyAnimeList's API v2!",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "rollup -c ./rollup.config.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/droidxrx/anime-mal-api.git"
},
"keywords": [
"anime",
"manga",
"mal",
"mal-api"
],
"author": "DroidXrX <<EMAIL>> (https://github.com/droidxrx)",
"license": "MIT",
"bugs": {
"url": "https://github.com/droidxrx/anime-mal-api/issues"
},
"homepage": "https://github.com/droidxrx/anime-mal-api#readme",
"engines": {
"node": ">=14.17.6"
},
"dependencies": {
"superagent": "6.1.0"
}
}
| json |
<filename>src/makarov/Lab7/TenderEx/TenderMain.java
package makarov.Lab7.TenderEx;
import java.util.Random;
public class TenderMain
{
private int attemptsCount = 0;
private static long companiesCount = 0;
private int BIDS_NUMBER = 5;
public static void main(String[] args)
{
Tender tender = new Tender();
int startPrice = new Random().nextInt(600) + 400;
for (int i = 0; i < tender.BIDS_NUMBER; i++)
{
Company thread = new Company(i, startPrice, tender.getBarrier());
tender.add(thread);
thread.start();
}
}
}
| java |
The Meenachil River is known as the artery of Kottayam district. Named after goddess Meenakshi, the 78-kilometre freshwater body is the lifeline to the farmlands and industries along its banks.
The river that once flowed through the towns of Poonjar, Erattupetta, Pala, Kidangoor and Kottayam has transformed into a thin stream of sewage water in the past two decades.
In the two recent August deluges that wreaked havoc, the Meenachil river went into a spate in Pala and surrounding areas, reclaiming its own territory.
However, the impact of the floods failed to get deserved attention in the Pala bypoll campaign.
The front-runners in the contest, United Democratic Front (UDF) candidate Jose Tom and Left Democratic Front (LDF) candidate Mani C Kappan, have been focusing their campaigns on the potential developmental activities that they envisage. However, they are not keen on addressing environmental concerns. They are ignoring the issues related to Meenachil river conservation.
To add to the concerns of green activists, the proposed Pala river-view road extension plan is being talked about in the campaign.
The greens charge that the current stretch of river-view road had been built by claiming a large part of the Meenachil causing severe stress to the river.
Now, plans are being made to extend the road till Kottaramattam, through a 1,047-metre stretch of the river bank. Environmental activists allege that around 153 piles will be installed in this stretch for the project, a measure that would adversely affect the river.
“We have moved the Kerala High Court against this project. No measures have been taken by the politicians and the governments to envisage the project in a way that wouldn't harm the river,” says S Ramachandran, president of the Meenachil River Rejuvenation Project, a people’s collective for river conservation.
The river-view road project had been proposed by the earlier UDF government and repackaged by the LDF.
The project was officially launched by Public Works Department (PWD) Minister G Sudhakaran in 2018.
Rs 14 crore has been allotted for land reclamation and Rs 47. 5 crore for construction.
According to the PWD, the road will be built using the 'pre-stressed slab' technology.
The 903 metre-long road which would have a width of 12 metres will be built on pillars installed in the northern bank of the river.
Activists allege that the project will severely harm the shrinking river owing to encroachments and unscrupulous mining.
According to Dr B Sreekumar, president of the Kottayam Nature Society, the environmental awareness campaigns triggered by the fury of floods have been short-lived.
“People are still not concerned about the magnitude of the issue. When it comes to the Meenachil river, pollution is its greatest threat. The innumerable sewers opening to the river are slowly poisoning the largest fresh-water resource in the district. The industrial chemicals, pesticide residues and the sewage waste brought by the Meenachil River and its tributaries are getting emptied in the Vembanadu lake, posing a threat to those who live on its banks as well as its aquatic life, ” Sreekumar said.
The Kottayam Nature Society had organised walks for children along the banks of Meenachil in 2000 and a fish count in the river in 2004 to raise awareness about the perils it faces.
The Pala Karshakavedi, a collective of farmers in the area, has also been in the forefront of the campaign for the river’s revival.
They have been propagating messages of organic farming that helps to free the water bodies of harmful pesticide and fertilizer residues.
Tomichen Scaria of the Karshakavedi says an increase in farming short-term crops like pineapple, which incidentally is the poll symbol of the UDF candidate, has contributed to the increasing use of chemical agents.
“Unlike cardamom, coffee or rubber, pineapple cultivation is mostly an unregulated activity. Pineapples are usually cultivated on slopes and this enhances the possibility of pesticides being carried by the rainwater to rivulets, which will eventually contaminate the river. The Krishi Bhavans across the state should stay more vigil against the use of banned pesticides and chemicals,” he said.
Tomichen also blamed the unchecked dumping of construction waste to the river from dismantled buildings.
“As of now, we don’t have a proper mechanism to dispose of concrete waste. So they dump it in the river instead. Not just spreading awareness, but stringent measures should be taken against culprits to tackle this menace,” Tomichen added.
The Meenachil River Protection Forum is backing independent candidate Maju Puthenkandam in the Pala assembly bypoll.
"We forced anti-quarry crusader Maju to contest this bypoll to make a statement. The LDF and the UDF have done little to tackle various environmental issues in our state. They have sabotaged the Kerala Minor Mineral Concession Rules. Its amendments have brought provisions that are in stark contrast with the Mines and Minerals (Development and Regulation) Act of 1957. We need someone to resonate our voice and that’s why we are supporting Maju,” Ramachandran said.
“When we protest the implementation of projects that harm the river, they label us as ‘anti-development activists’. What they don’t realise is that this river is the lifeline of Pala. Any measures taken to harm it will reflect directly on its reserve areas and banks. The past two floods prove it. The more we restrict the natural flow of a river, the more it is likely to reclaim it,” he added.
It remains to be seen if green activists can indeed make a statement on Pala's political terrain. | english |
<filename>src/main/resources/assets/conquest/blockstates/acacia_wood_plank_wall.json
{"variants":{"east\u003dfalse,north\u003dfalse,south\u003dfalse,up\u003dfalse,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_post"},"east\u003dfalse,north\u003dtrue,south\u003dfalse,up\u003dfalse,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_n"},"east\u003dtrue,north\u003dfalse,south\u003dfalse,up\u003dfalse,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_n","y":90,"uvlock":true},"east\u003dfalse,north\u003dfalse,south\u003dtrue,up\u003dfalse,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_n","y":180,"uvlock":true},"east\u003dfalse,north\u003dfalse,south\u003dfalse,up\u003dfalse,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_n","y":270,"uvlock":true},"east\u003dtrue,north\u003dtrue,south\u003dfalse,up\u003dfalse,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_ne"},"east\u003dtrue,north\u003dfalse,south\u003dtrue,up\u003dfalse,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_ne","y":90,"uvlock":true},"east\u003dfalse,north\u003dfalse,south\u003dtrue,up\u003dfalse,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_ne","y":180,"uvlock":true},"east\u003dfalse,north\u003dtrue,south\u003dfalse,up\u003dfalse,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_ne","y":270,"uvlock":true},"east\u003dfalse,north\u003dtrue,south\u003dtrue,up\u003dfalse,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_ns"},"east\u003dtrue,north\u003dfalse,south\u003dfalse,up\u003dfalse,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_ns","y":90,"uvlock":true},"east\u003dtrue,north\u003dtrue,south\u003dtrue,up\u003dfalse,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_nse"},"east\u003dtrue,north\u003dfalse,south\u003dtrue,up\u003dfalse,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_nse","y":90,"uvlock":true},"east\u003dfalse,north\u003dtrue,south\u003dtrue,up\u003dfalse,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_nse","y":180,"uvlock":true},"east\u003dtrue,north\u003dtrue,south\u003dfalse,up\u003dfalse,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_nse","y":270,"uvlock":true},"east\u003dtrue,north\u003dtrue,south\u003dtrue,up\u003dfalse,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_nsew"},"east\u003dfalse,north\u003dfalse,south\u003dfalse,up\u003dtrue,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_post"},"east\u003dfalse,north\u003dtrue,south\u003dfalse,up\u003dtrue,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_n"},"east\u003dtrue,north\u003dfalse,south\u003dfalse,up\u003dtrue,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_n","y":90,"uvlock":true},"east\u003dfalse,north\u003dfalse,south\u003dtrue,up\u003dtrue,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_n","y":180,"uvlock":true},"east\u003dfalse,north\u003dfalse,south\u003dfalse,up\u003dtrue,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_n","y":270,"uvlock":true},"east\u003dtrue,north\u003dtrue,south\u003dfalse,up\u003dtrue,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_ne"},"east\u003dtrue,north\u003dfalse,south\u003dtrue,up\u003dtrue,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_ne","y":90,"uvlock":true},"east\u003dfalse,north\u003dfalse,south\u003dtrue,up\u003dtrue,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_ne","y":180,"uvlock":true},"east\u003dfalse,north\u003dtrue,south\u003dfalse,up\u003dtrue,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_ne","y":270,"uvlock":true},"east\u003dfalse,north\u003dtrue,south\u003dtrue,up\u003dtrue,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_ns_above"},"east\u003dtrue,north\u003dfalse,south\u003dfalse,up\u003dtrue,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_ns_above","y":90,"uvlock":true},"east\u003dtrue,north\u003dtrue,south\u003dtrue,up\u003dtrue,west\u003dfalse":{"model":"conquest:block/acacia_wood_plank_wall_nse"},"east\u003dtrue,north\u003dfalse,south\u003dtrue,up\u003dtrue,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_nse","y":90,"uvlock":true},"east\u003dfalse,north\u003dtrue,south\u003dtrue,up\u003dtrue,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_nse","y":180,"uvlock":true},"east\u003dtrue,north\u003dtrue,south\u003dfalse,up\u003dtrue,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_nse","y":270,"uvlock":true},"east\u003dtrue,north\u003dtrue,south\u003dtrue,up\u003dtrue,west\u003dtrue":{"model":"conquest:block/acacia_wood_plank_wall_nsew"}}} | json |
Johnny Lever Advises Bharti Singh And Haarsh Limbaachiyaa To 'Own Their Mistake And Quit Drugs'
Johnny Lever has advised the TV couple Bharti Singh And Haarsh Limbaachiyaa to 'accept their mistake and quit drugs like Sanjay Dutt did'
News of TV couple Bharti Singh and Haarsh Limbaachiyaa being arrested by the Narcotics Control Bureau after 86.5 gms of ganja (Cannabis) were seized at their office and home, came as a shock. The couple was later sent to judicial custody till December 4, reacting to this senior comedian and actor Johnny Lever has spoken about the rise in consumption of drugs being a trend in the industry just like alcohol was during his early days in conversation with Times of India. He also had advice for this TV couple.
Recalling his old days, he too confessed of drinking alcohol, but ultimately quitting it as he realized it hampered his talent and creativity. He said, "Drugs is becoming a trend like alcohol used to be back in days. Alcohol used to be easily available and a lot of parties used to happen and even I have made the mistake of drinking but then when I realised alcohol is not good as it is affecting my talent and creativity and I quit."
Advising Bharti and Haarsh he speaks about Sanjay Dutt who too confessed of being a drug addict, followed by quitting it. "I would like to say one thing to both Bharti and Harsh. Once you guys come out, speak to your colleagues both young and old not to indulge in drugs. Look at Sanjay Dutt, he confessed to the world. What bigger example do you want? Accept your mistake and pledge to quit drugs. Nobody is going to come to give you a bouquet of flowers for this case," added Johnny Lever.
Speaking of drugs being a weakness he mentioned jail is not a place for creative minds, hence one should not indulge in it, he rather feels seniors from the industry should counsel the junior. He said, "I tell students not to indulge in drugs. Kyonki jail jaoge and jail is not a place for creative people like us. Taking drugs is a sign of weakness and it only spoils your health and your name. It affects your career also. We seniors and those who have confessed, need to counsel our juniors or else our industry will be doomed."
| english |
<reponame>Ray0218/Specs<filename>Specs/ettFramework/0.1.3/ettFramework.podspec.json
{
"name": "ettFramework",
"version": "0.1.3",
"summary": "it is a common etiantian ios framework.",
"description": "The EttFramework captures all utilities of ett ios, create a pod can be used for all",
"homepage": "http://int.etiantian.com:39803/projects/ETT_NEXTGEN_IOS/repos/ettframework/browse",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "http://int.etiantian.com:39803/scm/ett_nextgen_ios/ettframework.git",
"tag": "0.1.3"
},
"platforms": {
"ios": "7.0"
},
"requires_arc": true,
"source_files": "Pod/Classes/**/*",
"resource_bundles": {
"ettFramework": [
"Pod/Assets/*.png"
]
},
"public_header_files": "Pod/Classes/**/*.h",
"frameworks": [
"UIKit",
"MapKit"
],
"dependencies": {
"AFNetworking": [
"~> 2.3"
],
"DCKeyValueObjectMapping": [
]
}
}
| json |
Tastes great. Product arrived fresh, with lots of intact clusters - not a bunch of smashed crumbs. Very good for keto diets. The package size is pretty small, but I think you have to eat it more as a topping for yogurt and fruit, rather than a cereal that you would use to fill up a bowl with milk. If you eat it that way, it will be gone in 2 meals or less.
| english |
<filename>__deprecated/application.next/template/[project_code_kebab]/src/components/Menu/style.ts
import styled from 'styled-components';
import Link from 'next/link';
import { align, gap, foregroundColor } from '../../styles/mixins';
import { ThemePropsType } from '../../styles/type';
export const MenuRoot = styled.div`
height: 100%;
display: flex;
align-items: stretch;
`;
export const Items = styled.nav<ThemePropsType>`
${gap(undefined, '1rem')};
${align('center', 'right')};
${({ theme }) => ({
[theme.breakpoints.down('xs')]: {
display: 'none',
},
})}
`;
export const Item = styled.a<ThemePropsType>`
text-transform: uppercase;
text-decoration: none;
position: relative;
padding-bottom: 3px;
font-weight: bold;
${({ theme }) =>
foregroundColor(theme.palette.grey['100'], theme.palette.grey['100'])};
&:after {
content: '';
display: block;
height: 2px;
position: absolute;
bottom: 0;
left: 0;
width: 0;
background-color: ${(props) => props.theme.palette.grey['100']};
transition: width ease 200ms;
}
&:hover {
&:after {
width: 100%;
}
}
`;
export const Main = styled.div`
${align('center', 'center')};
flex-shrink: 0;
position: relative;
display: flex;
align-items: center;
`;
export const Hamburger = styled.div<ThemePropsType>`
${align('center', 'center', 'column')};
width: 2.5rem;
height: 2.5rem;
${gap('0.3rem')};
padding: 0.5rem;
cursor: pointer;
${({ theme }) => ({
[theme.breakpoints.up('sm')]: {
display: 'none',
},
})}
`;
export const Bar = styled.div<ThemePropsType>`
background-color: ${(props) => props.theme.palette.grey['100']};
height: 5px;
width: 100%;
display: block;
border-radius: 2px;
`;
export const MobileItems = styled.nav<ThemePropsType & { open: boolean }>`
background-color: ${(props) => props.theme.palette.grey['100']};
position: absolute;
top: 100%;
right: ${(props) => (props.open ? '0' : '-100%')};
width: 100%;
height: 100vh;
overflow: hidden;
transition: right ease 200ms;
z-index: ${({ theme }) => theme.zIndex.appBar};
${({ theme }) => ({
[theme.breakpoints.up('sm')]: {
display: 'none',
},
})}
`;
export const MobileItem = styled.a<ThemePropsType>`
padding: 1rem 2rem;
position: relative;
display: block;
text-decoration: none;
color: ${(props) => props.theme.palette.secondary.main};
border-bottom: 1px solid ${(props) => props.theme.palette.secondary.main};
&:before {
content: '';
position: absolute;
width: 0;
height: 100%;
top: 0;
left: 0;
bottom: 0;
background-color: ${(props) => props.theme.palette.secondary.main};
transition: width 200ms ease;
}
&:hover {
&:before {
width: 10px;
}
}
`;
| typescript |
Once upon a time, there was a therizinosaur. There are many species of therizinosaur but the one which I am talking about is the therizinosaurus this dinosaurus length was 36 ft, almost the size of a tyrannosaurus rex. It is in search of food, most importantly trees and grass. But there is a small problem, the velociraptors. Though they look small, the velociraptors hunt in packs.
The raptors pounce on the therizinosaurus, but little did they know, that the therizinosaurus had a metre long claws. With one great swift of them the raptors retreat. It has its share of food. Because she is going to have babies. But life in the late cretaceous was not that easy. She has to battle through sandstorms. After all that pain she can make way for the new generation.
| english |
{
"name": "@speckle/fileimport-service",
"private": true,
"version": "2.5.4",
"description": "Parse and import files of various types into a stream",
"author": "<NAME> <<EMAIL>>",
"homepage": "https://github.com/specklesystems/speckle-server#readme",
"license": "SEE LICENSE IN readme.md",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/specklesystems/speckle-server.git"
},
"engines": {
"node": "^16.0.0"
},
"scripts": {
"dev": "cross-env S3_BUCKET=speckle-server POSTGRES_URL=postgres://speckle:speckle@localhost/speckle NODE_ENV=development SPECKLE_SERVER_URL=http://localhost:3000 nodemon ./src/daemon.js",
"parse:ifc": "node ./ifc/import_file.js /tmp/file_to_import/file 33763848d6 2e4bfb467a main File upload: steelplates.ifc",
"lint": "eslint . --ext .js,.ts"
},
"bugs": {
"url": "https://github.com/specklesystems/speckle-server/issues"
},
"dependencies": {
"aws-sdk": "^2.1075.0",
"bcrypt": "^5.0.1",
"crypto-random-string": "^3.3.1",
"knex": "^2.0.0",
"pg": "^8.7.3",
"prom-client": "^14.0.1",
"undici": "^5.4.0",
"valid-filename": "^3.1.0",
"web-ifc": "^0.0.35"
},
"devDependencies": {
"cross-env": "^7.0.3",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"nodemon": "^2.0.13",
"prettier": "^2.5.1"
}
}
| json |
[
{
"outputFileName": "wwwroot/css/bundle.min.css",
"inputFiles": [
"wwwroot/lib/bootstrap/css/bootstrap.css",
"wwwroot/lib/animate.css/animate.css",
"wwwroot/css/site.css",
"wwwroot/css/header.css",
"wwwroot/css/home-index.css",
"wwwroot/css/home-about.css",
"wwwroot/css/meetup-details.css"
]
},
{
"outputFileName": "wwwroot/js/bundle.min.js",
"inputFiles": [
"wwwroot/lib/stimulus/dist/stimulus.umd.js",
"wwwroot/lib/jquery/jquery.js",
"wwwroot/lib/bootstrap/js/bootstrap.js",
"wwwroot/js/site.js"
],
"minify": {
"enabled": true,
"renameLocals": false
},
"sourceMap": false
}
]
| json |
1200+ Brain & Cognitive!
iTested Quality!
Your Rewards account is blocked.
Your Rewards account is paused.
Start shopping and earn Rewards today!
Cart Total:
Customers Also Bought:
9 Results (showing 1 - 9)
There are no similar items available.
BioSil, ch-OSA Advanced Collagen Generator, 1 fl oz (30 ml)
BioSil, ch-OSA Advanced Collagen Generator, 0.5 fl oz (15 ml)
9 Results (showing 1 - 9)
| english |
<filename>decimate-worker.js
importScripts('decimate.js?rnd='+Math.random());
self.addEventListener('message', function(e) {
let target = e.data.target,
geometry = e.data.geometry,
vertices = e.data.vertices,
uvs = e.data.uvs,
indices = e.data.indices,
options = e.data.options,
t = Date.now();
console.time('simplify');
let g = decimate.simplify( geometry, target, options ),
took = Date.now() - t,
has_uv = g.triangles.length && g.triangles[ 0 ].uvs;
console.timeEnd('simplify');
console.time('worker buffer creation');
for ( let i = 0; i < g.vertices.length; i++ ) {
let v = g.vertices[ i ];
//vertices[ (i*3) + 0 ] = v.p[ 0 ];
//vertices[ (i*3) + 1 ] = v.p[ 1 ];
//vertices[ (i*3) + 2 ] = v.p[ 2 ];
}
for ( let i = 0; i < g.triangles.length; i++ ) {
let t = g.triangles[ i ],
idx = i * 3;
vertices[ (i*9) + 0 ] = g.vertices[ t.v[ 0 ] ].p[ 0 ];
vertices[ (i*9) + 1 ] = g.vertices[ t.v[ 0 ] ].p[ 1 ];
vertices[ (i*9) + 2 ] = g.vertices[ t.v[ 0 ] ].p[ 2 ];
vertices[ (i*9) + 3 ] = g.vertices[ t.v[ 1 ] ].p[ 0 ];
vertices[ (i*9) + 4 ] = g.vertices[ t.v[ 1 ] ].p[ 1 ];
vertices[ (i*9) + 5 ] = g.vertices[ t.v[ 1 ] ].p[ 2 ];
vertices[ (i*9) + 6 ] = g.vertices[ t.v[ 2 ] ].p[ 0 ];
vertices[ (i*9) + 7 ] = g.vertices[ t.v[ 2 ] ].p[ 1 ];
vertices[ (i*9) + 8 ] = g.vertices[ t.v[ 2 ] ].p[ 2 ];
indices[ (i*3) + 0 ] = idx;
indices[ (i*3) + 1 ] = idx + 1;
indices[ (i*3) + 2 ] = idx + 2;
if ( has_uv ) {
uvs[ (i*6) + 0 ] = t.uvs[ 0 ][ 0 ][ 0 ];
uvs[ (i*6) + 1 ] = t.uvs[ 0 ][ 0 ][ 1 ];
uvs[ (i*6) + 2 ] = t.uvs[ 0 ][ 1 ][ 0 ];
uvs[ (i*6) + 3 ] = t.uvs[ 0 ][ 1 ][ 1 ];
uvs[ (i*6) + 4 ] = t.uvs[ 0 ][ 2 ][ 0 ];
uvs[ (i*6) + 5 ] = t.uvs[ 0 ][ 2 ][ 1 ];
}
}
console.timeEnd('worker buffer creation');
self.postMessage({
took: took,
vertices: vertices,
uvs: has_uv ? uvs: null,
indices: indices},
[ vertices.buffer, uvs.buffer, indices.buffer ]);
}, false);
| javascript |
Amul has hiked the price of fresh milk in parts of Gujarat by Rs 2 per litre from April 1. The hike is a 3-4 per cent increase in the MRP.
The Gujarat Cooperative Milk Marketing Federation Limited (GCMMF), which markets the Anand-based cooperative brand, said in a statement that prices have been hiked in major variants in Ahmedabad and Saurashtra-Kutch markets with effect from April 1.
In Ahmedabad and Saurashtra-Kutch markets, the price of Amul Gold will be Rs 32, Amul Taaza Rs 26 and Amul Shakti Rs 29 for 500 ml packs. | english |
package io.github.marcocipriani01.mathstests;
import android.util.Log;
@SuppressWarnings("unused")
public class Fraction {
private static final String TAG = "Fractions - ";
private int fractionNumerator;
private int fractionDenominator;
public Fraction(int numerator, int denominator) throws ArithmeticException {
this(numerator, denominator, true);
}
public Fraction(int numerator, int denominator, boolean reduce) throws ArithmeticException {
if (denominator == 0) {
throw (new ArithmeticException("Invalid fraction! Denominator can't be 0!"));
}
fractionNumerator = numerator;
fractionDenominator = denominator;
if (reduce) {
reduce();
}
}
public Fraction(int number) {
fractionNumerator = number;
fractionDenominator = 1;
}
public Fraction() {
this(0);
}
public Fraction(Fraction other) throws ArithmeticException {
this(other.getNumerator(), other.getDenominator());
}
/* STATIC methods */
public static Fraction valueOf(int number) {
return new Fraction(number);
}
public static Fraction valueOf(String number) {
return new Fraction(Integer.parseInt(number));
}
public static Fraction pow(Fraction fraction, int y) throws ArithmeticException {
String tempTag = "(" + fraction.toString() + ")^" + String.valueOf(y) + " = ";
if (!fraction.isZero()) {
Fraction newFraction = new Fraction((int) Math.pow(fraction.getNumerator(), y), (int) Math.pow(fraction.getDenominator(), y));
Log.e(TAG + "pow", tempTag + newFraction.toString());
return newFraction;
}
Log.e(TAG + "pow", tempTag + "error -> fraction = 0");
return new Fraction();
}
public static Fraction addiction(Fraction a, Fraction b) throws ArithmeticException {
if ((a.isZero()) && (b.isZero())) {
return new Fraction();
} else if (a.isZero()) {
return b;
} else if (b.isZero()) {
return a;
} else {
int currentLCM = MoreMaths.LCM(a.getDenominator(), b.getDenominator());
return new Fraction((a.getNumerator() * (currentLCM / a.getDenominator())) + (b.getNumerator() * (currentLCM / b.getDenominator())), currentLCM);
}
}
public static Fraction subtraction(Fraction a, Fraction b) throws ArithmeticException {
if ((a.isZero()) && (b.isZero())) {
return new Fraction();
} else if (a.isZero()) {
return b;
} else if (b.isZero()) {
return a;
} else {
int currentLCM = MoreMaths.LCM(a.getDenominator(), b.getDenominator());
return new Fraction((a.getNumerator() * (currentLCM / a.getDenominator())) - (b.getNumerator() * (currentLCM / b.getDenominator())), currentLCM);
}
}
public static Fraction multiplication(Fraction a, Fraction b) throws ArithmeticException {
if ((a.isZero()) || (b.isZero())) {
return new Fraction();
} else {
return new Fraction(a.getNumerator() * b.getNumerator(), a.getDenominator() * b.getDenominator());
}
}
public static Fraction division(Fraction a, Fraction b) throws ArithmeticException {
if ((a.isZero()) || (b.isZero())) {
return new Fraction();
} else {
return new Fraction(a.getNumerator() * b.getDenominator(), a.getDenominator() * b.getNumerator());
}
}
public int getNumerator() {
return fractionNumerator;
}
public void setNumerator(int numerator) {
fractionNumerator = numerator;
}
public int getDenominator() {
return fractionDenominator;
}
public void setDenominator(int denominator) {
fractionDenominator = denominator;
}
public Fraction reduce() {
String tempTag = "Reducing " + toString() + ", now ";
if (isZero()) {
fractionDenominator = 1;
fractionNumerator = 0;
Log.e(TAG + "log", toString() + " = 0!");
return this;
} else {
int currentGCD = MoreMaths.GCD(fractionNumerator, fractionDenominator);
while (currentGCD != 1) {
fractionNumerator = fractionNumerator / currentGCD;
fractionDenominator = fractionDenominator / currentGCD;
currentGCD = MoreMaths.GCD(fractionNumerator, fractionDenominator);
}
}
if (((fractionNumerator) < 0) && (fractionDenominator < 0) || (fractionDenominator < 0)) {
reverse();
}
Log.e(TAG + "log", tempTag + toString());
return this;
}
public Fraction reverse() {
fractionNumerator = 0 - fractionNumerator;
fractionDenominator = 0 - fractionDenominator;
Log.e(TAG + "log", "Signs adjusted: " + toString());
return this;
}
public Fraction reverseNumerator() {
fractionNumerator = 0 - fractionNumerator;
return this;
}
public Fraction reciprocal() {
if ((fractionNumerator == 0) || (fractionDenominator == 0)) {
return new Fraction();
}
int temp = fractionNumerator;
fractionNumerator = fractionDenominator;
fractionDenominator = temp;
return this;
}
@Override
public String toString() {
if (fractionDenominator == 1) {
return String.valueOf(fractionNumerator);
} else {
return (String.valueOf(fractionNumerator) + " / " + String.valueOf(fractionDenominator));
}
}
public int toInt() throws ArithmeticException {
if (fractionDenominator == 0) {
throw (new ArithmeticException("Invalid fraction! Denominator can't be 0!"));
}
if ((fractionNumerator % fractionDenominator) == 0) {
Log.e(TAG + "toInt()", "ToInt() - OK.");
} else {
Log.e(TAG + "toInt()", "ToInt() - not an integer!");
}
return (fractionNumerator / fractionDenominator);
}
public float toFloat() throws ArithmeticException {
if (fractionDenominator == 0) {
throw (new ArithmeticException("Invalid fraction! Denominator can't be 0!"));
}
return ((float) fractionNumerator / (float) fractionDenominator);
}
public boolean isZero() {
return ((fractionNumerator == 0) || (fractionDenominator == 0));
}
public boolean isEqual(Fraction other) {
reduce();
other.reduce();
return ((fractionNumerator == other.getNumerator()) && (fractionDenominator == other.getDenominator()));
}
Fraction primitiveAdd(Fraction other) {
if (fractionDenominator == other.getDenominator()) {
fractionNumerator = fractionNumerator + other.getNumerator();
return this;
}
reduce();
other.reduce();
if ((isZero()) && (other.isZero())) {
return new Fraction();
} else if (isZero()) {
return other;
} else if (other.isZero()) {
return this;
} else {
int currentLCM = MoreMaths.LCM(fractionDenominator, other.getDenominator());
fractionNumerator = (fractionNumerator * (currentLCM / fractionDenominator)) + (other.getNumerator() * (currentLCM / other.getDenominator()));
fractionDenominator = currentLCM;
return reduce();
}
}
public Fraction add(Fraction... args) {
String tempTag = "(" + toString() + ")";
for (Fraction arg : args) {
primitiveAdd(arg);
tempTag = tempTag + " + (" + arg.toString() + ")";
}
Log.e(TAG + "log", tempTag + " = (" + toString() + ")");
return this;
}
public Fraction subtract(Fraction... args) {
for (Fraction arg : args) {
primitiveAdd(arg.reverseNumerator());
}
return this;
}
Fraction primitiveMultiplication(Fraction other) {
if ((isZero()) || (other.isZero())) {
return new Fraction();
} else {
fractionNumerator = fractionNumerator * other.getNumerator();
fractionDenominator = fractionDenominator * other.getDenominator();
return reduce();
}
}
public Fraction multiply(Fraction... args) {
String tempTag = "(" + toString() + ")";
for (Fraction arg : args) {
primitiveMultiplication(arg);
tempTag = tempTag + " * (" + arg.toString() + ")";
}
Log.e(TAG + "log", tempTag + " = (" + toString() + ")");
return this;
}
public Fraction divide(Fraction... args) {
for (Fraction arg : args) {
primitiveMultiplication(arg.reciprocal());
}
return this;
}
public Fraction pow(int y) {
String tempTag = "(" + toString() + ")^" + String.valueOf(y) + " = ";
fractionNumerator = ((int) Math.pow(fractionNumerator, y));
fractionDenominator = (int) Math.pow(fractionDenominator, y);
reduce();
Log.e(TAG + "pow", tempTag + toString());
return this;
}
} | java |
import React, { Component, useState } from "react"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
import { LayoutTypes } from "./layout";
import { mobileMenuFooter, mobileMenusToggleStyle, line1StyleClose, line2StyleClose, line1StyleOpen, line2StyleOpen, mobileMenuContentStyle, mobileMenuStyle, contactStyleMobile, aboutStyleMobile, languageStyleMobile, projectStyleMobile } from "./styles/mobileMenu.styles";
import './styles/mobileMenu.css'
import {TransitionGroup, Transition, CSSTransition} from "react-transition-group";
import { instagramStyle } from "./styles/footer.styles";
export interface MobileMenuProps{
menuOnClick(option): any;
language: string;
setLanguage: any;
width: number;
}
export default function MobileMenu (props: MobileMenuProps): JSX.Element{
const data = useStaticQuery(
graphql`
query {
facebook: file(relativePath: { eq: "facebook.png" }) {
childImageSharp {
fixed(width: 15, height: 22) {
...GatsbyImageSharpFixed
}
}
}
twitter: file(relativePath: { eq: "twitter.png" }) {
childImageSharp {
fixed(width: 19, height: 17) {
...GatsbyImageSharpFixed
}
}
}
instagram: file(relativePath: { eq: "instagram.jpg" }) {
childImageSharp {
fixed(width: 22, height: 22) {
...GatsbyImageSharpFixed
}
}
}
allContentfulSocial(limit: 1) {
nodes {
instagram
twitter
facebook
}
}
}
`)
const [extended, setExtended] = useState(false);
const duration = 300;
return (
<div >
<div onClick = {(e) => {
setExtended(!extended)
}} style = {mobileMenusToggleStyle}>
<div className ='toggle' style={extended === false ? line1StyleOpen:line1StyleClose}></div>
<div className ='toggle' style={extended === false ? line2StyleOpen:line2StyleClose}></div>
</div>
<TransitionGroup>
{extended &&
<CSSTransition in={extended} timeout={duration} classNames="mobile-menu">
<div style={mobileMenuStyle}>
<div style={mobileMenuContentStyle}>
<div style={projectStyleMobile} onClick={(e) => {
props.menuOnClick(LayoutTypes.ProjectsMobile)
setExtended(false);
}
}>
<u>{props.language == "es" ? "Proyectos" : "Projects" }</u>
</div>
<div style={aboutStyleMobile} onClick={(e) => {
props.menuOnClick(LayoutTypes.About)
setExtended(false);
}
}>
<u>{props.language == "es" ? "Nosotros" : "About" }</u>
</div>
<div style = {contactStyleMobile} onClick={(e) => {
props.menuOnClick(LayoutTypes.Contact)
setExtended(false);
}
}>
<u>{props.language == "es" ? "Contacto" : "Contact" }</u>
</div>
<div style = {languageStyleMobile}>
<span onClick = {(e) => props.setLanguage('en-US')}>Eng</span>, <span onClick = {(e) => props.setLanguage('es')}>Esp</span>
</div>
<div style={mobileMenuFooter}>
<a href={data.allContentfulSocial.nodes[0].instagram}><Img fixed={data.instagram.childImageSharp.fixed} style={instagramStyle} /></a>
</div>
</div>
</div>
</CSSTransition>
}
</TransitionGroup>
</div>
)
} | typescript |
Thursday March 23, 2023,
Bahrain-based proptech Estater has closed its Series A funding round, raising over $5 million. The round was led by undisclosed investors from Saudi Arabia and Bahrain.
Estater will use the fresh capital for advancing product development, growing the employee base, and enhancing necessary tech infrastructure. At present, the firm has over 50 employees, as per a statement shared by Wamda.
Founded by Mahmoud AlJarrah, Roobesh Modi, and Sanjay Goyal in 2009, Estater uses artificial intelligence (AI) to estimate the value of properties, facilitating its users to choose a property on a map and determine its valuation in an instant.
Over time, users can follow the selected property to track changes in its valuation. Over 100 features of the property are considered in generating the valuation, as per Goyal.
So far, the startup has already digitised relevant information for over two million houses in Bahrain, Riyadh, Kuwait, Khobar, Jeddah, and Dammam. "The valuation of these properties requires several hundred million calculations that are currently underway," said Goyal.
At present, Estater has over 100 clients comprising financial institutions, real estate and investment firms. In the past decade, it has delivered over 300 real estate studies across GCC countries.
“Estater is GCC's first company with its entire data on Geographic Information System (GIS) maps. Use of maps makes all applications highly interactive for users," said Roobesh Modi, Co-founder, Estater.
Currently, its various products are in the final stages of development.
[email protected].
| english |
Lucknow: Prime Minister Narendra Modi on Monday asked UP ministers to focus on good governance, remain connected to people at the grassroots level, maintain coordination with the party organisation and also ensure implementation of central and state government’s schemes.
He also emphasised the need for transparency in the working of the government.
Addressing the council of ministers at Chief Minister Yogi Adityanath’s residence at a dinner meeting, Modi underlined the increased responsibility of the government following its second consecutive win in the recent Assembly elections.
According to sources, a number of Cabinet ministers gave brief presentations of the policies of their respective departments while the Prime Minister gave his inputs on improving efficiency.
He also posed for a photograph with the Chief Minister, Deputy Chief Ministers and council of ministers.
The Prime Minister’s arrival was delayed by over an hour.
Earlier on Monday, Modi had offered prayers at the Mahaparinirvana Stupa in Kushinagar on the occasion of Buddha Purnima.
| english |
//! Adds support for automatic Breadcrumb and Event capturing from logs.
//!
//! The `log` crate is supported in two ways. First, logs can be captured as
//! breadcrumbs for later. Secondly, error logs can be captured as events to
//! Sentry. By default anything above `Info` is recorded as breadcrumb and
//! anything above `Error` is captured as error event.
//!
//! # Examples
//!
//! ```
//! let log_integration = sentry_log::LogIntegration::default();
//! let _setry = sentry::init(sentry::ClientOptions::default().add_integration(log_integration));
//!
//! log::info!("Generates a breadcrumb");
//! ```
//!
//! Or optionally with env_logger support:
//!
//! ```
//! let mut log_builder = pretty_env_logger::formatted_builder();
//! log_builder.parse_filters("info");
//! let log_integration =
//! sentry_log::LogIntegration::default().with_env_logger_dest(Some(log_builder.build()));
//! let _setry = sentry::init(sentry::ClientOptions::default().add_integration(log_integration));
//!
//! log::error!("Generates an event");
//! ```
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
mod converters;
mod integration;
mod logger;
pub use converters::{breadcrumb_from_record, event_from_record};
pub use integration::LogIntegration;
pub use logger::Logger;
| rust |
<reponame>donbellamy/ContentBox
{
"name":"ContentBox Installer Module",
"version":"@version.number@+@build.number@",
"location":"https://downloads.ortussolutions.com/ortussolutions/contentbox/@version.number@/contentbox-installer-module-@version.number@.zip",
"author":"Ortus Solutions <<EMAIL>>",
"slug":"contentbox-installer-module",
"shortDescription":"The ContentBox installer module for new sites",
"type":"cms",
"keywords":"cms,content management,modular cms",
"homepage":"https://www.contentboxcms.org",
"documentation":"https://contentbox.ortusbooks.com",
"repository":{
"type":"git",
"url":"https://github.com/Ortus-Solutions/ContentBox"
},
"bugs":"https://ortussolutions.atlassian.net/browse/CONTENTBOX",
"license":[
{
"type":"Apache2",
"url":"http://www.apache.org/licenses/LICENSE-2.0.html"
}
],
"contributors":[
"<NAME> <<EMAIL>>",
"<NAME> <<EMAIL>>",
"<NAME> <<EMAIL>>"
],
"dependencies":{
},
"installPaths":{
},
"devDependencies":{
},
"ignores":[
]
}
| json |
Andhra Pradesh Chief Minister-designate N. Chandrababu Naidu is likely to take oath of office along with at least six Ministers on Sunday.
Mr. Naidu initially contemplated on taking oath alone during the swearing-in ceremony planned to be held at a venue opposite Acharya Nagarjuna University campus on Krishna-Guntur border since several dignitaries including Prime Minister Narendra Modi were invited to attend the event. The TDP chief is, however, said to have changed his plans given the uncertainty over Mr. Modi’s visit.
“We have handed over an invitation personally and requested the Prime Minister to attend the ceremony. We have to wait and see,” was how an MP reacted. Mr. Naidu, in the meanwhile, sounded some party MLAs to be ready for swearing-in along with him, as can be seen from the invitation extended to senior leaders and Union Ministers.
There is no clarity on the exact composition of the Cabinet as yet since Mr. Naidu has reportedly not revealed his choice to even senior party leaders. Names of several MLAs are, however, doing rounds as prospective candidates for induction into the Cabinet.
Senior MLAs Kodela Sivaprasada Rao (Guntur), Bojjala Gopalakrishna Reddy (Chittoor) and K. E. Krishnamurthy (Kurnool) are among the probables. Party sources said the name of MLA Paritala Sunitha has almost been cleared to represent Anantapur as film star-turned-politician N. Balakrishna was not inclined to join the Cabinet.
Senior leader Yanamala Ramakrishnudu is being tipped to become the Deputy CM in line with Mr. Naidu’s commitment to give the post to a candidate from weaker sections. | english |
html{
height: 100%;
overflow: hidden;
}
@import url('https://fonts.googleapis.com/css?family=Roboto');
body{
height: 100%;
overflow: auto;
color: #001029;
font-family: 'Roboto', sans-serif;
background-color: #e7e7e7;
}
.contentBox{
background-color: #f8f8f8;
margin-top: 20px;
border-radius: 5px;
padding: 10px 40px;
margin-bottom: 20px;
}
.menuBox{
padding: 0px 10px;
}
.menuOptions{
background-color: #f8f8f8;
margin-top: 20px;
border-radius: 5px;
padding: 10px 40px;
margin-bottom: 20px;
}
.enterIcon{
width: 40px
}
.address{
max-width: 60px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.txhash{
max-width: 60px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.txhash-doc{
max-width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.filename{
max-width: 240px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.input-group .form-control {
z-index: 0;
}
.cursor-pointer{
cursor: pointer;
}
.cursor-pointer:hover{
text-decoration: none;
}
a{
color: #001029;
}
a:hover{
cursor: pointer;
}
.green{
color: green;
}
.title{
margin-bottom: 20px;
margin-top:50px;
}
.loading{
font-size: 50px;
margin-bottom: 50px;
margin-top:50px;
}
.white{
color: white;
}
.modalTitle{
margin-top: 10px;
margin-bottom: 10px;
}
.margin-bottom{
margin-bottom: 10px;
}
.margin-top{
margin-top: 10px;
}
.react-qr{
width: 300px;
height: 300px;
}
.modalBody{
margin-bottom: 10px;
padding-right: 10px;
padding-left: 10px;
}
.file-input:hover{
background-color: white;
border-radius: 5px;
}
.progress {
margin-bottom: 0px;
}
.badge{
width: auto;
height: auto;
margin: 0;
position:absolute;
top: -6px;
right: -3px;
padding:5px;
}
.actions-button{
margin-left: 3px;
margin-right: 3px;
}
.message-well{
padding: 5px 10px !important;
box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2), 0 0px 0px 0 rgba(0, 0, 0, 0.0) !important;
margin: 5px 0px !important;
}
.message-row{
padding: 0px 4px;
}
.message-row:hover{
background-color: #DDD !important;
border-radius: 5px;
}
.message-date{
display: none;
}
.message-row:hover .message-date {
display: block;
}
.enterText{
color: #6C6A6A;
}
.nav-input{
padding-top: 5px;
margin: 0px 10px;
}
.nav-input input{
box-shadow: none !important;
color: #ececec;
}
.nav-icon{
padding-top: 15px;
}
.login-button{
padding: 5px 10px !important;
color: #000 !important;
}
.form-group{
margin: 5px 0 0 0 !important;
}
.form-group .form-control{
padding-top: 0px !important;
}
.form-group label{
margin: 0px !important;
}
.grey{
color: #777;
}
.enter-checkbox{
margin: 12px 0px !important;
}
.menuNotif{
width: 250px;
max-height: 300px;
left: 10px;
overflow-y: auto;
overflow-x: hidden;
white-space: pre-line !important;
}
.menuNotif li{
white-space: pre-line !important;
}
.togglebutton label input[type="checkbox"]:checked + .toggle::after {
background-color: #F1F1F1;
}
.togglebutton label input[type="checkbox"]:checked + .toggle {
background-color: rgba(80, 80, 80, 0.7);
}
.table-summary{
max-width: 500px;
margin: auto;
}
.checkbox-loan{
margin-top: 25px !important;
padding-left: 10px !important;
}
.checkbox-loan input{
margin-left: 15px;
}
.navbar.navbar-default .nav-input .form-control {
height: 36px !important;
}
.table-wrapper {
position:relative;
}
.table-scroll {
height:200px;
overflow:auto;
margin-top:20px;
}
.table-wrapper table {
width:100%;
}
| css |
<gh_stars>0
/*
* Copyright 2010-2021 Australian Signals Directorate
*
* 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 au.gov.asd.tac.constellation.views.analyticview.analytics;
import au.gov.asd.tac.constellation.graph.Graph;
import au.gov.asd.tac.constellation.graph.GraphElementType;
import static au.gov.asd.tac.constellation.graph.GraphElementType.TRANSACTION;
import static au.gov.asd.tac.constellation.graph.GraphElementType.VERTEX;
import au.gov.asd.tac.constellation.graph.GraphReadMethods;
import au.gov.asd.tac.constellation.graph.GraphWriteMethods;
import au.gov.asd.tac.constellation.graph.schema.visual.concept.VisualConcept;
import au.gov.asd.tac.constellation.plugins.Plugin;
import au.gov.asd.tac.constellation.plugins.PluginException;
import au.gov.asd.tac.constellation.plugins.PluginExecution;
import au.gov.asd.tac.constellation.plugins.PluginInteraction;
import au.gov.asd.tac.constellation.plugins.PluginRegistry;
import au.gov.asd.tac.constellation.plugins.parameters.PluginParameters;
import au.gov.asd.tac.constellation.views.analyticview.results.AnalyticResult;
import au.gov.asd.tac.constellation.views.analyticview.results.ClusterResult;
import au.gov.asd.tac.constellation.views.analyticview.results.ClusterResult.ClusterData;
import java.lang.reflect.InvocationTargetException;
import org.openide.util.Exceptions;
/**
* A basic analytic plugin which reads cluster data from the graph based on the
* execution of a single pre-existing plugin.
*
* @author cygnus_x-1
*/
public abstract class ClusterAnalyticPlugin extends AnalyticPlugin<ClusterResult> {
protected ClusterResult result;
protected abstract Class<? extends Plugin> getAnalyticPlugin();
protected boolean ignoreDefaultValues() {
return true;
}
protected final void computeResultsFromGraph(final GraphReadMethods graph, final PluginParameters parameters) {
result = new ClusterResult();
result.setIgnoreNullResults(ignoreDefaultValues());
getAnalyticAttributes(parameters).forEach(schemaAttribute -> {
int graphElementCount = 0;
int identifierAttributeId = Graph.NOT_FOUND;
final int clusterNumberAtributeId = schemaAttribute.get(graph);
if (clusterNumberAtributeId == Graph.NOT_FOUND) {
throw new RuntimeException("Expected attribute not found on graph: " + schemaAttribute.getName());
}
final GraphElementType graphElementType = schemaAttribute.getElementType();
switch (graphElementType) {
case VERTEX:
graphElementCount = graph.getVertexCount();
identifierAttributeId = VisualConcept.VertexAttribute.IDENTIFIER.get(graph);
break;
case TRANSACTION:
graphElementCount = graph.getTransactionCount();
identifierAttributeId = VisualConcept.TransactionAttribute.IDENTIFIER.get(graph);
break;
default:
break;
}
for (int graphElementPosition = 0; graphElementPosition < graphElementCount; graphElementPosition++) {
final int graphElementId = graphElementType == GraphElementType.VERTEX
? graph.getVertex(graphElementPosition) : graphElementType == GraphElementType.TRANSACTION
? graph.getTransaction(graphElementPosition) : Graph.NOT_FOUND;
final String identifier = graph.getStringValue(identifierAttributeId, graphElementId);
final int clusterNumber = graph.getIntValue(clusterNumberAtributeId, graphElementId);
final int defaultNumber = (int) graph.getAttributeDefaultValue(clusterNumberAtributeId);
final boolean isNull = ignoreDefaultValues() && clusterNumber == defaultNumber;
result.add(new ClusterData(graphElementType, graphElementId, identifier, isNull, clusterNumber));
}
});
}
@Override
public final PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameters analyticPluginParameters = PluginRegistry.get(getAnalyticPlugin().getName()).createParameters();
if (analyticPluginParameters != null) {
analyticPluginParameters.getParameters().values().forEach(parameter -> parameters.addParameter(parameter));
}
updateParameters(parameters);
return parameters;
}
@Override
protected final void edit(final GraphWriteMethods graph, final PluginInteraction interaction, final PluginParameters parameters) throws InterruptedException, PluginException {
try {
// prepare the graph
prepareGraph(graph, parameters);
// ensure the required analytic attributes exists on the graph
getAnalyticAttributes(parameters).forEach(schemaAttribute -> schemaAttribute.ensure(graph));
// run analytic plugin on the entire graph and compute results
PluginExecution.withPlugin(getAnalyticPlugin().getDeclaredConstructor().newInstance())
.withParameters(parameters)
.executeNow(graph);
computeResultsFromGraph(graph, parameters);
} catch (final IllegalAccessException | IllegalArgumentException
| InstantiationException | NoSuchMethodException
| SecurityException | InvocationTargetException ex) {
Exceptions.printStackTrace(ex);
}
}
@Override
public final ClusterResult getResults() {
return result;
}
@Override
public final Class<? extends AnalyticResult<?>> getResultType() {
return ClusterResult.class;
}
}
| java |
<gh_stars>0
{
"body": "AND THEREFORE I SHOULD THINK MYSELF NOT A LITTLE BEHOLDEN TO ANY ONE, WHO WOULD UPON THESE, OR ANY OTHER GROUNDS,",
"next": "https://raw.githubusercontent.com/CAPSELOCKE/CAPSELOCKE/master/tweets/5021.json"
} | json |
<filename>Data/Ministere_des_finances/Communiques_de_presse/Communiques_2018-12-14_1240.json
{"id": 1240, "url": "https://minefi.hosting.augure.com/Augure_Minefi/r/ContenuEnLigne/Download?id=BEB8D2B9-BAF6-4110-95AA-611BECA21445&filename=918%20-%2024%C3%A8me%20%C3%A9dition%20du%20Conseil%20%C3%A9conomique%2C%20financier%2C%20industriel%20et%20commercial%20franco-russe%20%28CEFIC%29%20%E2%80%93%20Lundi%2017%20d%C3%A9cembre.pdf", "author": null, "title": "918 - 24ème édition du Conseil économique, financier, industriel et commercial franco-russe (CEFIC) – Lundi 17 décembre", "text": " \n1 \n \n \n \nMINISTERE DE L’ECONOMIE \nET DES FINANCES \n \n \n \n \nParis, le 14 décembre 2018 \n \n \n \n \n \n \n \n \n \n \n \n \n \nN°918 \n \n \nNOTE AUX REDACTIONS \n \n \n24ème édition du Conseil économique, financier, industriel et commercial \nfranco-russe (CEFIC) \n \nLundi 17 décembre – Matinée \nBercy \n \n \n \<NAME>, ministre de l’Economie et des Finances, recevra lundi 17 décembre \n<NAME>, ministre du Développement économique de la Fédération de Russie, à l’occasion \nde la 24ème session du Conseil économique, financier, industriel et commercial (CEFIC). \n \nCelle-ci fait suite à la visite du président de la République <NAME> au Forum de Saint \nPétersbourg en mai 2018 où la France était l’invitée d’honneur et permettra de faire le bilan des \navancées obtenues depuis les deux CEFIC qui s’étaient tenus en 2017. \n \nCette édition du CEFIC 2018 aura pour principal objectif d’approfondir les relations économiques \nexistantes entre les deux pays en se fondant sur les partenariats stratégiques franco-russes, mais aussi \nde lancer de nouvelles coopérations économiques. \n \nPour la première fois dans l’histoire du CEFIC, un dialogue de haut niveau entre ministres et \ncommunautés d’affaires des deux pays aura lieu. Les ministres et les dirigeants des entreprises \nfrançaises et russes présents échangeront sur les projets de coopération possible et sur les réponses \néconomiques à apporter au changement climatique. \n \nPendant la réunion du CEFIC, les grands secteurs de la relation économique bilatérale franco-russe \nseront abordés et plusieurs accords de coopération seront signés, entre les deux gouvernements mais \naussi entre des entreprises. \n \nUn déjeuner en présence des ministres et des entreprises du secteur du tourisme permettra \nd’envisager les conditions de développement de ce nouveau secteur de coopération entre la France et \nla Russie. \n \n \n \n \n \n \n \n\n \n2 \n \n \n \nProgramme : \n \n8 h 30 \nArrivée de <NAME>, ministre du Développement économique de la Fédération \nde Russie \n \n \n \n \n \nAccueil par <NAME> \n \n \n \nPhoto officielle \n \n \nPresse images accréditée \n \n8 h 30 \nPetit-déjeuner de travail en compagnie des communautés d’affaires françaises et russes \n \n \nTour de table images \n \n10 h 30 \nRéunion plénière du CEFIC \n- Tour de table images \n- Presse accréditée pour les interventions introductives des deux ministres \n \n11 h 30 \nConférence de presse et cérémonie de signatures \n \n \nPresse accréditée \n \n \n \n \n \n \nAccréditations auprès du service presse de Bercy : \n \n01 53 18 33 80 - <EMAIL> \n \n \n \n \n \n \n \n \n \n \n \n \n \nContacts presse : \n \nCabinet de Bruno Le Maire : 01 53 18 41 13 - <EMAIL> \n \n<NAME>, porte-parole du ministère de l'Economie et des Finances sur les questions \neuropéennes et internationales : 00 33 6 26 82 61 21 - <EMAIL> \n \n", "published_date": "2018-12-14", "section": "Communiques"} | json |
One of the most ignored problems in today’s culture, I believe, is loneliness. Another is the relentless pursuit of meaning — often strictly one-dimensional in nature — capable of hollowing out people and making them drown in their own insecurities. The first is ridiculously clichéd. The second — meaning — is lost as quickly as it is found.
Haruki Murakami and J D Salinger have published seminal work to this end. While Murakami has drawn deliciously on culture, tropes and the relationship between an individual and community, Salinger has made sadness funny. The theme has occupied page after page through an allegorical engine, some bizarre flight of fancy, and plenty of background music that has made sadness lyrical, relatable, and in plenty of cases, enjoyable. Ib’s Endless Search for Satisfaction (a highly attractive title) makes sadness feel… just sad. In fact, it uses despair, and only despair in its excruciatingly organic form, as fibre to keep spinning the 200-odd pages yarn.
The book is not a soul-crushing read. And in all probability, author Roshan Ali did not intend to make it into one. The characters, including the protagonist Ib, are unremarkable, which is quite understandable because characters like them are not meant to be remarkable. This might also mean that Ali has written without the singular aim to please or inspire, without any boundary or fear of judgment.
He writes on isolation and emptiness as a kid splattering colours on a sheet of paper — with only a few, scattered elements of attraction. There are moments when this feels like the bravest thing about the book; then there are moments when the trick paints the novel dull.
Ib is a fish by nature, living in silence. Quietness has occupied a large part of his childhood. He is the kid you and I have seen inside the classroom, office, public transport. He is the guy who sits in a corner, his face not betraying any emotion he might be experiencing. He is thought to have no ambition in life except to go by the regular business of surviving. He goes about being consistently not noticed, but he has thoughts. And when they are spelled out, there is muted passion, resentment and a longing for answers in them.
Ib’s father, Apoos, is schizophrenic, and harmlessly so. His mother is a long-suffering, unassertive woman who avoids all conflict and does not believe in talking about things. Then there is Ajju, Ib’s maternal grandfather, the patriarchal figure and compass of moral regression, it’s not a joke every middle-class household has one like him. Each of these characters is dysfunctional in their own way, but nowhere for beyond a nanosecond does one feel as much a shade of sympathy for them. Again, Ali may not have had the inspiration to turn them into sympathetic characters. For that matter, Ib’s life is not swallowed by any mammoth tragedy. His longing for meaning, and the subsequent grief stemming from it, is anchored in his head, from which there is no way out. Ib, after all, is his own problem.
For somebody in search of meaning, Ib’s life veers off onto some odd tangents. At one point, he finds himself spending most of his time with a sadhu and accompanies him to the Himalayas, where he eventually discovers — the sadhu confesses to him — that he is a fraud in orange. The sadhu lulls people into his ways, and when he is sure they are trapped, gives them “the truth” — snap all strings of personal attachment with their lives. He does this because he feels people need help, but they know no logic or reason.
I quite liked the sadhu’s character, but would refrain from drawing comparisons. For Ali writes; “The credulous see meaning in everything; an event which appears special may just be an ordinary coincidence”.
For those looking for purpose in Ib’s journey, there is none. Towards the end, the reader would want to believe that Ib would get his story straight in his poetic encounter with a girl who wants to be a published author. But no. It is the weight of Ib’s thoughts and epiphanies that lift the pages out of mundanity, for Ib’s quite shapeless being is relevant only in them.
Ib is rarely the character you long for in a novel of this genre — that of a lost soul who gets (at least) some things in life straight. There is no message, no great purpose behind this novel. It is how it is, indeed, an endless search for satisfaction. That is not necessarily a bad thing either. | english |
import java.io.File;
import java.util.Scanner;
public class ManagePrisoner {
private Prisoner convict[] = new Prisoner[100];
private int size = 0;
public ManagePrisoner() {
try {
Scanner scFile = new Scanner(new File("Prisoners.txt"));
while (scFile.hasNext()) {
Scanner scLine = new Scanner(scFile.next()).useDelimiter("#");
String name = scLine.next();
int months = scLine.nextInt();
char block = scLine.next().charAt(0);
Prisoner prisoner = new Prisoner(name, months, block);
convict[size] = prisoner;
size++;
}
} catch (Exception e) {
System.out.println(e);
}
}
public int getPrisonerSentence(String name) {
for (Prisoner prisoner : convict) {
if (prisoner == null) {
return -1;
} else if (prisoner.getName().equals(name)) {
return prisoner.getMonths();
}
}
return -1;
}
public int totalA() {
int totalMonths = 0;
for (Prisoner prisoner : convict) {
if (prisoner == null) {
return totalMonths;
} else if (prisoner.getBlock() == 'A') {
totalMonths += prisoner.getMonths();
}
}
return totalMonths;
}
public int totalX(char block) {
int totalMonths = 0;
for (Prisoner prisoner : convict) {
if (prisoner == null) {
return totalMonths;
} else if (prisoner.getBlock() == block) {
totalMonths += prisoner.getMonths();
}
}
return totalMonths;
}
public String prisonersMoreThan20Months() {
String output = "";
for (Prisoner prisoner : convict) {
if (prisoner == null) {
return output;
} else if (prisoner.getMonths() > 20) {
output += prisoner.toString() + "\n";
}
}
return output;
}
public String prisonersMoreThanXMonths(int minMonths) {
String output = "";
for (Prisoner prisoner : convict) {
if (prisoner == null) {
return output;
} else if (prisoner.getMonths() > minMonths) {
output += prisoner.toString() + "\n";
}
}
return output;
}
public void sortName() {
for (int i = 0; i < size - 1; i++) {
for (int j = i + 1; j < size; j++) {
if (convict[i].getName().compareTo(convict[j].getName()) > 0) {
Prisoner temp = convict[i];
convict[i] = convict[j];
convict[j] = temp;
}
}
}
}
public boolean prisonerExist(String name) {
for (Prisoner prisoner : convict) {
if (prisoner == null) {
return false;
} else if (prisoner.getName().equals(name)) {
return true;
}
}
return false;
}
public void sortMonths() {
for (int i = 0; i < size - 1; i++) {
for (int j = i + 1; j < size; j++) {
if (convict[i].getMonths() < convict[j].getMonths()) {
Prisoner temp = convict[i];
convict[i] = convict[j];
convict[j] = temp;
}
}
}
}
@Override
public String toString() {
String output = "BLOCK\tNAME\t(MONTHS)\n";
for (Prisoner prisoner : convict) {
if (prisoner == null) {
return output;
}
output += prisoner.toString() + "\n";
}
return output;
}
}
| java |
Will Arnett will soon be featured with Red Bull's reserve driver Daniel Ricciardo during the F1 Canadian GP as the duo will host The Grandstand with Daniel Ricciardo and Will Arnett, live coverage of the Formula 1 race. However, it won't be the first time since Arnett will do something close to the world of racing and Formula 1.
Lately, there have been many Formula 1 podcasts getting popular where experts talk about the prospects of drivers and teams, and one such is Will Arnett's F1 podcast, called Fast & Loose: F1. Users can listen to the podcast on various platforms like Apple Podcasts, Spotify, and Wondery.
Other than being a Formula 1 podcast, Will Arnett's way of presentation sets it quite apart from many other podcasts that one can listen to. It includes his expert commentary on the sport with some of the most hilarious and humor-filled outtakes. At the same time, there's quite an analysis of all of the races that take place during the season.
Each race weekend is followed by a preview and then a post-race review and analysis that is filled with many aspects of the sport that one might not think of.
As mentioned, Daniel Ricciardo and Will Arnett will be coming together at the Canadian Grand Prix to host a different telecast of the live race with their insights. This will be quite interesting for fans as the Australian is one of the most liked drivers on the grid and Arnett is known for his F1 podcast.
Ricciardo mentioned the excitement he has for the event as he said,
"This is going to be a hoot! As you'd expect Will and I are going to have some fun with the show, but we're hoping it just feels like you're watching F1 with your mates."
"We will have some amazing guests, plenty of laughs and with some luck, bring fans another step closer to the sport I love so much. Buckle up America!"
There will be two further editions of this telecast that will run in America, first during the US Grand Prix in October, and then the Las Vegas GP, which will be held in November. It would be quite an exciting venture for the fans who are trying to experience Formula 1 in a completely new way.
| english |
{
"name": "synology",
"version": "0.0.0",
"description": "A simple wrapper for the Synology NAS API",
"keywords": [
"api",
"audiostation",
"downloadstation",
"dsm",
"dtv",
"filestation",
"nas",
"surveillancestation",
"synology",
"videostation"
],
"main": "./lib/synology.js",
"dependencies": {
"request": "2.27.x",
"form-data": "0.1.x"
},
"engines": {
"node": ">=0.8.0"
},
"repository": {
"type": "git",
"url": "git://github.com/yannickcr/node-synology.git"
},
"author": "<NAME> (https://github.com/yannickcr)",
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/yannickcr/node-synology/master/LICENSE"
}
]
}
| json |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
const ll INF = 1000000000000000000ll;
const ll MOD = 1000000007ll;
const double EPS = 1e-8;
int main(void) {
//ios_base::sync_with_stdio(false);
//cin.tie(0);
return 0;
}
| cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.