text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<filename>src/main/resources/assets/fossil/models/item/bones/kelenken/unique_item.json<gh_stars>10-100
{
"parent": "item/generated",
"textures": {
"layer0": "fossil:items/bone/kelenken/unique_item"
}
} | json |
'use strict';
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = _react2.default.createClass({
displayName: 'TypographyStyle',
propTypes: {
typography: _react2.default.PropTypes.object.isRequired
},
render: function render() {
return _react2.default.DOM.style({
id: 'typography.js',
dangerouslySetInnerHTML: {
__html: this.props.typography.toString()
}
});
}
}); | javascript |
<gh_stars>100-1000
function isTouchDevice () {
return (('ontouchstart' in window) || (window.navigator.MaxTouchPoints > 0) || (window.navigator.msMaxTouchPoints > 0));
}
// vPressable directive
angular.module('vButton.directives')
.directive('vPressable', vPressableDirective);
function vPressableDirective ($document, buttonConfig) {
return {
restrict: 'A',
link: function (scope, iElement) {
var isTouch = isTouchDevice(),
pressEvent = (isTouch) ? 'touchstart' : 'mousedown',
releaseEvent = (isTouch) ? 'touchend' : 'mouseup';
var bodyElement = angular.element($document[0].body);
function makeRipple (posX, posY) {
var rect = iElement[0].getBoundingClientRect(),
ripple = iElement[0].querySelector('v-ripple');
var top, left;
angular.element(ripple).remove();
ripple = $document[0].createElement('v-ripple');
ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + 'px';
iElement.append(ripple);
left = posX - rect.left - ripple.offsetWidth / 2 - bodyElement[0].scrollLeft;
top = posY - rect.top - ripple.offsetHeight / 2 - bodyElement[0].scrollTop;
ripple.style.left = left + 'px';
ripple.style.top = top + 'px';
}
function pressButton () {
iElement.addClass(buttonConfig.states.pressed);
bodyElement.on(releaseEvent, releaseButton);
}
function releaseButton (event) {
var posX, posY;
if (isTouch) {
posX = event.changedTouches[0].pageX;
posY = event.changedTouches[0].pageY;
} else {
posX = event.pageX;
posY = event.pageY;
}
makeRipple(posX, posY);
iElement.removeClass(buttonConfig.states.pressed);
bodyElement.off(releaseEvent, releaseButton);
}
iElement.on(pressEvent, pressButton);
scope.$on('$destroy', function () {
iElement.off(pressEvent, pressButton);
bodyElement.off(releaseEvent, releaseButton);
});
}
};
}
vPressableDirective.$inject = ['$document', 'buttonConfig'];
| javascript |
Just like other festivals, special delicacies form a quintessential part of Christmas celebrations. Right from roasted turkeys and minced-pie pudding to plum cakes, these restaurants in Delhi, Mumbai, Kolkata and Bengaluru are offering Christmas buffets that you can enjoy along with your loved ones.
The Irish House’s Christmas menu is filled with extravagant food items that includes spinach and cheese tortellini on a cheesy onion jalapeno smear, mushroom ragout puff, cheesy potato skins with turkey ham and crispy bacon, turkey ham and cheese sandwich, roast chicken with blueberry balsamic sauce, pork ribs with cranberry applesauce, to name a few. Plus, you will get to select from a variety of winter cocktails like the winter sangria, Earl Grey and blackberry martini, rosemary and maple sour, Irish butterbeer and chocolate martini.
Decode presents a Christmas special menu featuring the Santa’s favourite soup, crispy chicken Asian salad, Christmas tree money bags, roasted fake rann, Indian flavoured chicken sausage bao taco and lamb rogan puffs. Also, there will be DJ Julia and Manu performing so that you can rock the dance floor!
Lock & Key’s scrumptious X-Mas will have their signature cocktails with scrumptious food items. A live roast butterball turkey station, eggnog, hot buttered rum, cheese and wine that you can savour with delicacies like mustard glaze roast chicken, char-grilled pork chops, smoked salmon and ratatouille. In addition to that, singers Nikhil and Mukul will let their tunes fill in the ambiance.
The Drunken Botanist is all set to host a Christmas bash with theme decor and a special menu featuring spinach, feta and corn wreath, seasonal vegetable pie, whole roasted Chinese red snapper, turkey ham roulade, Christmas pudding cake and a Live crepes station.
Relish a sumptuous Christmas meal with your loved ones and lively music at Seasonal Tastes, The Westin Mumbai Garden City’s restaurant featuring an extensive spread paired with traditional Christmas favourites like minced pie and truffle roast turkey, Christmas cocktails, mulled wines, classic eggnog and much more.
The Sassy Spoon’s brunch menu comprises of a salad station, unlimited appetizers such as mushroom and curried cottage cheese strudels, amaranth, moong beans and mascarpone tart with chili jam, roast chicken and chestnut puff with barbeque mayo paired with cocktails and drinks.
The Christmas brunch includes traditional delicacies like chicken xacuti, roast chicken with stuffing, turkey slices, lamb vindaloo, pork sorpotel, traditional Christmas sweets, stout cake, gingerbread, stollen and lots more.
Usher in the festive spirit at Novotel, Kolkata with their array of Christmas delicacies such as roast turkey, Spanish paella, sushi and plum cakes accompanied by soulful music.
and celebrity chef Sharmistha Dey, who will conduct a sweet workshop for ladies.
Spend this Christmas afternoon with a Boat party starting from Eden Garden Ghat to Belurmath or Botanical Garden. Along with enjoying the beauty of the river, participate in the exciting game shows plus mouthwatering food and a live fuchka stall accompanied by coffee.
Kickstart the festivities with a lavish spread of traditional Christmas dishes at Hyatt’s The Bengaluru Brasserie. The buffet menu, created by Chef Manish Uniyal, has an array of delicacies like the suckling pig, dry-aged strip steak, mince pies, Christmas puddings and Dundee cake. There is also a live pasta station and a counter for stone rolled desserts.
Celebrate the many delicious flavours of Christmas by tucking into a grand European buffet at Grand Mercure, Bengaluru. Enjoy a lavish dinner spread on Christmas Eve and a grand brunch on Christmas day that includes roast turkey, honey glazed ham, grilled scampi, seafood chowder, mince pie along with live cheese and desserts counters.
Bearfoot Cafe will host a barbeque event with meat and veggies cooked on charcoal and prepared by their in-house chef. The delicacies will be accompanied by some soothing drinks. | english |
{
"_type": "https://openminds.ebrains.eu/computation/Visualization",
"_extends": "computation.schema.tpl.json"
} | json |
Kappil Beach stands around 7 km away from the Bekal Fort. This vast, serene and secluded beach is a major tourist hotspot. The Kappil Beach is refreshingly different from the other beach destinations in its tranquil surroundings.
This sun-kissed beach acts as a perfect place to break loose after a tour of the neighbouring Bekal Fort. Those adventurous-minded souls can also climb the Kodi Cliff to get a panoramic view of the Arabian Sea. This cliff appears as if it emerged from the Arabian Sea. A perfect spot for those who love to shoot nature! | english |
Real Madrid hope to extend their winning run against Athletic Bilbao at the Estadio Alfredo di Stefano on Tuesday night in La Liga action.
Los Blancos sit three points behind rivals Atletico Madrid in third place, with their Basque visitors 11th in the table on 14 points.
Real Madrid completed their season-defining week with three impressive wins, defeating Sevilla 1-0, Borussia Monchengladbach 2-0 and overcoming Atletico Madrid 2-0.
Casemiro gave Zinedine Zidane's men a 15th-minute lead in the Madrid derby, before Dani Carvajal's thunderous strike from range bounced off of Jan Oblak and into the net for a 2-0 lead on the hour mark. Real Madrid held on for the win, which keeps their La Liga title hopes alive.
Having lost to a resurgent Celta Vigo 2-0 at home, Athletic Bilbao threw away a chance for an immediate response with a 2-2 draw away to Valencia.
Asier Villalibre and Raul Garcia's penalty gave Bilbao a 2-1 lead in the 79th minute, only for Unai Simon to produce his second error in as many games to allow Manu Vallejo to equalize.
Athletic Bilbao have won exactly one game against Real Madrid this decade, a 1-0 win at San Mames in the 2014-15 season. Real Madrid have won 14 of the last 20 with five draws, four of which have come in the last six games between the pair.
The Basque side held Los Blancos to a goalless draw at the Bernabeu last season, before losing their home game 1-0 in July of this year.
Zinedine Zidane came away from the game against Atletico Madrid without any new injuries, although he is likely to rotate his side, having played three crucial games in one week.
Eden Hazard, Luka Jovic, Martin Odegaard and Mariano Diaz are all injured, limiting Zidane's options for rotating, though Fede Valverde is certain to start.
Los Leones boss Gaizka Garitano has a fully-fit squad to choose from, with midfielder Peru Nolaskoain recovering from injury. Raul Garcia, Unai Lopez and Yeray Alvarez are at risk of suspension, having accumulated four yellow cards each. However, with a home game against Huesca next, it may not be too damaging should one or two of those players receive a suspension.
Even if Zinedine Zidane opts to rotate his side, the presence of Karim Benzema should cause enough damage to Athletic Bilbao. Real Madrid have stumbled against the 'smaller' sides this season, but Bilbao are old foes who they have an excellent record against.
We expect a leggy Los Blancos side to eke out a narrow win at home.
Prediction: Real Madrid 2-1 Athletic Bilbao.
| english |
CHENNAI: The cremation of legendary playback singer SP Balasubrahmanyam, who passed away on Friday afternoon, will take place at his farmhouse in Red Hills on the outskirts of Chennai on Saturday. The final rites will be held with full honours extended by the Tamil Nadu State government.
The mortal remains of SP Balu or SPB, as he is fondly called, were shifted to his residence in Mahalingapuram in Chennai, a few hours after he was pronounced dead at the MGM Healthcare. Balasubrahmanyam was being treated at this private hospital since August 5th following his testing positive for coronavirus.
Thousands of heart-broken fans of SP Balu began thronging the hospital and later to his residence in the hope of catching one last glimpse of their favourite singer. Police personnel were deployed at his residence in large numbers in anticipation of large crowd gatherings and movement of VIPs to pay tributes to the departed celebrity.
Balu’s mortal remains would be kept at his residence till Saturday morning following which they will be shifted to Satyam Theatre where general public will be allowed to pay their last respects. Around afternoon, the final procession for funeral will begin. Balasubrahmanyam, who immortalized playback singing and enthralled music lovers of many generations with his melodious voice, will be eventually cremated with full state honours at his farmhouse in Red Hills on the outskirts of the Tamil Nadu state capital. | english |
import configureStore from 'redux-mock-store';
import WsClient from 'ui-common/WsClient';
import wsAPI from 'ui-common/store/wsAPI';
import { AKTUALNI_ROK } from '../../constants';
import ucastniciTestData from '../../entities/ucastnici/ucastniciTestData';
import {
POZNAMKA_ADD,
POZNAMKA_DELETE,
POZNAMKA_MODIFY,
addPoznamka,
deletePoznamka,
modifyPoznamka,
} from './PoznamkyActions';
const unsuccessfulResponse = {
code: 'unfulfilled request',
status: 'A strange error occurred.',
};
const mockWsClient = new WsClient();
const middlewares = [wsAPI.withExtraArgument(mockWsClient)];
const mockStore = configureStore(middlewares);
it('addPoznamka() should dispatch two successful actions', async () => {
const poznamka = { datum: '2019-04-06T08:12:45.455Z', text: "it's a kind of magic" };
const response = {
code: 'ok',
response: {
poznamky: [poznamka],
},
status: 'uloženo v pořádku',
requestId: '0.9310306652587377',
};
mockWsClient.sendRequest = async () => response;
const store = mockStore({ ...ucastniciTestData, auth: { token: '===token===' } });
await store.dispatch(addPoznamka({ id: '7a09b1fd371dec1e99b7e142', poznamka }));
const request = { id: '7a09b1fd371dec1e99b7e142', poznamka, rok: AKTUALNI_ROK };
const actions = store.getActions();
expect(actions[0]).toEqual({
type: `${POZNAMKA_ADD}_REQUEST`,
request,
receivedAt: expect.any(Number),
});
expect(actions[1]).toEqual({
type: `${POZNAMKA_ADD}_SUCCESS`,
request,
response: {
code: 'ok',
status: 'uloženo v pořádku',
poznamky: [poznamka],
},
title: 'přidávání poznámky',
receivedAt: expect.any(Number),
});
});
it('addPoznamka() should dispatch two unsuccessful actions', async () => {
mockWsClient.sendRequest = async () => unsuccessfulResponse;
const store = mockStore({ ...ucastniciTestData, auth: { token: '===token===' } });
const poznamka = { datum: '2019-04-06T08:12:45.455Z', text: "it's a kind of magic" };
await store.dispatch(
addPoznamka({
id: '7a09b1fd371dec1e99b7e142',
poznamka: { ...poznamka, datum: new Date(poznamka.datum) },
})
);
const request = { id: '7a09b1fd371dec1e99b7e142', poznamka, rok: AKTUALNI_ROK };
const actions = store.getActions();
expect(actions[0]).toEqual({
type: `${POZNAMKA_ADD}_REQUEST`,
request,
receivedAt: expect.any(Number),
});
expect(actions[1]).toEqual({
type: `${POZNAMKA_ADD}_ERROR`,
request,
response: {
code: 'unfulfilled request',
status: 'A strange error occurred.',
},
title: 'přidávání poznámky',
receivedAt: expect.any(Number),
});
});
it('deletePoznamka() should dispatch two successful actions', async () => {
const response = {
code: 'ok',
response: {
poznamky: [],
},
status: 'uloženo v pořádku',
requestId: '0.9310306652587377',
};
mockWsClient.sendRequest = async () => response;
const store = mockStore({ ...ucastniciTestData, auth: { token: '===token===' } });
await store.dispatch(deletePoznamka({ id: '7a09b1fd371dec1e99b7e142', index: 0 }));
const request = { id: '7a09b1fd371dec1e99b7e142', index: 0, rok: AKTUALNI_ROK };
const actions = store.getActions();
expect(actions[0]).toEqual({
type: `${POZNAMKA_DELETE}_REQUEST`,
request,
receivedAt: expect.any(Number),
});
expect(actions[1]).toEqual({
type: `${POZNAMKA_DELETE}_SUCCESS`,
request,
response: {
code: 'ok',
status: 'uloženo v pořádku',
poznamky: [],
},
title: 'mazání poznámky',
receivedAt: expect.any(Number),
});
});
it('deletePoznamka() should dispatch two unsuccessful actions', async () => {
mockWsClient.sendRequest = async () => unsuccessfulResponse;
const store = mockStore({ ...ucastniciTestData, auth: { token: '===token===' } });
await store.dispatch(deletePoznamka({ id: '7a09b1fd371dec1e99b7e142', index: 0 }));
const request = { id: '7a09b1fd371dec1e99b7e142', index: 0, rok: AKTUALNI_ROK };
const actions = store.getActions();
expect(actions[0]).toEqual({
type: `${POZNAMKA_DELETE}_REQUEST`,
request,
receivedAt: expect.any(Number),
});
expect(actions[1]).toEqual({
type: `${POZNAMKA_DELETE}_ERROR`,
request,
response: {
code: 'unfulfilled request',
status: 'A strange error occurred.',
},
title: 'mazání poznámky',
receivedAt: expect.any(Number),
});
});
it('modifyPoznamka() should dispatch two successful actions', async () => {
const poznamka = { datum: '2019-04-06T08:12:45.455Z', text: "it's a kind of magic" };
const response = {
code: 'ok',
response: {
poznamky: [poznamka],
},
status: 'uloženo v pořádku',
requestId: '0.9310306652587377',
};
mockWsClient.sendRequest = async () => response;
const store = mockStore({ ...ucastniciTestData, auth: { token: '===token===' } });
await store.dispatch(modifyPoznamka({ id: '7a09b1fd371dec1e99b7e142', index: 0, poznamka }));
const request = { id: '7a09b1fd371dec1e99b7e142', index: 0, poznamka, rok: AKTUALNI_ROK };
const actions = store.getActions();
expect(actions[0]).toEqual({
type: `${POZNAMKA_MODIFY}_REQUEST`,
request,
receivedAt: expect.any(Number),
});
expect(actions[1]).toEqual({
type: `${POZNAMKA_MODIFY}_SUCCESS`,
request,
response: {
code: 'ok',
status: 'uloženo v pořádku',
poznamky: [poznamka],
},
title: 'ukládání poznámky',
receivedAt: expect.any(Number),
});
});
it('modifyPoznamka() should dispatch two unsuccessful actions', async () => {
mockWsClient.sendRequest = async () => unsuccessfulResponse;
const store = mockStore({ ...ucastniciTestData, auth: { token: '===token===' } });
const poznamka = { datum: '2019-04-06T08:12:45.455Z', text: "it's a kind of magic" };
await store.dispatch(
modifyPoznamka({
id: '7a09b1fd371dec1e99b7e142',
index: 0,
poznamka: { ...poznamka, datum: new Date(poznamka.datum) },
})
);
const request = { id: '7a09b1fd371dec1e99b7e142', index: 0, poznamka, rok: AKTUALNI_ROK };
const actions = store.getActions();
expect(actions[0]).toEqual({
type: `${POZNAMKA_MODIFY}_REQUEST`,
request,
receivedAt: expect.any(Number),
});
expect(actions[1]).toEqual({
type: `${POZNAMKA_MODIFY}_ERROR`,
request,
response: {
code: 'unfulfilled request',
status: 'A strange error occurred.',
},
title: 'ukládání poznámky',
receivedAt: expect.any(Number),
});
});
| javascript |
Complete Jewish Bible (Hardcover)
Now, the most widely used Messianic Jewish Bible around the world, has updated text with introductions added to each book, written from a biblically Jewish perspective. The CJB is a unified Jewish book, a version for Jews and non-Jews alike; to connect Jews with the Jewishness of the Messiah, and non-Jews with their Jewish roots. Names and terms are returned to their original Hebrew and presented in easy-to-understand transliterations, enabling the reader to say them the way Yeshua (Jesus.
David H. Stern, born in Los Angeles in 1935, is the great-grandson of two of the city's first twenty Jews. He earned a Ph.D. in economics at Princeton University and was a professor at UCLA. In 1972 he came to faith in Yeshua the Messiah. He then received a Master of Divinity degree at Fuller Theological Seminary, did graduate work at the University of Judaism, and was active in the Messianic Jewish movement. In 1979 the Stern family made aliyah (immigrated to Israel); they now live in Jerusalem. Dr. Stern authored the "Messianic Jewish Manifesto" from which "Restoring the Jewishness of the Gospel" is excerpted. His highly acclaimed English translation, the "Jewish New Testament," restores the New Testament's Jewishness. His "Jewish New Testament Commentary" discusses the many Jewish issues found in the New Testament. His fresh translation, the "Complete Jewish Bible", expresses the unity of the Tanakh ("Old Testament") and the B'rit Hadashah ("New Testament"). This outstanding, scholarly work offers Bible readers a thorough, biblically Jewish version of God's word.
| english |
{"Target":"css/academic.min.3834c081887e44130d565828d71a7178.css","MediaType":"text/css","Data":{"Integrity":"md5-ODTAgYh+RBMNVlgo1xpxeA=="}} | json |
/* eslint-disable no-unused-vars */
import errors from 'feathers-errors';
import commons from 'feathers-hooks-common';
import { restrictToOwner } from 'feathers-authentication-hooks';
import hasQueryParam from '../../hooks/hasQueryParam';
import sanitizeAddress from '../../hooks/sanitizeAddress';
import setAddress from '../../hooks/setAddress';
import setUserId from '../../hooks/setUserId';
import setStatus from '../../hooks/setStatus';
import sanitizePayloadAddresses from '../../hooks/sanitizePayloadAddresses';
import protectFromUpdate from '../../hooks/protectFromUpdate';
import { addLastStatus } from '../../hooks/addLastStatus';
import addPendingTx from './hooks/addPendingTx';
import checkPoolWhitelist from './hooks/checkPoolWhitelist';
import { updatedAt, createdAt } from '../../hooks/timestamps';
const schema = {
include: [
{
service: 'pools',
nameAs: 'pool',
parentField: 'pool',
childField: '_id',
},
],
};
module.exports = {
before: {
all: [commons.paramsFromClient('schema')],
find: [
// sanitizeAddress('contributorAddress')],x
// commons.iff(hasQueryParam('countByPoolAddress'), contributorCountByPoolAddress)
],
get: [],
create: [
sanitizePayloadAddresses([
{ fieldName: 'ownerAddress' },
{ fieldName: 'poolAddress' },
]),
checkPoolWhitelist,
setStatus('pending_confirmation'),
createdAt,
setUserId('owner'),
addPendingTx
],
update: [commons.disallow()],
// update: [ sanitizeAddress('contributorAddress', { validate: true }), updatedAt],
patch: [
protectFromUpdate([
'ownerAddress',
'poolAddress',
'owner',
'amount'
]),
// commons.stashBefore(), // can't be multi where id is null, maybe check somehow
restrictToOwner({ idField: '_id', ownerField: 'owner'}),
commons.iff((({data: { status }}) => (
[
'pending_claim_tokens',
'pending_refund'
].includes(status))),
addPendingTx),
// addLastStatus,
updatedAt,
],
remove: [commons.disallow()],
},
after: {
all: [commons.populate({ schema })], //commons.populate({ schema })
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: [],
},
error: {
all: [],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: [],
},
};
| javascript |
With India's moon mission Chandrayaan capturing everyone's attention, it's time we took a look at India's aerospace industry. We check out the storied history of ISRO, our premiere space agency, and tell you everything you need to know about the Chandrayaan and Gaganyaan missions, plus what the future holds. Hear some amazing insights directly from veteran ISRO scientist and engineer Nambi Narayanan. We'll also test your knowledge of space with some fun facts and a quiz.
| english |
<gh_stars>1-10
{"name":"Cardinalcoin","symbol":"CARD","logoURI":"https://github.com/KnoxEstes/CardinalLogo/blob/main/cardlogo.png","decimals":0,"address":"GFMQn1KitWxEZeFAZ8jSfRg69TRAJGdwPoao89Jme5nR","chainId":101,"tags":["social-token"]} | json |
# encoding: UTF-8
#
# Copyright (c) 2015, Facility for Rare Isotope Beams
#
#
"""
Common utilities for the Tornado Web framework.
.. moduleauthor:: <NAME> <<EMAIL>>
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import re
import json
class WriteFileMixin(object):
"""Mixin providing support for sending file-like object in response.
"""
@staticmethod
def clean_filename(filename):
return re.sub(r'[^\.\-_\(\)\w]', '', filename)
def write_file(self, file_obj, content_type="application/octet-stream", buf_size=2048):
"""Write the provided file-like object to the response.
HTTP response is finished on completion of this method.
:param file_obj: file-like object to be written
:param content_type: optional content type of response (default: application/octet-stream)
:param buf_size: optional buffer size used for reading file object
"""
if content_type:
self.set_header("Content-Type", content_type)
while True:
buf = file_obj.read(buf_size)
if len(buf) == buf_size:
self.write(buf)
else:
self.finish(buf)
return
class WriteJsonMixin(object):
"""Mixin providing support for sending JSON encoded response.
"""
def write_json(self, obj, content_type="application/json"):
"""Write the provided object to the response in JSON format.
HTTP Response is finished on completion of this method.
:param obj: data structure to be written as JSON
:param content_type: optional content type of reponse (default: application/json)
"""
if self.settings.get("debug", False):
indent = 2 # pretty
else:
indent = None # compact
if content_type:
self.set_header("Content-Type", content_type)
json.dump(obj, self, indent=indent)
self.finish()
| python |
"""This module implements a model selection by filename and class name
according to opts.
Opts must contain attributes opts.model_module and opts.model_cls. The
specified class must be a subclass of nn.Module.
"""
import torch.nn as nn
import importlib
from pathlib import Path
from torch.utils.data import Dataset, DataLoader
def my_model(opts):
"""Creates model object according to settings in parsed options.
Calls function with name opts.opts2model in module opts.model_module to
create model instance.
Args:
opts (obj): Namespace object with options. Required attributes are
opts.model_module and opts.opts2model.
Returns:
my_model (obj): Instantiated model object construtcted by function
opts.opts2model in module opts.model_module.
Raises:
NotImplementedError: When model wrapper opts.opts2model does not exist
in model module opts.model_module.
"""
model_import = 'models.' + opts.model_module
model_lib = importlib.import_module(model_import)
my_model = None
for name, fct in model_lib.__dict__.items():
if name==opts.opts2model:
my_model = fct(opts)
if my_model==None:
raise NotImplementedError(
"""Model wrapper function {opts2model} is not implemented in
model module {model_module}""".format(
opts2model=opts.opts2model,
model_module=opts.model_module
)
)
print("""Model was constructed by calling model function
{opts2model} in model module {model_module}.""".format(
opts2model=opts.opts2model,
model_module=opts.model_module
)
)
return my_model
| python |
{
"warnings": [
],
"source_directory": "/Users/anonyome/builds/c2dfa4ea/0/platform/site-reputation/site-reputation-ios"
} | json |
<reponame>Breakfasttt/pgk
[
{
"name":"test",
"mainResourcePath":"img/placeholder.png"
},
{
"name":"test2",
"mainResourcePath":"img/placeholder.png"
},
{
"name":"bgplaceholder",
"mainResourcePath":"img/bgplaceholder.jpg"
},
{
"name":"spritesheet1",
"mainResourcePath":"model/spritesheet/sheettest.spritesheet"
},
{
"name":"timeline1",
"mainResourcePath":"model/timeline/timeline.tl"
}
] | json |
<reponame>devvratpatel2/EcommerceSite
import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { Company } from '../models/company';
import { CompanyService } from '../services/company.service';
@Component({
selector: 'app-companyedit',
templateUrl: './companyedit.component.html',
styleUrls: ['./companyedit.component.css']
})
export class CompanyeditComponent implements OnInit {
id:string = "N/A";
companyName:string = "N/A";
selectedCompany:Company;
companyRef = new FormGroup({
name:new FormControl()
});
constructor(private route: ActivatedRoute, private companyService: CompanyService) { }
ngOnInit(): void {
this.updatePageCompanyDetails();
}
// Update Company details
updatePageCompanyDetails():void {
this.route.params.subscribe( params => {
this.id=params.id;
this.companyService.getCompanyById(this.id).subscribe(
result=>{
this.companyName=result.name;
this.selectedCompany=result
}
)
});
}
// Edit Company details
editCompanyDetails(): void {
console.log(this.companyRef.value.name);
this.selectedCompany.name = (this.companyRef.value.name);
this.companyService.updateCompanyById(this.selectedCompany, this.id).
subscribe(result=>{});
this.updatePageCompanyDetails();
}
} | typescript |
<filename>src/data/ODCAF/5947012_1.json
Facility_Name,Index,ODCAF_Facility_Type,Street_No,Street_Name,Postal_Code,City,Prov_Terr
Museum of Northern British Columbia,6728,museum,100,first avenue west,V8J 3S1,prince rupert,bc
Prince Rupert Fire Museum Society,7585,museum,200,1st avenue west,V8J 1A8,prince rupert,bc
Prince Rupert Library,7586,library or archives,101,6th avenue west,V8J 1Y9,blue river,bc
| json |
On September 26, 2022, NASA intentionally crashed the DART spacecraft into the asteroid Dimorphos to try to change the asteroid's orbit slightly. It was a test of technology that could protect Earth from potential asteroid impacts in the future. The video shows the last five minutes of images captured by DART as it approaches its target. Except for the very end, the approach is shown 10 times faster than it really occurred.
| english |
{"2010":"","2016":"","AdditionalNote":"","Department":"Ковельський міськрайонний суд Волинської області","Link":"https://drive.google.com/open?id=0BygiyWAl79DMNVRaUko2T2QyVUk","Link 2015":"","Name":"<NAME>","Note":"У меня","Position":"Суддя Ковельського міськрайонного суду Волинської області","Region":"Волинська область","Youtube":"","analytics":[{"b":2741,"c":1,"fi":122176,"h":230,"ha":1,"i":304363,"y":2014},{"fc":1,"fi":49534,"i":322309,"k":62.75,"ka":1,"y":2015},{"c":1,"fi":58934,"i":375774,"k":0.63,"ka":1,"y":2016}],"declarationsLinks":[{"id":"vulyk_44_103","provider":"declarations.com.ua.opendata","url":"http://static.declarations.com.ua/declarations/chosen_ones/mega_batch/bondar_volodymyr_mykolaiovych.pdf","year":2014},{"id":"nacp_d220ecd5-74fa-4894-8c35-70d5cefda0c1","provider":"declarations.com.ua.opendata","year":2015},{"id":"nacp_0b7426c7-d133-4bec-b55b-fa82af1e9003","provider":"declarations.com.ua.opendata","year":2016}],"field8":"","field9":"","key":"bondar_volodimir_mikolayovich","type":"judge","Декларація доброчесності судді подано у 2016 році (вперше)":"","Декларація родинних зв’язків судді подано у 2016 році":"","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"","Декларації 2016":"","Клейма":"3","Кількість дисциплінарних стягнень":"","Кількість скарг":"0","Кількість справ":"","Оскаржені":"","ПІБ2":"","Фото":"http://picua.org/img/2016-09/26/k0qju9dcpj5da8y7tniurj9el.jpg","Як живе":"","декларації 2015":"","судові рішення по справах Майдану":""} | json |
There are many attractions in Jaipur. The variety of attractions in Jaipur actually is one of the main factors to draw such a large number of tourists towards Jaipur. Jaipur tours have gained so much popularity in the recent past that it needs to be planned well in advance or else you may not avail it according to your preference. There are many Jaipur tourist attractions. Tours to the temples of Jaipur is currently an integral part of Jaipur tours. Among the number of temples in Rajasthan, the Govind Ji Temple is a major attraction. The temple dedicated to Lord Krishna is a must-visit for tourists visiting Jaipur.
Dedicated to Lord Krishna, The Govind Ji Temple is believed to have the idol that was brought all the way from Vrindavan and installed by the Sawai Jai Singh. The spiritual importance of the temple is such that even the royal family has worshipped here. Built in 1890, the temple was built with the money received from Raja Man Singh. Nestled between Chandra Mahal and Badal Mahal in the City Palace complex, the temple manages to draw a huge number of devotees as well as leisure tourists.
Architecture and Layout of Govind Dev Ji Temple:
Govind Dev Ji Temple boasts magnificent architecture with intricate white marble carvings. There are 35 meters of spires and domes in its main temple. Within its complex, there are many smaller shrines and temples. The main structure has an inner sanctum where Krishna's deity is seated with majestic grandeur. There are vibrant paintings illustrating scenes from Hindu mythology adorning the walls and ceilings in the room.
Temple Fees and Timings of Govind Dev Ji Temple:
It is open to the public for main prayers and arti from 4:30 a.m. to 12:15 p.m. in the morning. In the evening, it reopens between 4:30 p.m. and 8:00 p.m. There is no entrance fee for visitors, but donations are gratefully accepted. Temple premises are prohibited for photography.
The Govind Dev Ji temple is stunning year-round, so devotees can visit any time, but if you want to attend Aarti, we recommend visiting during the morning or evening.
Visiting the temple during the Janmashtami is a great experience as the particular festival is a grand affair in this temple. The temple bustles with activities as thousands of devotees come here to take part in this festival. The Janmashtami festival that commemorates the birth of Lord Krishna is truly a grand affair in the Govind Dev Ji Temple in Jaipur. There are also a number of other rituals performed in the temple. One of the most unique among them is dressing up of Lord Krishna seven tines a day and each time the dress is changed an aarti and bhog ceremony is performed.
Such rituals are a part of the Indian tradition. Hence, tourists from other countries learn a lot about the Indian tradition and culture. Therefore, a visit to Govind Dev Ji temple is a must during the Jaipur tour. The visit to the temple is indeed an enriching experience as it will not be an opportunity to witness the splendid architecture of the temple. Tourists also get a chance to witness the various rituals of India.
Places to Visit Near Govind Dev Ji Temple Jaipur:
Near the temple, visitors can explore the majestic Jaigarh Fort, which houses the world's largest wheeled cannon, the Nahargarh Fort, which offers panoramic views of Jaipur, and Jal Mahal Palace, which houses various activities. There is also Sisodia Rani Ka Bagh and the serene Galtaji temple, which are both good options.
Location of Govind Dev Ji Temple Jaipur:
Located in Govind Devji ki Choupal, one of the oldest parts of the walled city, the temple is close to the bustling Johari Bazaar market. Nearby landmarks such as the Hawa Mahal and City Palace Museum are only one km away.
How To Reach Govind Dev Ji Temple:
Due to its convenient location along major roads, the temple can be reached by car or public transportation without a problem. A state-run bus stop is located outside the temple. Taxis and auto-rickshaws are available at Jaipur railway station. Parking is available at the temple as well.
| english |
<reponame>lob/eslint-config-lob
### 5.2.0 (2021-04-25)
##### Bug Fixes
* **eslint-peer-dependency:** Version 5.1 intended to create lenient rules for 'eslint' as a peer. This change actually does that. ([0732c16d](https://github.com/lob/eslint-config-lob/commit/0732c16ddad6133cb5ce737fd5c33294d88e9d05))
##### Other Changes
* deprecated 5.1.0 ([500616a2](https://github.com/lob/eslint-config-lob/commit/500616a27238eec6a9a6f9afde7dc9da5a968ee4))
### 5.1.0 (2021-04-24) [DEPRECATED]
* ~~**eslint:** Allow newer versions of eslint, and update syntax to work with major versions 4-7. (#33) ([bb3ec96](https://github.com/lob/eslint-config-lob/commit/bb3ec9655d5c187e87e334c65660a50618dedf4d))~~
##### Chores
* **deps:** bump lodash from 4.17.15 to 4.17.19 ([e50e3bb6](https://github.com/lob/eslint-config-lob/commit/e50e3bb6954c767c765bb6402d92d98eaaf9ebbf))
##### Deprecation notes
* This version attempted to allow eslint versions 4-7 as peer dependency. Due to a syntax mistake, it does not actually do so. Please use version 5.2.0 instead.
### 5.0.0 (2020-07-24)
* **mixed &&s and ||s** change rules to disallow mixing operators. Since this rule cannot be auto-fixed, this is a breaking change.
### 4.2.0 (2020-07-09)
##### Chores
* **indent:** change indentation of "dot" chains ([4048ece](https://github.com/lob/eslint-config-lob/commit/4048ece7ce4ce483e9eccdc643fedc8e06f2327c))
### 4.1.0 (2020-03-04)
##### Chores
* **align-equals:** removing equal alignment to modernize rules ([7ab1c67e](https://github.com/lob/eslint-config-lob/commit/7ab1c67ee78328898bacbfe1c638a3123f769570))
## 4.0.0 (2018-05-11)
##### New Features
* **config:** enable no-new-func in error mode ([3245475f](https://github.com/lob/eslint-config-lob/commit/3245475f419f35ad41a100d0b962a8d5f24bb464))
## 3.0.0 (2017-11-13)
##### Chores
* **eslint:** upgrade eslint to 4.x.x and update rule names (#22) ([5137b9cb](https://github.com/lob/eslint-config-lob/commit/5137b9cb25f88d549ad2aa4d7e720e3d365865c6))
### 2.4.0 (2016-11-11)
##### New Features
* **browser:** upgrade to ES6 rules ([df48b84d](https://github.com/lob/eslint-config-lob/commit/df48b84dc66b360024828ebe82e1d91f792c53c8))
### 2.3.0 (2016-8-31)
##### Chores
* **npm:** remove shrinkwrap file ([7771eec1](https://github.com/lob/eslint-config-lob/commit/7771eec10660486b5c5b6ba5889f29de21a22ec7))
##### New Features
* **plugin:** add eslint-plugin-lob ([c67d3985](https://github.com/lob/eslint-config-lob/commit/c67d3985641943c1c05f74cca5b9fbbd8d50bc61))
##### Bug Fixes
* **config:** use correct extends syntax ([8e96a902](https://github.com/lob/eslint-config-lob/commit/8e96a9027b851ce2dbd6148f61a0df9142977029))
* **key-spacing:** use strict mode ([e696fcec](https://github.com/lob/eslint-config-lob/commit/e696fcec1424e1d2311276112a51bb7efaecbefc))
##### Refactors
* **config:** move common rules to base config file ([b7c59cea](https://github.com/lob/eslint-config-lob/commit/b7c59ceafc7a0ef3a7fb39aeceee3dacd62ecc7a))
### 2.2.0 (2016-6-29)
##### Bug Fixes
* **rules:** enable semi and comma-spacing ([6e6bbeb3](https://github.com/lob/eslint-config-lob/commit/6e6bbeb3))
### 2.1.0 (2016-6-10)
##### New Features
* **es5:** add rule set for es5 for older repos ([af53f573](https://github.com/lob/eslint-config-lob/commit/af53f573))
##### Bug Fixes
* **max-lines:** reduce it from 2 to 1 ([b27957e0](https://github.com/lob/eslint-config-lob/commit/b27957e0))
#### 2.0.1 (2016-5-5)
##### Bug Fixes
* **arrow-body-style:** remove the buggy rule ([5a19e0c6](https://github.com/lob/eslint-config-lob/commit/5a19e0c6))
## 2.0.0 (2016-2-11)
##### Bug Fixes
* **object-shorthand:** only enable it for properties ([7610c8e0](https://github.com/lob/eslint-config-lob/commit/7610c8e0))
* **env:** enable es6 env ([46c098a1](https://github.com/lob/eslint-config-lob/commit/46c098a1))
* **typo:** fix typo in config ([2bc3121e](https://github.com/lob/eslint-config-lob/commit/2bc3121e))
* **changelog:** use generate-changelog ([505dd9a9](https://github.com/lob/eslint-config-lob/commit/505dd9a9))
##### Chores
* **style:** use single quotes in rule configuration ([d495cde6](https://github.com/lob/eslint-config-lob/commit/d495cde6))
##### New Features
* **main:** enable all es6 rules ([39bcb398](https://github.com/lob/eslint-config-lob/commit/39bcb398))
* **browser:** create separate rules for browser env ([41a9f1e2](https://github.com/lob/eslint-config-lob/commit/41a9f1e2))
* **rules:**
* add best practices rules ([9b2fa820](https://github.com/lob/eslint-config-lob/commit/9b2fa820))
* enable all recommended rules ([e05f1cd8](https://github.com/lob/eslint-config-lob/commit/e05f1cd8))
* **readme:** document usage and contribution ([528eb310](https://github.com/lob/eslint-config-lob/commit/528eb310))
#### 1.0.1 (2015-11-07)
##### New Features
* **publish:** prepare for publishing ([6ec3f0d](https://github.com/lob/eslint-config-lob/commit/6ec3f0d))
* **rules:** initial rules ([4fc3e61](https://github.com/lob/eslint-config-lob/commit/4fc3e61))
| markdown |
[
{
"Id": "1290526",
"ThreadId": "561325",
"Html": "Hello,\r<br />\n<br />\nI am getting this error after following the documentation to manually setup my project to use this library.\r<br />\n<br />\nI have a WPF 4.5 project and it does run, but I keep seeing this errors and VS designer cannot show my UI.\r<br />\n<br />\nThe same error is happening to the <mui:Link /> elements.\r<br />\n<br />\nHow can I fix that?\r<br />\n<br />\nThank you,\r<br />\n<br />\nIgor.<br />\n",
"PostedDate": "2014-08-15T10:16:34.82-07:00",
"UserRole": null,
"MarkedAsAnswerDate": null
},
{
"Id": "1292073",
"ThreadId": "561325",
"Html": "Looks like the FirstFloor.ModernUI.dll reference is missing in your project. Is that the case?<br />\n",
"PostedDate": "2014-08-21T07:00:35.017-07:00",
"UserRole": null,
"MarkedAsAnswerDate": null
},
{
"Id": "1292097",
"ThreadId": "561325",
"Html": "Hello,\r<br />\n<br />\nIn fact it is not. The library is already added.\r<br />\n<br />\nI managed to solve the problem by installing the NuGet package instead.\r<br />\n<br />\nThank you anyway,\r<br />\n<br />\nIgor.<br />\n",
"PostedDate": "2014-08-21T07:48:34.553-07:00",
"UserRole": null,
"MarkedAsAnswerDate": null
},
{
"Id": "1304942",
"ThreadId": "561325",
"Html": "To fix the issue go the following:\r<br />\n<br />\nRight click on the zip you downloaded.\r<br />\nChoose properties.\r<br />\nIn the general tab click on unblock. Then apply and ok\r<br />\nNow unzip the package.<br />\n",
"PostedDate": "2014-09-15T13:09:24.623-07:00",
"UserRole": null,
"MarkedAsAnswerDate": null
}
] | json |
<reponame>dmitrySorokin/saiph
#include "Analyzers/Rub.h"
#include <string>
#include "Request.h"
#include "Saiph.h"
#include "World.h"
using namespace analyzer;
using namespace std;
Rub::Rub(Saiph* saiph) : Analyzer("Rub"), saiph(saiph), magic_lamp_key(ILLEGAL_ITEM) {
}
void Rub::analyze() {
if (magic_lamp_key == ILLEGAL_ITEM)
return;
priority = PRIORITY_RUB_MAGIC_LAMP;
command = RUB;
}
void Rub::parseMessages(const string& messages) {
if (saiph->inventory_changed)
findMagicLamp();
if (saiph->world->question && messages.find(MESSAGE_WHAT_TO_RUB) != string::npos) {
command = magic_lamp_key;
priority = PRIORITY_CONTINUE_ACTION;
}
}
/* private methods */
void Rub::findMagicLamp() {
map<unsigned char, Item>::iterator i = saiph->inventory.find(magic_lamp_key);
if (i != saiph->inventory.end() && isMagicLamp(i->second))
return;
for (i = saiph->inventory.begin(); i != saiph->inventory.end(); ++i) {
if (isMagicLamp(i->second)) {
magic_lamp_key = i->first;
return;
}
}
magic_lamp_key = ILLEGAL_ITEM;
}
bool Rub::isMagicLamp(const Item& item) {
if (item.beatitude == CURSED || item.beatitude == UNCURSED || item.name != "magic lamp")
return false;
if (item.beatitude == BEATITUDE_UNKNOWN) {
/* must beatify lamp first */
req.request = REQUEST_BEATIFY_ITEMS;
saiph->request(req);
return false;
}
return true;
}
| cpp |
<filename>application/src/app_pkg/routes/get_messages.py
# from flask import render_template, request, make_response, jsonify
# from src.app_pkg.routes.common import validate_helper
# from src.app_pkg import app, db
# from src.app_pkg.forms import MessageForm
#
# ################################################
# # Show All Messages / User Profile #
# ################################################
# # AUTHOR: <NAME>
# # NOTE: This function handles the route of the show all message functionality.
# # It show the list of messages the user sent or received and single view message modal with message body
# # Once the Database manager API returns a result (as a list), it passes that resulting list
# # to the HTML page to be rendered.
#
#
# @app.route('/user_profile', method=['GET'])
# def all_messages(msg_id):
# isloggedin = validate_helper(request.cookies.get('token'))
#
# if not isloggedin:
# return render_template('search.html')
#
# msg_result_size = 0
# msg_results = []
# print('calling db...')
# msg_result_size, msg_results = db.get_all_messages(isloggedin, msg_id)
#
# if msg_result_size == 0:
# print("You have no messages!")
#
# return render_template('user_profile.html', isloggedin=isloggedin, msg_result_size=msg_result_size,
# msg_results=msg_results)
#
#
| python |
<gh_stars>0
// Get headers etc.
//
//#define HAVE_NEKO_TYPES
typedef struct _vkind *vkind;
typedef struct _value *value;
typedef struct _buffer *buffer;
#define IGNORE_CFFI_API_H
#include <hx/CFFI.h>
#include "string.h"
extern "C" {
// Proto-type the functions
#define DEFFUNC(name,r,b,c) r api_##name b;
#include <hx/CFFIAPI.h>
#undef DEFFUNC
EXPORT
void * hx_cffi(const char *inName)
{
#define DEFFUNC(name,r,b,c) if ( !strcmp(inName,#name) ) return (void *)api_##name;
#include <hx/CFFIAPI.h>
return 0;
}
}
#ifndef neko_v1
#include "neko2.h"
#else
#include "neko.h"
#endif
static int __a_id = val_id("__a");
static int __s_id = val_id("__s");
static int b_id = val_id("b");
static int length_id = val_id("length");
value *gNeko2HaxeString = 0;
value *gNekoNewArray = 0;
value haxe_alloc_string(const char *inString)
{
value neko_string = alloc_string(inString);
if (gNeko2HaxeString)
return val_call1(*gNeko2HaxeString,neko_string);
return neko_string;
}
void api_hx_error()
{
failure("error");
}
void api_val_throw(value arg1)
{
val_throw(arg1);
}
void api_hx_fail(const char * arg1,const char * arg2,int arg3)
{
_neko_failure( haxe_alloc_string(arg1), arg2, arg3 );
}
#define NEKO_NOT_IMPLEMENTED(func) api_hx_fail("NOT Implemented:" func,__FILE__,__LINE__)
// Determine value type
int api_val_type(value arg1)
{
int t=val_type(arg1);
if (t==VAL_OBJECT)
{
value __a = val_field(arg1,__a_id);
if (val_is_array(__a))
return valtArray;
value __s = val_field(arg1,__s_id);
if (val_is_string(__s))
return valtString;
}
if (t<7)
return (ValueType)t;
if (t==VAL_ABSTRACT)
return valtAbstractBase;
if (t==VAL_PRIMITIVE || t==VAL_JITFUN)
return valtFunction;
if (t==VAL_32_BITS || t==VAL_INT)
return valtInt;
return valtNull;
}
vkind api_val_kind(value arg1)
{
return (vkind)val_kind(arg1);
}
void * api_val_to_kind(value arg1,vkind arg2)
{
vkind k = (vkind)val_kind(arg1);
if (k!=arg2)
return 0;
return val_data(arg1);
}
// don't check the 'kind' ...
void * api_val_data(value arg1)
{
return val_data(arg1);
}
int api_val_fun_nargs(value arg1)
{
return val_fun_nargs(arg1);
}
// Extract value type
bool api_val_bool(value arg1)
{
return val_bool(arg1);
}
int api_val_int(value arg1)
{
return val_int32(arg1);
}
double api_val_float(value arg1)
{
return val_float(arg1);
}
double api_val_number(value arg1)
{
return val_number(arg1);
}
// Create value type
value api_alloc_null() { return val_null; }
value api_alloc_bool(bool arg1) { return alloc_bool(arg1); }
value api_alloc_int(int arg1)
{
// TODO int32 ?
return alloc_int(arg1);
}
value api_alloc_float(double arg1) { return alloc_float(arg1); }
value api_alloc_empty_object() { return alloc_object(0); }
value api_alloc_abstract(vkind arg1,void * arg2)
{
return alloc_abstract(arg1,arg2);
}
void api_free_abstract(value inAbstract)
{
val_gc(inAbstract,0);
val_kind(inAbstract) = 0;
}
value api_create_abstract(vkind inKind,int inMemSize, finalizer inFree )
{
void *mem = alloc(inMemSize);
value result = alloc_abstract(inKind, mem );
val_gc(result, inFree);
return result;
}
value api_alloc_best_int(int arg1) { return alloc_best_int(arg1); }
value api_alloc_int32(int arg1) { return alloc_int32(arg1); }
// String access
int api_val_strlen(value arg1)
{
if (val_is_string(arg1))
return val_strlen(arg1);
value l = val_field(arg1,length_id);
if (val_is_int(l))
return val_int(l);
return 0;
}
const wchar_t * api_val_wstring(value arg1)
{
int len = api_val_strlen(arg1);
unsigned char *ptr = (unsigned char *)api_val_string(arg1);
wchar_t *result = (wchar_t *)alloc_private((len+1)*sizeof(wchar_t));
for(int i=0;i<len;i++)
result[i] = ptr[i];
result[len] = 0;
return result;
}
const char * api_val_string(value arg1)
{
if (val_is_string(arg1))
return val_string(arg1);
value s = val_field(arg1,__s_id);
return val_string(s);
}
value api_alloc_string(const char * arg1)
{
return haxe_alloc_string(arg1);
}
wchar_t * api_val_dup_wstring(value inVal)
{
return (wchar_t *)api_val_wstring(inVal);
}
char * api_val_dup_string(value inVal)
{
int len = api_val_strlen(inVal);
const char *ptr = api_val_string(inVal);
char *result = alloc_private(len+1);
memcpy(result,ptr,len);
result[len] = '\0';
return result;
}
value api_alloc_string_len(const char *inStr,int inLen)
{
if (gNeko2HaxeString)
return val_call1(*gNeko2HaxeString,copy_string(inStr,inLen));
return copy_string(inStr,inLen);
}
value api_alloc_wstring_len(const wchar_t *inStr,int inLen)
{
char *result = alloc_private(inLen+1);
for(int i=0;i<inLen;i++)
result[i] = inStr[i];
result[inLen] = 0;
return api_alloc_string_len(result,inLen);
}
// Array access - generic
int api_val_array_size(value arg1)
{
if (val_is_array(arg1))
return val_array_size(arg1);
value l = val_field(arg1,length_id);
return val_int(l);
}
value api_val_array_i(value arg1,int arg2)
{
if (val_is_array(arg1))
return val_array_ptr(arg1)[arg2];
return val_array_ptr(val_field(arg1,__a_id))[arg2];
}
void api_val_array_set_i(value arg1,int arg2,value inVal)
{
if (!val_is_array(arg1))
arg1 = val_field(arg1,__a_id);
val_array_ptr(arg1)[arg2] = inVal;
}
void api_val_array_set_size(value arg1,int inLen)
{
NEKO_NOT_IMPLEMENTED("api_val_array_set_size");
}
void api_val_array_push(value arg1,value inValue)
{
NEKO_NOT_IMPLEMENTED("api_val_array_push");
}
value api_alloc_array(int arg1)
{
if (!gNekoNewArray)
return alloc_array(arg1);
return val_call1(*gNekoNewArray,alloc_int(arg1));
}
// Array access - fast if possible - may return null
// Resizing the array may invalidate the pointer
bool * api_val_array_bool(value arg1)
{
return 0;
}
int * api_val_array_int(value arg1)
{
return 0;
}
double * api_val_array_double(value arg1)
{
return 0;
}
float * api_val_array_float(value arg1)
{
return 0;
}
value * api_val_array_value(value arg1)
{
if (val_is_array(arg1))
return val_array_ptr(arg1);
return val_array_ptr(val_field(arg1,__a_id));
}
// Byte arrays
buffer api_val_to_buffer(value arg1)
{
return alloc_buffer(api_val_string(arg1));
}
buffer api_alloc_buffer(const char *inStr)
{
return alloc_buffer(inStr);
}
buffer api_alloc_buffer_len(int inLen)
{
char *s=alloc_private(inLen+1);
memset(s,' ',inLen);
s[inLen] = 0;
buffer b = alloc_buffer(s);
return b;
}
value api_buffer_val(buffer b)
{
return buffer_to_string(b);
}
value api_buffer_to_string(buffer inBuffer)
{
return buffer_to_string(inBuffer);
}
void api_buffer_append(buffer inBuffer,const char *inStr)
{
buffer_append(inBuffer,inStr);
}
int api_buffer_size(buffer inBuffer)
{
return val_int(val_field((value)inBuffer,length_id));
}
void api_buffer_set_size(buffer inBuffer,int inLen)
{
NEKO_NOT_IMPLEMENTED("api_buffer_set_size");
}
bool api_val_is_buffer(value inVal)
{
return false;
}
void api_buffer_append_sub(buffer inBuffer,const char *inStr,int inLen)
{
buffer_append_sub(inBuffer,inStr,inLen);
}
void api_buffer_append_char(buffer inBuffer,int inChar)
{
char buf[2] = { inChar, '\0' };
buffer_append_sub(inBuffer,buf,1);
}
char * api_buffer_data(buffer inBuffer)
{
return (char *)val_string(val_field((value)inBuffer,b_id));
}
// Append value to buffer
void api_val_buffer(buffer inBuffer,value inValue)
{
val_buffer(inBuffer,inValue);
}
// Call Function
value api_val_call0(value arg1)
{
return val_call0(arg1);
}
value api_val_call0_traceexcept(value arg1)
{
NEKO_NOT_IMPLEMENTED("api_val_call0_traceexcept");
return val_null;
}
value api_val_call1(value arg1,value arg2)
{
return val_call1(arg1,arg2);
}
value api_val_call2(value arg1,value arg2,value arg3)
{
return val_call2(arg1,arg2,arg3);
}
value api_val_call3(value arg1,value arg2,value arg3,value arg4)
{
return val_call3(arg1,arg2,arg3,arg4);
}
value api_val_callN(value arg1,value *arg2,int nargs)
{
return val_callN(arg1,arg2,nargs);
}
// Call object field
value api_val_ocall0(value arg1,int arg2)
{
return val_ocall0(arg1,arg2);
}
value api_val_ocall1(value arg1,int arg2,value arg3)
{
return val_ocall1(arg1,arg2,arg3);
}
value api_val_ocall2(value arg1,int arg2,value arg3,value arg4)
{
return val_ocall2(arg1,arg2,arg3,arg4);
}
value api_val_ocallN(value obj,int fid,value *arg3,int inN)
{
return val_ocallN(obj,fid,arg3,inN);
}
// Objects access
int api_val_id(const char * arg1)
{
return val_id(arg1);
}
value api_val_field_name(field inField)
{
return val_field_name(inField);
}
void api_val_iter_fields(value inObj, __hx_field_iter inFunc ,void *inCookie)
{
val_iter_fields(inObj,inFunc,inCookie);
}
void api_alloc_field(value arg1,int arg2,value arg3)
{
return alloc_field(arg1,arg2,arg3);
}
value api_val_field(value arg1,int arg2)
{
return val_field(arg1,arg2);
}
double api_val_field_numeric(value arg1,int arg2)
{
value field = val_field(arg1, arg2);
if (val_is_number(field))
return val_number(field);
if (val_is_bool(field))
return val_bool(field);
return 0;
}
// Abstract types
vkind api_alloc_kind()
{
static int id = 1;
vkind result = (vkind)(size_t)id;
id += 4;
return result;
}
void api_kind_share(vkind *inKind,const char *inName)
{
kind_share(inKind,inName);
}
// Garbage Collection
void * api_hx_alloc(int arg1)
{
return alloc(arg1);
}
void * api_alloc_private(int arg1)
{
return alloc_private(arg1);
}
void api_gc_change_managed_memory(int,const char *)
{
// Nothing to do here
}
void api_val_gc(value arg1,finalizer arg2)
{
val_gc( arg1, arg2 );
}
void api_val_gc_ptr(void * arg1,hxPtrFinalizer arg2)
{
val_gc( (value)arg1, (finalizer)arg2 );
}
// Used for finding functions in static libraries
int api_hx_register_prim( const char * arg1, void* arg2)
{
// Not used - but return something anyhow.
return 0;
}
void api_val_gc_add_root(value *inVal)
{
// TODO
}
void api_val_gc_remove_root(value *inVal)
{
// TODO
}
void api_gc_set_top_of_stack(int *,bool)
{
}
value *api_alloc_root()
{
return alloc_root(1);
}
void api_free_root(value *inVal)
{
return free_root(inVal);
}
// No need to do anything here...
void api_gc_enter_blocking() { }
void api_gc_exit_blocking() { }
void api_gc_safe_point() { }
// For v8 target
gcroot api_create_root(value) { return 0; }
value api_query_root(gcroot) { return 0; }
void api_destroy_root(gcroot) { }
#undef EXPORT
#if defined(NEKO_VCC) || defined(NEKO_MINGW)
# define EXPORT __declspec( dllexport )
#else
# define EXPORT __attribute__ ((visibility("default")))
#endif
value neko_api_init(value inCallback)
{
gNeko2HaxeString = api_alloc_root();
*gNeko2HaxeString = inCallback;
return val_null;
}
NEKO_DEFINE_PRIM(neko_api_init,1)
value neko_api_init2(value inNewString,value inNewArray)
{
gNeko2HaxeString = api_alloc_root();
*gNeko2HaxeString = inNewString;
gNekoNewArray = api_alloc_root();
*gNekoNewArray = inNewArray;
return val_null;
}
NEKO_DEFINE_PRIM(neko_api_init2,2)
| cpp |
<reponame>wjwisme/no-crud
package com.wjw.generator;
import com.wjw.model.BeanDefinition;
/****
* @author wjw
* @Date 2019-12-19
*/
public class DaoGenerator extends AbstractGenerator {
public byte[] generator(BeanDefinition beanDefinition) {
return new byte[0];
}
}
| java |
<reponame>Shirk/api.apkallufalls.com
{"id":108,"img":"/i/068000/068602.png","xivdb":"/companion/108","behavior":{"de":"Folgt nach","en":"Obedient","fr":"Poursuite","jp":"追従"},"race":{"de":"Puppe","en":"Poppet","fr":"Poupée","jp":"ドール"},"info":{"de":"Als unverhofft eine größere Menge Gil in die Kasse des Bunds der Morgenröte gespült wurde, nutzte Tataru die Gunst der Stunde, um bei der Goldschmiedegilde in Ul'dah Puppen ihrer Lieblings-Exegeten in Auftrag zu\n\ngeben, zuallererst die\n\nPuppe von Papalymo.","en":"After a clerical error resulted in a sizable windfall for the organization, Scions of the Seventh Dawn coinkeeper Tataru took it upon herself to use the funds to commission wind-up automata crafted in the likeness of her own\n\nfavorite members─\n\nPapalymo being the first.","fr":"C'est Tataru, la trésorière des Héritiers de la Septième Aube, qui a eu l'idée de commander ce pantin représentant Papalymo... qui au moins ne va faire la leçon à personne.","jp":"「暁の血盟」の賢人、パパリモを模した魔法人形。暁の金庫番、タタル嬢の発注により、ウルダハの彫金師ギルドで製作された。実に愛らしい姿をしているが、モデルのパパリモは、こう見えて40代なのである"},"quote":{"de":"Der kleine Dickschädel würde eher seinen Stab fressen,\n\nals einen eigenen Fehler einzugestehen!\n\nYda","en":"He'd sooner swallow\n\nhis staff than admit\n\nthat he's wrong.\n\n - Yda","fr":"C'est bien ce que je pensais.","jp":"ヤレヤレ…"},"summon":{"de":"Du rufst deine Papalymo-Puppe herbei. Stets mit einem überlegenen Lächeln auf den Lippen.","en":"Comes complete with irremovable smirk.","fr":"Vous appelez votre mascotte Papalymo miniature. Ce petit pantin pourrait presque passer pour le vrai, mais il lui manque la parole.","jp":"ミニオン「マメット・パパリモ」を呼び出す。\n\nパパリモを模した魔法人形。やれやれ……"},"sound":"That's what I thought."} | json |
Apple's rumored AR/VR headset will use the same 96W USB Type-C power adapter that is bundled with the 14-inch MacBook Pro, according to analyst Ming-Chi Kuo. This implies that the headset will use the same amount of power that is needed by the company's flagship laptop. The analyst had previously said that Apple's AR headset could arrive in 2022 and will be powered by two processors. Furthermore, the analyst believes that the tech giant could be looking to replace the iPhone within a decade.
Citing a research note with TF International Securities, MacRumors reported that Kuo said that Apple's headset will have Mac-level computing power. He reiterated that the device will be powered by two processors, which will include one 5nm chip and one 4nm chip. Furthermore, he says that both the chips will be manufactured by TSMC. The analyst said that one of the chips will offer similar power as last year's M1 Mac, while the other one will be used for handling sensors on the headset.
The same report also suggests that Apple's AR headset could come with VR support and may be equipped with two Sony 4K micro-OLED displays. As per Kuo, the AR headset could have its own ecosystem and Apple may position it “independently” of the iPhone and the Mac, instead of an accessory. Recently, Kuo claimed that the headset will come with powerful 3D sensors that will be more advanced than the ones used in iPhone and iPad for Face ID. The headset is also said to feature an innovative gesture and motion detection system. It could weigh around 350 grams and cost around $1,000 (roughly Rs. 74,000), as per the analyst.
Affiliate links may be automatically generated - see our ethics statement for details.
| english |
<gh_stars>1-10
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
color: #333;
text-decoration: none;
}
footer div div a {
flex-basis: 24px;
}
.content-container a {
color: #316891;
text-decoration: underline;
}
a:hover,
nav a:hover,
footer div div a:hover {
text-decoration: underline;
}
#suggestion-section a,
#most-popular h3 a {
text-decoration: none;
}
nav {
padding: 5px 16px;
border-bottom: 1px solid lightgray;
}
#left-nav {
flex-basis: 250px;
}
#logo {
width: 190px;
}
#right-nav {
flex-basis: 178px;
}
button {
background-color: #567b95;
border: none;
padding: 10px 13px;
color: #fff;
border-radius: 3px;
font-size: x-small;
cursor: pointer;
}
button:hover {
background-color: #316891;
}
#left-nav button {
background-color: transparent;
border: none;
color: #333;
font-size: medium;
}
h1 {
padding: 88px 0 24px;
font-size: 2.3rem;
font-family: "Tinos", "Quattrocento", sans-serif;
font-style: italic;
}
h1,
.content-container {
margin: 0 auto;
width: 600px;
}
h2 {
margin: 32px 0 8px;
font-size: 22px;
color: #333;
}
section figure figcaption {
width: 742px;
font-family: "Tinos", "Quattrocento", sans-serif;
}
.image-container {
width: 960px;
padding-bottom: 40px;
}
.ep-image {
width: 80px;
margin: 8px 8px;
}
.content-container {
width: 600px;
}
.full-width {
width: 100%;
}
iframe {
border: none;
}
figure {
margin: 32px auto;
}
.content-container p {
padding: 10px 0;
font-size: 20px;
color: #333;
font-family: "Source Serif Pro", "Libre Caslon Text", sans-serif;
}
#inflation-section {
width: 944px;
margin-bottom: 40px;
}
main hr {
width: 72px;
background-color: hsl(0, 0%, 90%);
border: none;
height: 1.3px;
}
aside {
float: right;
width: 250px;
margin: -100px 80px -350px 0;
}
aside hr {
width: 100%;
margin: 10px 0;
}
#inflation-grid {
grid-template-columns: repeat(4, 1fr);
grid-gap: 16px;
}
footer hr {
margin: 10px 0;
border: none;
border-top: 1px solid hsl(0, 0%, 85%);
}
footer hr:first-child {
height: 3.5px;
border: 1px solid hsl(0, 0%, 70%);
border-left: none;
border-right: none;
margin: 16px 0;
}
#inflation-section hr {
border: 1px solid #333;
}
#suggestion-section hr {
border: none;
height: 1px;
background-color: #909090;
}
#comment-button {
padding: 12px 104px;
font-size: smaller;
font-weight: bold;
}
#social-bottom {
margin: 20px 0 64px;
}
#suggestion-section {
width: 1200px;
grid-template-columns: 3fr 1fr;
grid-gap: 24px;
margin-bottom: 100px;
}
#suggestion-section a:hover {
color: hsl(0, 0%, 50%);
}
#space-astronomy-section {
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 64px 16px;
margin-bottom: 20px;
}
#space-astronomy-section img {
width: 100%;
height: auto;
}
#suggestion-section h4 {
padding: 16px 0;
}
#most-popular h3 {
padding: 16px 0;
border-top: 1px solid lightgray;
}
#paid-post {
background: hsl(0, 0%, 96%);
}
footer {
padding: 24px 124px 40px;
font-family: "Tinos", "Quattrocento", sans-serif;
}
#paid-post footer {
padding: 2px 10px;
}
#paid-post footer img {
width: 70px;
margin: 10px 0 6px;
}
#editors-picks {
grid-template-columns: repeat(3, 1fr);
grid-gap: 16px;
}
#footer-bottom {
margin-top: 20px;
margin-bottom: 50px;
padding: 0 56px;
}
#footer-container {
padding: 20px 0;
}
#subscribe {
border-left: 1px solid hsl(0, 0%, 70%);
padding-left: 16px;
}
footer h5 {
margin-bottom: 10px;
}
#special-icons {
margin-bottom: 16px;
}
#bottom-div {
grid-template-columns: 1.5fr 1fr;
padding: 20px 88px;
border-top: 1px solid #333;
bottom: 0;
}
#bottom-div i {
padding: 0 24px;
}
.grid {
display: grid;
}
.flex {
display: flex;
}
.flex-column {
flex-direction: column;
}
.space-between {
justify-content: space-between;
}
.align-center {
align-items: center;
}
.uppercase {
text-transform: uppercase;
}
.bold {
font-weight: bold;
}
.flex-end {
justify-content: space-around;
}
.flex-1 {
flex: 1;
}
.flex-2 {
flex: 2;
}
.flex-3 {
flex: 3;
}
.m-0-auto {
margin: 0 auto;
}
.gray {
color: #666;
}
.light-gray {
color: rgb(136, 136, 136);
}
.smallest {
font-size: 11px;
}
.smaller {
font-size: 13px;
}
.small {
font-size: 15px;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.bigger {
font-size: 16px;
}
.image-margin {
margin-bottom: -3px;
}
.blue {
color: #316891;
}
.dark-gray {
color: #333;
}
.fixed {
position: fixed;
width: 100%;
background-color: white;
}
| css |
{"appid": 613200, "name": "Dead Days", "windows": true, "mac": false, "linux": false, "early_access": false, "lookup_time": 1491012435} | json |
<reponame>ciuliot/github-tracker<gh_stars>1-10
/* istanbul ignore next */
module.exports = function (grunt) {
var util = require("util");
var revision = "";
var herokuDir = (grunt.option('heroku-dir') || 'dist/heroku') + "/";
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
typescript: {
server: {
src: ['src/server/**/*.ts', '!src/server/tests/**'],
dest: './dist/',
options: {
module: 'commonjs', //or commonjs
target: 'es5', //or es3
basePath: 'src/server',
noImplicitAny: true,
comments: true
}
},
webapp: {
src: ['src/webapp/**/*.ts'],
dest: './dist/public/js',
options: {
module: 'amd', //or commonjs
target: 'es5', //or es3
basePath: 'src/webapp',
sourceMap: true,
noImplicitAny: true
}
},
server_tests: {
src: ['src/server/tests/**/*.ts'],
dest: './dist',
options: {
module: 'commonjs', //or commonjs
target: 'es5', //or es3
basePath: 'src/server',
noImplicitAny: true
}
}
},
stylus: {
compile: {
files: [{
expand: true,
flatten: true,
ext: ".css",
src: ['styles/*.styl'],
dest: 'dist/public/css/'
}]
}
},
compress: {
build: {
options: {
rootDir: "package",
mode: "tgz",
archive: "<%= pkg.name %>.tgz"
},
src: "package/**"
},
docs: {
options: {
rootDir: "docs",
mode: "tgz",
archive: "<%= pkg.name %>-docs.tgz"
},
src: "docs/**"
}
},
copy: {
dist: {
files: [
{ src: "images/**", dest: "dist/public/", },
{ src: "templates/**", dest: "dist/", },
{ src: "**/*.css", dest: "dist/public/css/", cwd: "styles/", expand: true }
]
},
build: {
files: {
"package/": ["package.json", "README.md", "LICENSE", "dist/**", "views/**", "styles/**", "public/**"]
}
},
docs: {
files: {
"docs/": ["README.md", "LICENSE"]
}
},
heroku: {
files: [
{ src: "dist/**", dest: herokuDir },
{ src: "package.json", dest: herokuDir },
{ src: "views/**", dest: herokuDir }
]
}
},
clean: ['dist', 'package', './<%= pkg.name %>.tgz'],
bump: {
file: 'package.json',
options: {
version: function (old, type) {
var today = new Date();
var first = new Date(today.getFullYear(), 0, 1);
var theDay = Math.round(((today - first) / 1000 / 60 / 60 / 24) + 0.5, 0);
return util.format("0.1.%d-%s", theDay, revision); // Bump based on a `type` argument
}
}
},
vows: {
server: {
src: ["dist/tests/suites/*.js"],
options : {
reporter : "spec"
}
}
},
instrument : {
files : "dist/**/*.js",
options : {
lazy : true,
basePath : 'dist/instrument/'
}
},
reloadTasks : {
rootPath : 'dist/instrument/dist'
},
bower: {
install: {
options: {
targetDir: './dist/public',
layout: 'byType',
install: true,
verbose: false,
cleanTargetDir: true,
cleanBowerDir: false,
bowerOptions: {}
}
}
}
});
grunt.loadNpmTasks('grunt-typescript');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-vows-runner');
grunt.loadNpmTasks('grunt-bower-task');
grunt.registerTask('get-revision', 'Get revision.', function () {
var done = this.async();
var child_process = require("child_process");
child_process.exec("git rev-parse --short HEAD", function (err, stdout, stderr) {
if (err) {
grunt.log.error(err);
grunt.fail.warn("Failed to get git revision");
done();
} else {
revision = stdout.toString().trim();
done();
}
});
});
grunt.registerTask('run-istanbul', 'Get revision.', function () {
var done = this.async();
var cli = require("istanbul/lib/cli");
console.log(cli);
cli.runToCompletion(["cover", "vows"], done);
});
// Default task(s).
grunt.registerTask('default', ['bower', 'typescript:server', 'typescript:webapp' , 'copy:dist', 'stylus']);
grunt.registerTask('build', ['clean', 'get-revision', 'bump-only', 'default', 'copy:build', 'compress:build']);
grunt.registerTask('docs', ['yuidoc', 'copy:docs', 'compress:docs']);
grunt.registerTask('tests', ['clean', 'default', 'typescript:server_tests', 'vows:server']);
grunt.registerTask('heroku', ['build', 'copy:heroku']);
};
| javascript |
<filename>tswine-jdbc-plus/src/main/java/cn/tswine/jdbc/plus/injector/methods/SelectPage.java
package cn.tswine.jdbc.plus.injector.methods;
import cn.tswine.jdbc.common.rules.IDBLabel;
import cn.tswine.jdbc.plus.executor.comply.ExecutorPage;
import cn.tswine.jdbc.plus.injector.AbstractMethod;
import cn.tswine.jdbc.plus.metadata.SqlSource;
/**
* 分页查询
*
* @Author: silly
* @Date: 2019/9/16 22:09
* @Version 1.0
* @Desc
*/
public class SelectPage extends AbstractMethod<ExecutorPage> {
public SelectPage(IDBLabel dbLabel, SqlSource sqlSource) {
super(dbLabel, sqlSource);
}
}
| java |
const { REDIS_HOST, REDIS_PORT } = process.env;
export default {
host: REDIS_HOST,
port: REDIS_PORT,
};
| javascript |
<gh_stars>1-10
{"pe_name":"vdsldr.exe","pe_type":523,"pe_size":26112,"pe_subsystem":2,"pe_subsystem_caption":"The Windows graphical user interface (GUI) subsystem","pe_path":"c:\\Windows\\System32\\vdsldr.exe","pe_timedate_stamp":3944049656,"pe_timedate_human":"2094-12-24T17:20:56.000Z","ImageDLLImports":[{"name":"advapi32.dll","imports":9,"functions":["AddAccessAllowedAce","AllocateAndInitializeSid","FreeSid","GetLengthSid","InitializeAcl","InitializeSecurityDescriptor","SetSecurityDescriptorDacl","SetSecurityDescriptorGroup","SetSecurityDescriptorOwner"]},{"name":"kernel32.dll","imports":23,"functions":["CloseHandle","CreateEventW","CreateThread","DeleteCriticalSection","GetCommandLineW","GetCurrentProcess","GetCurrentProcessId","GetCurrentThreadId","GetLastError","GetModuleHandleW","GetStartupInfoW","GetSystemTimeAsFileTime","GetTickCount","HeapSetInformation","InitializeCriticalSection","QueryPerformanceCounter","SetEvent","SetProcessMitigationPolicy","SetUnhandledExceptionFilter","Sleep","TerminateProcess","UnhandledExceptionFilter","WaitForSingleObject"]},{"name":"user32.dll","imports":4,"functions":["CharNextW","DispatchMessageW","GetMessageW","PostThreadMessageW"]},{"name":"msvcrt.dll","imports":19,"functions":["?terminate@@YAXXZ","_XcptFilter","__C_specific_handler","__set_app_type","__setusermatherr","__wgetmainargs","_amsg_exit","_callnewh","_cexit","_commode","_exit","_fmode","_initterm","_wcmdln","_wcsicmp","exit","free","malloc","memset"]},{"name":"atl.dll","imports":0,"functions":[]},{"name":"ntdll.dll","imports":3,"functions":["RtlCaptureContext","RtlLookupFunctionEntry","RtlVirtualUnwind"]},{"name":"ole32.dll","imports":6,"functions":["CoCreateInstanceEx","CoInitializeEx","CoInitializeSecurity","CoResumeClassObjects","CoSuspendClassObjects","CoUninitialize"]},{"name":"vdsutil.dll","imports":5,"functions":["??0CVdsCallTracer@@QEAA@KPEBD@Z","??1CVdsCallTracer@@QEAA@XZ","IsLocalComputer","VdsDisableCOMFatalExceptionHandling","VdsTraceEx"]}],"ImageDLLExports":{"exports":2,"functions":["?m_ExtraLogging@CVdsTraceSettings@@QEAAHXZ","?m_NoDebuggerLogging@CVdsTraceSettings@@QEAAHXZ"]},"ImageHashSignatures":{"md5":"5de5f1da2e53a3587b0840ea0f988980","sha2":"e86f443622119bbdc0947257e1e826d47488c86bdf399d3839384e32e0c47704"}} | json |
Silambarasan TR surprises fans with his new look - pictures go viral!
Silambarasan TR is currently on a roll with continuous film shootings and photoshoots. He has also kept his social media accounts active by posting pictures and videos on a regular basis. On that note, he has now posted a new set of photos from his latest photoshoot and his new look has taken the fans by surprise. STR’s royal look with the long hairdo is impressive and the photos have already garnered huge attention on social media. Simbu calls this photo series - “An untold story”. STR has transformed like never before and is actively working day and night to complete his prior commitments.
On the professional front, STR is currently shooting for his next political thriller, Maanaadu, which is directed by Venkat Prabhu. The shooting of the film is happening at Pondicherry, following the Covid-19 precautions. Produced by Suresh Kamatchi, Maanaadu has music composed by Yuvan Shankar Raja who has a great track record with both, Simbu and Venkat Prabhu. STR will be seen playing the role of Abdul Khaaliq and we recently got to see a glimpse of his look in the film through the first look poster.
Maanaadu, which has Kalyani Priyadarshan playing the female lead, also has actors like Bharathiraja, SA Chandrasekhar, SJ Surya, Premgi Amaren, Karunakaran, Manoj Bharathiraja, Daniel Annie Pope in supporting roles. SJ Surya will reportedly play the antagonist in this film and his combination scenes with Simbu is said to be the main USP of the film.
Silambarasan TR has also completed the shooting and waiting for the release of Eeswaran, which is scheduled to hit the screens for the festive occasion of Pongal, next year. Eeswaran is directed by Susienthiran and produced by Balaji Kappa under the banner of Madhav Media. This rural action entertainer has Bhoomi fame Nidhhi Agerwal as the female lead and Bharathiraja and Balasaravanan in supporting roles. The teaser of Eeswaran, which released on Diwali, opened to a decent reception from the fans. STR will be sporting a lean look in this film that has music scored by S Thaman and cinematography by S Tirru.
Apart from Maanaadu and Eeswaran, Simbu will also be seen in an extended cameo in Hansika Motwani’s 50th film, Maha, directed by UR Jameel. Simbu will play the love interest of Hansika in Maha which is currently in the post production stages. For now, check out the newly released trending pictures of STR here:
பிக்பாஸ் 4 : ஹவுஸ்மேட்ஸின் நிலைமை குறித்து அனிதாவுடன் கலந்துரையாடும் ஆரி !
பிக்பாஸ் 4 : தலைவர் போட்டிக்கான கேள்வியில் சரியான விடையை கூறிய அனிதா சம்பத் !
அந்தாதூன் தெலுங்கு ரீமேக் பற்றிய சிறப்பு தகவல் !
சூர்யா ரசிகர்களை இன்பதிர்ச்சியில் ஆழ்த்திய அமேசான் ப்ரைம் வீடியோ ! | english |
#eligameslogo{position:absolute;top:5px;left:230px}
#fleckensteinlogo{position:absolute;top:-25px;left:-25px}
#fleckensteinproductions{font-family:'ani';position:relative;top:10px;left:50px;color:white;width:200px;height:28px;}
#credits{position:fixed;right:5px;background-color:black;top:5px;height:50px;width:340px}
| css |
.badge_container {
margin-top: 20px;
}
.badge_tag {
background-color: #e9ecef;
margin: 10px 10px 10px auto;
border-radius: 5px;
padding: 5px 0 5px 10px;
}
.badge_tag label {
font-size: small;
font-weight: bold;
}
.badge_text {
text-align: justify;
}
.badge_rectify {
background-color: #ffd60a;
margin: 10px 10px 10px auto;
border-radius: 5px;
padding: 5px 0 5px 10px;
}
.badge_rectify label {
font-size: small;
font-weight: bold;
} | css |
<gh_stars>1-10
{"categories":["Management","Programming"],"desc":" New and experienced SAS users who want to prepare for the Base Programming for SAS 9 exam will find the SAS Certification Prep Guide: Base Programming for SAS 9 to be an invaluable, convenient, and comprehensive resource that covers all of the objectives tested on the exam. Major topics include importing and exporting raw data files, creating and modifying SAS data sets, and identifying and correcting data syntax and programming logic errors. You will also become familiar with the enhancements and new functionality that are available in SAS 9. ","details":{"authors":"SAS Institute","format":"pdf","isbn-10":"1607649241","isbn-13":"978-1607649243","pages":"802 pages","publication date":"September 4, 2015","publisher":"SAS Institute","size":"25.00Mb"},"img":"http://192.168.3.11/covers/aa/aab0a79fb9b2281153009b995133963c.jpg","link":"https://rapidhosting.info/files/9fy","title":"SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition"} | json |
#!/usr/bin/python
import sys
import os
if len(sys.argv) >= 2 :
psl_filename = sys.argv[1]
else:
print("usage: psl_filename")
print("or ")
sys.exit(1)
################################################################################
psl = open(psl_filename,'r')
for line in psl:
ls = line.strip().split("\t")
identity = str(round(float(ls[0])/float(ls[10]),4))
name = identity + "_" + ls[10]
if ls[9][-3:] == "ccs":
name = name + "|ccs"
ls[9] = name
print "\t".join(ls)
psl.close()
################################################################################
| python |
India have overtaken Australia to regain No.1 position in the ICC Men’s Test Team Rankings following the annual update that drops results from the 2019-’20 season and reflects all series completed since May 2020.
India’s rating points have moved up from 119 to 121 as their 2-0 defeat to New Zealand in March 2020 no longer figures in the rankings, which assesses series completed prior to May 2022 at 50 per cent and subsequent series at 100%. India were last at the top for a month in December 2021.
Australia have slipped from 122 to 116 rating points as their home series wins over Pakistan (2-0) and New Zealand (3-0) in 2019-20 no longer figure in the rankings, while their 4-0 win over England in 2021-22 has its weighting halved to 50 per cent.
Australia, who take on India in the final of the ICC World Test Championship 2023 at The Oval from 7 June, were the top-ranked Test side since January 2022. They grabbed the position with the 4-0 series win over England that helped them overtake New Zealand.
England remain in third position but the gap between them and the second placed side is reduced from 13 to two rating points owing to some consistent performances in recent months as well as reduced weightage of their 4-0 Ashes defeat and a 1-0 defeat in the West Indies.
The other rankings too remain unchanged though 10th-placed Zimbabwe have gained five rating points. Afghanistan and Ireland have yet to play enough Tests to earn a place in the rankings table.
In the ICC Men’s T20I Team Rankings, India have consolidated their position at the top, increasing their lead over second-placed England from six to eight points. New Zealand have overtaken Pakistan and South Africa to third position.
The biggest ratings jumps are by Hong Kong (up three places to 18th) and USA (up three places to 22nd).
Oman and Papua New Guinea are down two places each to 20th and 21st, respectively, while Singapore have slipped six places to 36th.
In all, 84 countries are now ranked, having played the minimum requirement of six T20I matches over the past three years.
Turkey drop off the table, having fallen below the threshold of six matches, while five countries - Brazil, Chile, Iran, Mexico and Peru - have not played at all since May 2020 and so lose their rating.
The annual update to the ODI team rankings will be carried out on 10 May after the ongoing Pakistan-New Zealand series.
| english |
{"meta": {"code": 200, "requestId": "595b0659f594df3c0b4ae402"}, "notifications": [{"item": {"unreadCount": 0}, "type": "notificationTray"}], "response": {"photos": {"items": [{"height": 960, "source": {"url": "https://foursquare.com/download/#/android", "name": "Foursquare for Android"}, "width": 720, "prefix": "https://igx.4sqi.net/img/general/", "createdAt": 1377413563, "id": "5219a9bb11d242c06dbdc3d3", "venue": {"like": false, "location": {"formattedAddress": ["306/308 Bedok Rd. (Bedok Shopping Complex)", "469469", "Singapore"], "city": "Singapore", "lng": 103.94879579544067, "cc": "SG", "country": "Singapore", "crossStreet": "Bedok Shopping Complex", "lat": 1.3312429305855493, "address": "306/308 Bedok Rd.", "labeledLatLngs": [{"label": "display", "lat": 1.3312429305855493, "lng": 103.94879579544067}], "postalCode": "469469"}, "categories": [{"icon": {"prefix": "https://ss3.4sqi.net/img/categories_v2/food/ramen_", "suffix": ".png"}, "name": "Noodle House", "id": "4bf58dd8d48988d1d1941735", "pluralName": "Noodle Houses", "primary": true, "shortName": "Noodles"}], "verified": false, "contact": {"formattedPhone": "+65 6241 0201", "phone": "+6562410201"}, "allowMenuUrlEdit": true, "stats": {"tipCount": 66, "usersCount": 1602, "checkinsCount": 3928}, "id": "4bb95742935e9521ac152790", "name": "<NAME>", "beenHere": {"lastCheckinExpiredAt": 0}}, "suffix": "/64710861_NiNdv7WsDHV5TAcELN6JK2K1sJJ62jzV0isp5FAhYyw.jpg", "visibility": "public"}, {"height": 720, "source": {"url": "https://foursquare.com/download/#/android", "name": "Foursquare for Android"}, "width": 960, "prefix": "https://igx.4sqi.net/img/general/", "createdAt": 1377354164, "id": "5218c1b411d29a1c205272b8", "venue": {"like": false, "location": {"lng": 103.8836366628778, "cc": "SG", "country": "Singapore", "lat": 1.3022101425773278, "address": "Jalan Batu Hawker Centre #01-33", "labeledLatLngs": [{"label": "display", "lat": 1.3022101425773278, "lng": 103.8836366628778}], "formattedAddress": ["Jalan Batu Hawker Centre #01-33", "Singapore"]}, "categories": [{"icon": {"prefix": "https://ss3.4sqi.net/img/categories_v2/food/coffeeshop_", "suffix": ".png"}, "name": "Coffee Shop", "id": "4bf58dd8d48988d1e0931735", "pluralName": "Coffee Shops", "primary": true, "shortName": "Coffee Shop"}], "verified": false, "contact": {}, "allowMenuUrlEdit": true, "stats": {"tipCount": 1, "usersCount": 14, "checkinsCount": 25}, "id": "5054129de4b01eeee5536e9e", "name": "<NAME>", "beenHere": {"lastCheckinExpiredAt": 0}}, "suffix": "/64710861_zlDchyg0vOpReHQiRMbQiCBxrIbR8qjKgx_4DNeiABI.jpg", "visibility": "public"}, {"height": 720, "source": {"url": "https://foursquare.com/download/#/android", "name": "Foursquare for Android"}, "width": 960, "prefix": "https://igx.4sqi.net/img/general/", "createdAt": 1377353885, "id": "5218c09d11d2089b755b480d", "venue": {"venueRatingBlacklisted": true, "like": false, "location": {"city": "Singapore", "lng": 103.90757085906404, "cc": "SG", "country": "Singapore", "lat": 1.302449774352424, "address": "Blk 80 Marine Drive", "labeledLatLngs": [{"label": "display", "lat": 1.302449774352424, "lng": 103.90757085906404}], "formattedAddress": ["Blk 80 Marine Drive", "Singapore"]}, "categories": [{"icon": {"prefix": "https://ss3.4sqi.net/img/categories_v2/building/religious_church_", "suffix": ".png"}, "name": "Church", "id": "4bf58dd8d48988d132941735", "pluralName": "Churches", "primary": true, "shortName": "Church"}], "verified": false, "contact": {}, "beenHere": {"lastCheckinExpiredAt": 0}, "stats": {"tipCount": 0, "usersCount": 39, "checkinsCount": 185}, "id": "4d97d782daec224b939a3b3e", "name": "Gkidz @ FCBC"}, "suffix": "/64710861_GukzvIhi74KqFuKigBiXHvqgIAEZzNvrTo7FVnlBamY.jpg", "visibility": "public"}], "count": 3}, "totalCount": 3}} | json |
Follow us for all the LIVE updates from the Denmark Open 2021.
The Denmark Open is back and so is the two-time Olympic medallist PV Sindu. A total of 19 Indian shuttlers will be in action in Denmark, including 11 on the very first day.
The very first Indian match on day 1 of Denmark Open 2021 will see Kidambi Srikanth taking on Sai Praneeth. The others in action for India includes Sameer Verma, Satwik-Chirag, Dhruv-Arjun, Dhruv-Sikki, Manu-Sumeeth and PV SINDHU!
Stay tuned for all the latest updates!
Goood Afternooon!
The 2021 Denmark Open is all set to kickstart today with a total of 19 Indians in contention. Following their quarterfinal exits in both the Thomas and Uber Cup, all the Indian shuttlers would be itching to leave a mark at he Odense Stadion in Denmark.
The excitement level is at its peak with PV SINDHU returning to action for the first time since her bronze medal effort at the 2020 Tokyo Olympics. Not only Sindhu but a lot of other Indians will be in contention on Day 1, which promises to be an exciting day.
Stay tuned for all the latest updates.
| english |
<reponame>Meysamsarabadani/devtools-frontend<filename>node_modules/intl-list-format/locale-data/ca.d.ts
//# sourceMappingURL=ca.d.ts.map | typescript |
import * as React from 'react';
import { useState } from 'react';
import {
Icon,
VStack,
HStack,
Text,
Tabs,
TabList,
TabPanels,
Tab,
TabPanel,
useColorModeValue,
SimpleGrid
} from '@chakra-ui/react';
import { GetStaticProps, NextPage } from 'next';
import Section from 'components/skills/section';
import { AiTwotoneThunderbolt, AiOutlineCloudServer } from 'react-icons/ai';
import { BiDesktop } from 'react-icons/bi';
import { GiSpiderWeb } from 'react-icons/gi';
import SkillCard from 'components/skills/skill-card';
import { skillsArray } from 'data/data';
import Header from 'components/shared/header';
import { MotionBox } from 'components/shared/animations/motion';
import { container, PageSlideFade } from 'components/shared/animations/page-transitions';
import PageLayout from '../components/layouts/pageLayout';
import { useLinkColor } from 'components/theme';
import { SkillProps } from 'interfaces/interface';
const tabList = [
{
name: 'All',
filterName: '',
icon: AiTwotoneThunderbolt
},
{
name: 'Web Development',
filterName: 'development',
icon: BiDesktop
},
{
name: 'Web Design',
filterName: 'design',
icon: GiSpiderWeb
},
{
name: 'Devops',
filterName: 'devops',
icon: AiOutlineCloudServer
}
];
const TechStack: NextPage<SkillProps> = ({ skills }) => {
const bgColor = useLinkColor();
const [skillsList, setSkillsList] = useState([]);
React.useEffect(() => {
setSkillsList(skills);
}, []);
const filterSkills = (tab) => {
if (tab.length) setSkillsList(skills.filter((skill) => skill.type === tab));
else setSkillsList(skills);
};
return (
<PageLayout title="Skills" keywords="rails, ruby, react, javascript, typescript">
<PageSlideFade>
<VStack spacing={8}>
<Section>
<VStack>
<Header mt={0} mb={1}>
Tech Stack
</Header>
<Text
fontSize={'xl'}
color={useColorModeValue('gray.500', 'gray.200')}
maxW="lg"
textAlign="center"
>
A list of my favorite tools and technologies that I use on a regular basis.
</Text>
</VStack>
</Section>
<Section zIndex={5}>
<Tabs variant="soft-rounded" colorScheme="blue" align="center" w="100%">
<TabList display="flex" flexWrap="wrap">
{tabList.map((tab, index) => (
<Tab
bg={useColorModeValue('gray.100', 'gray.800')}
color={useColorModeValue('gray.600', 'gray.500')}
_selected={{
color: 'white',
bg: bgColor
}}
mr={2}
mt={2}
onClick={() => filterSkills(tab.filterName)}
key={index}
>
<HStack spacing={1}>
<Icon as={tab.icon} />
<Text>{tab.name}</Text>
</HStack>
</Tab>
))}
</TabList>
<TabPanels minHeight={'45vh'}>
<TabPanel px={0}>
<MotionBox variants={container} initial="hidden" animate="visible">
<SimpleGrid columns={[1, 1, 2]} spacing={4} mt={8}>
{skillsList.map((tool, index) => (
<SkillCard
key={index}
name={tool.name}
description={tool.description}
image={tool.image}
// platform={"web"}
link={tool.link}
/>
))}
</SimpleGrid>
</MotionBox>
</TabPanel>
<TabPanel px={0}>
<MotionBox variants={container} initial="hidden" animate="visible">
<SimpleGrid columns={[1, 2]} spacing={4} mt={8}>
{skillsList.map((tool, index) => (
<SkillCard
key={index}
name={tool.name}
description={tool.description}
image={tool.image}
// platform={"web"}
link={tool.link}
/>
))}
</SimpleGrid>
</MotionBox>
</TabPanel>
<TabPanel px={0}>
<MotionBox variants={container} initial="hidden" animate="visible">
<SimpleGrid columns={[1, 2]} spacing={4} mt={8}>
{skillsList.map((tool, index) => (
<SkillCard
key={index}
name={tool.name}
description={tool.description}
image={tool.image}
// platform={"web"}
link={tool.link}
/>
))}
</SimpleGrid>
</MotionBox>
</TabPanel>
<TabPanel px={0}>
<MotionBox variants={container} initial="hidden" animate="visible">
<SimpleGrid columns={[1, 2]} spacing={4} mt={8}>
{skillsList.map((tool, index) => (
<SkillCard
key={index}
name={tool.name}
description={tool.description}
image={tool.image}
// platform={"web"}
link={tool.link}
/>
))}
</SimpleGrid>
</MotionBox>
</TabPanel>
</TabPanels>
</Tabs>
</Section>
</VStack>
</PageSlideFade>
</PageLayout>
);
};
export const getStaticProps: GetStaticProps<SkillProps> = () => {
return {
props: {
skills: skillsArray
}
};
};
export default TechStack;
| typescript |
export { default } from './SlideCard';
| javascript |
<filename>node_modules/.cache/babel-loader/abe1dc7cf0a7b980f5c8875000526735.json<gh_stars>0
{"ast":null,"code":"import _classCallCheck from\"/Users/vishnu/Desktop/react/calci/node_modules/@babel/runtime/helpers/esm/classCallCheck\";import _createClass from\"/Users/vishnu/Desktop/react/calci/node_modules/@babel/runtime/helpers/esm/createClass\";import _possibleConstructorReturn from\"/Users/vishnu/Desktop/react/calci/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";import _getPrototypeOf from\"/Users/vishnu/Desktop/react/calci/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";import _inherits from\"/Users/vishnu/Desktop/react/calci/node_modules/@babel/runtime/helpers/esm/inherits\";import React,{Component}from\"react\";import'./Input.css';var Input=/*#__PURE__*/function(_Component){_inherits(Input,_Component);function Input(){_classCallCheck(this,Input);return _possibleConstructorReturn(this,_getPrototypeOf(Input).apply(this,arguments));}_createClass(Input,[{key:\"render\",value:function render(){return React.createElement(\"div\",{className:\"input\"},this.props.children);}}]);return Input;}(Component);export default Input;","map":{"version":3,"sources":["/Users/vishnu/Desktop/react/calci/src/components/Input.js"],"names":["React","Component","Input","props","children"],"mappings":"klBAAA,MAAOA,CAAAA,KAAP,EAAgBC,SAAhB,KAAiC,OAAjC,CACA,MAAO,aAAP,C,GACMC,CAAAA,K,2PACO,CACL,MACI,4BAAK,SAAS,CAAC,OAAf,EACK,KAAKC,KAAL,CAAWC,QADhB,CADJ,CAKH,C,mBAPeH,S,EAUpB,cAAeC,CAAAA,KAAf","sourcesContent":["import React, { Component } from \"react\";\nimport './Input.css';\nclass Input extends Component {\n render() {\n return (\n <div className=\"input\">\n {this.props.children}\n </div>\n );\n }\n}\n\nexport default Input;"]},"metadata":{},"sourceType":"module"} | json |
/* Styles for week 9 */
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
h1 {
text-align: center;
color: rgb(93, 178, 199);
}
form {
max-width: 580px;
margin: 0 auto 20px auto;
}
input {
display: block;
height: 30px;
margin-bottom: 10px;
width: 100%;
}
fieldset {
padding: 10px;
}
.center{
text-align: center;
} | css |
Manchester United needed Scott McTominay's injury-time winner to beat Omonia Nicosia 1-0 in the UEFA Europa League, with Cristiano Ronaldo a bystander throughout.
Omonia goalkeeper Francis Uzoho had the game of his life on Thursday, and one he will cherish as he is a lifelong United fan.
He made numerous saves throughout the first half as the Red Devils kept shooting with no luck at his goal.
Marcus Rashford went close in the 22nd minute when he was played in on goal by Cristiano Ronaldo.
The English forward could only fire at Uzoho, who made himself big by closing down the space.
Casemiro then rattled the crossbar with a thunderstrike in the 33rd minute, with United unable to break down Omonia's stern defense. Omonia stood firm in blocking out the Red Devils' onslaught throughout the match.
Uzoho then pulled off a spectacular double save in the 47th minute to deny Antony and Rashford.
It looked like being one of those nights for United as they just couldn't find the killer instinct to get on the scoresheet.
Rashford used his pace to trouble the Omonia defense and Uzoho was always there to save the day. He denied the Englishman once again in the 60th minute.
The Cypriot minnows had just three shots all game against Manchester United's 34.
It seemed as if United would have to settle for a dreadful 0-0 draw before substitute Scott McTominay popped up with a vital winner in the 93rd minute.
The Scottish midfielder found the ball eight yards outside goal after it pinballed inside the box courtesy of Jadon Sancho's shot. He made no mistake in converting the chance to give United the much-needed goal.
United fans will be breathing a deep sigh of relief and here are some reactions from fans on Twitter on a night where the Red Devils clinched a last-gasp win:
Manchester United survived a huge scare against one of the lowest ranked sides in the Europa League.
Omonia's effort was brave and Uzoho has given his transfer fee a huge increase off the back of a spectacular display.
However, there is cause for concern in the form of Cristiano Ronaldo, who was barely involved throughout the match.
The Portuguese had seven shots, with two of those being on target. He also had 32 touches of the ball and failed to impress.
Manchester United remain second in Group E, trailing leaders Real Sociedad by three points.
Next up for the Red Devils is the visit of Newcastle United in the Premier League on October 16.
| english |
Amazon Prime Day is on day two, but it's still got dozens of great board game deals. Here are the best ones.
Tabletop gaming has seen a real renaissance over the past two decades, with a new generation's interest in Dungeons & Dragons (thanks, Stranger Things) and a constant stream of Kickstarter-backed and traditionally produced board games, from Gloomhaven to Settlers of Catan. Amazon Prime Day is entering its second day, and many of these games are seeing huge discounts -- on Amazon, and at competitors like Target and Walmart. Hurry, though, because some of the best deals we've seen have either expired or sold out.
Here are the best deals we've found so far. We'll be updating this list with new deals, and noting expired ones to help you keep track.
Settlers of Catan isn't the oldest board game around, but it's the one that brought German-style board games to the United States in the '90s. Even in 2021, Catan still stands up as an accessible, balanced and strategically compelling game, even if the road-building, town-constructing and resource trading components have been done a million times since. For any board game fan, Catan is one you should have in your library.
A roleplaying investigation game torn straight from the pages of HP Lovecraft's cosmic horror. Arkham Horror: The Card Game is a fantastic, cooperative experience for weekly game nights with a group of friends. You can buy more campaigns as you progress, which bring new characters and stories to experience -- but this starter pack comes with the base game, tokens and a super fun three-episode campaign.
Pandemic is one of the most famous cooperative board games around -- and after last year, we should all be ready to learn more about fighting global diseases. That's exactly what you do in this game: Each player takes the role of a different official battling a spreading virus, taking turns traveling to cities around the world and performing actions to stop the spread or work toward a cure.
The original game is on sale, but the more recent Pandemic Legacy Season 1 -- an excellent update that gives you a campaign to play over multiple sessions -- is also seeing a big discount right now.
Scythe was one of the most successful board game Kickstarters in recent years, and put designer Jamey Stegmaier on the map (literally). The game takes place in an alternative history (think WWI with mechs). It brings heavy strategy, with elements of conquest, economy-building and (if you get some of the expansions) narrative. The art is beautiful and the game is infinitely replayable, thanks to the clever asymmetry of the various warring nations and economy types.
The Dungeon Master's Guide ($25) is the best deal, but you can also get the Monsters Manual for $22 off.
Gloomhaven is one of our favorite board games at CNET -- and despite the intimidating price tag, it's a pretty incredible value. For the usual price of $140, you get over a hundred hours of campaign materials, dozens of playable characters with their own unique decks, hundreds of unique items and events, and a wonderfully realized, unique fantasy world to play in. Although this isn't the best discount we've ever seen on the game, it's still hefty enough to merit a look if you haven't tried this behemoth before.
The smaller, more accessible version of Gloomhaven is a fantastic game in its own right. If you pick this up and you also have a 3D printer, here's a link to the file for my custom-made character box, which replaces the cardboard ones included with the game.
Ticket to Ride is a great introduction to the world of train games (there's more than you'd think), and it's a solid game in its own right. Players take turns drawing cards and laying down train tracks to create the best routes across Europe. It's quick and simple, but belies a surprising level of depth.
Carcassonne is a classic tile-laying game, and often one of the first tabletop board games newcomers try out once they've been introduced to Settlers of Catan. There's a reason: The game is easy to learn, difficult to master and incredibly addictive. Take turns laying fields, roads and cities, trying to rack up the most points and block your competitors from doing the same.
Jaws is a super fun and simple little game: one player is the shark; the others take on the roles of the men hunting it. The game follows the basic structure of the movie, and it's pretty light on strategy -- but fans of the film and casual gamers will have a blast playing it.
7 Wonders: Duel is one of our favorite two-player games. It's quick to play, but cutthroat and clever. Players take turns drawing cards and performing various actions to build their civilizations across three "eras." This isn't a huge discount, but the box isn't too pricey to begin with -- and it's a great game at full price.
These deals are no longer available, but keep your eye on them -- they often come back.
If you're looking for a heavy strategy game, it doesn't get much more intense than Twilight Imperium, the epic sci-fi conquest game. Games can take all day, and can look totally different. Sometimes, a slow-burning cold war ratchets up for the duration of the game; sometimes all-out war erupts and players see their factions decimated. Regardless, it's a blast to play.
| english |
<reponame>CristianHourcade/cheto
{"remainingRequest":"/opt/lampp/htdocs/dashboard/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js??ref--3-1!/opt/lampp/htdocs/dashboard/node_modules/asn1/lib/ber/errors.js","dependencies":[{"path":"/opt/lampp/htdocs/dashboard/node_modules/asn1/lib/ber/errors.js","mtime":1532987578000},{"path":"/opt/lampp/htdocs/dashboard/node_modules/cache-loader/dist/cjs.js","mtime":0},{"path":"/opt/lampp/htdocs/dashboard/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js","mtime":1519266497000}],"contextDependencies":[],"result":["// Copyright 2011 <NAME> <<EMAIL>> All rights reserved.\n\n\nmodule.exports = {\n\n newInvalidAsn1Error: function (msg) {\n var e = new Error();\n e.name = 'InvalidAsn1Error';\n e.message = msg || '';\n return e;\n }\n\n};\n",null]} | json |
Odell Beckham Jr. is currently a free agent in the NFL. Coming off a Super Bowl win, the receiver has not been signed just yet. This is likely due to concerns over his ACL tear in the said Super Bowl.
Beckham Jr. was on his way to potentially taking home a Super Bowl MVP award, as he had a few catches for 50+ yards and a touchdown in just over a quarter of gametime.
A recent tweet went viral from an account posing as Bleacher Report. They 'reported' that OBJ was on his way to the Buffalo Bills to form an incredible wide receiver trio with Stefon Diggs and Gabe Davis.
NFL fans believed the fake tweet, including Beckham Jr. himself. One Bills fan was confused by the tweet and wanted to know if Beckham Jr. was really signing with their team.
Beckham Jr. even called his agent to see if the deal was real or not.
One Bills fan pointed out that if Beckham Jr. himself believed the fake tweet, there must have been some sort of talks about a contract between the two parties.
Whether it was a real report or not, one Bills fan really doesn't want OBJ.
Just the idea of that offense had one NFL fan happy.
A Los Angeles Rams fan thinks Beckham Jr. might curse whoever he signs with.
Another NFL fan noticed right away that the account was fake.
A radio DJ concurred.
Bills fans may want to reconsider whether or not they want to sign the wideout.
For now, the star wide receiver has not signed with the Bills.
NFL: Where might Odell Beckham Jr. sign?
Odell Beckham Jr. has talent and there's no denying that. However, the injury is a real concern. Still, it seems unlikely that some team won't, at least, take a one year flyer on him.
Who that could be remains to be seen. As one fan above pointed out, if Beckham thought he had signed with the Bills, there is probably a relationship there. They could still sign him eventually.
The Rams also remain a favorite for OBJ. He had a great time there and would presumably want to run it back next season when he returns.
The Green Bay Packers lost Davante Adams, so they might be looking at a cheaper replacement. OBJ fits that bill.
The Chicago Bears could always use talent to help Justin Fields, so they remain an option too. | english |
{
"name": "node-red-contrib-axis-template",
"version": "1.0.0",
"description": "Template node for simplifying specific Axis device integration",
"author": {
"name": "<NAME>",
"email": "<EMAIL>"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/pandosme/node-red-axis-template/issues"
},
"bundleDependencies": false,
"dependencies": {
"vapix-wrapper": "^1.0.0"
},
"deprecated": false,
"homepage": "https://github.com/pandosme/node-red-axis-template",
"keywords": ["node-red","Axis","Node template"],
"node-red": {
"nodes": {
"axis-template": "axis-template.js"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/pandosme/node-red-axis-template.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
| json |
|অফিসার (লিগ্যাল)
| #The candidate seeking this position should have a minimum bachelor degree with 5 years of working experience.
#Ex. Govt. Kanango will be preferred. Academic qualification can be relaxed in case of with proven practical experience in Land Laws and Registration Act.
|কমপক্ষে ৪-৬ বছরের অভিজ্ঞতা (বয়স সর্বোচ্চ ২৫-৪০ বছর)
| english |
Blame it on Vishal Bhardwaj, Neil Nitin Mukesh has opted out of Tigmanshu Dhulia's proposed sequel to Sahib Biwi Aur Gangster (SBAG) because the role of a sadistic husband had already been done by him in Vishal Bhardwaj's Saat Khoon Maaf. Contrary to the impression being given by the producers of Sahib Biwi Aur Gangster, Neil Nitin Mukesh was not "replaced" in the SBAG sequel. "I opted out. I had already played the horny mean husband in Saat Khoon Maaf. Doing it again would have made no sense," explains Neil.
To the producer's claim that Irrfan Khan has stepped into the part that Neil was ousted from, Neil sniggers, "Everyone wants to show that the right to choose is his. It doesn't make any difference to me."
Neil had in principle, said yes to the role. He explains, "But then on paper the character came out much older. At this point in my career I don't want to repeatedly play older, mean characters, especially after Saat Khoon Maaf."
Neil admits there are lots of similarities between the characters in Saat Khoon Maaf and SBAG 2, "Before the final draft of the script was sent to me, I was quite kicked by doing the mean act again. But after I read the script I found a lot of similarities between this script and Saat Khoon Maaf."
Interestingly, the sequel purports to bring back Randeep Hooda from the dead. His character died in SBAG. But he is being touted as a part of the sequel, prompting a former associate of the director to wonder if Hooda plays a ghost in the film. Randeep Hooda himself is clueless as to how he would return to the film.
Significantly, Sunil Bohra who was a partner in the production of Sahib Biwi Aur Gangster has opted out of the sequel. Sources close to Bohra claim he couldn't see eye to eye with the director any more.
Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
| english |
Aryna Sabalenka and Ons Jabeur came through similarly hard-fought wins in their respective fourth-round encounters on Monday. The two will now compete for a spot in their first Grand Slam semifinal.
Sabalenka came into Wimbledon having never made it past the second round at the tournament, but has gone from strength to strength in her matches this year. She has been especially impressive in the crunch moments, coming through tight three-set wins over Kartie Boulter in the second round and Elena Rybakina in the fourth.
Against an increasingly dangerous-looking Jabeur, however, the second seed faces another big test.
Ons Jabeur enters this contest having won 10 of her 11 matches on grass this year. The Tunisian has strung an especially strong run here at the All England Club, ousting three Major winners - Venus Williams, Garbine Muguruza and Iga Swiatek - in a row.
The encounters against Swiatek and Muguruza, where she came from a set down to close out emphatic wins, would have filled her with a lot of confidence.
Aryna Sabalenka and Ons Jabuer have split their two previous meetings, so their current head-to-head stands at a 1-1 deadlock. The Belarusian won the duo's most recent meeting - at the 2021 Abu Dhabi Open - in straight sets.
Aryna Sabalenka and Ons Jabeur weren't the most established grasscourt players coming into this year's Wimbledon Championships. However, both women have come up with splendid displays throughout the week.
Sabalenka, for one, has managed to power her way through some tenacious players. The Belarusian's big groundstrokes have proven too strong for most opponents, and her serve has repeatedly bailed her out of trouble.
However, Sabalenka will need to be wary of Jabeur's variety. The Tunisian has used the block and dropshot returns exceptionally well this week, and that's something Sabalenka struggled with in her match against Boulter as well.
Jabeur is also capable of going toe-to-toe with the best from the baseline, as was evident in her matches against Swiatek and Muguruza. When playing with freedom, the Tunisian has one of the best forehands in the current game, which can deal a lot of damage.
We could be in for another topsy-turvy match, as both Sabalenka and Jabeur are prone to lapses in concentration. That said, it is the Tunisian who has shown greater mental strength in overcoming big names this week, and in a close matchup like this, that could well make the difference.
Prediction: Ons Jabeur to win in three sets. | english |
WALTHAM, Mass. (AP) — A pickup truck driver in a Boston suburb is accused of crashing into a police officer and a utility employee at a work site, killing both, then pulling a knife on another officer before stealing his cruiser and crashing, law enforcement officials said.
Two other utility workers were injured in the initial crash Wednesday afternoon in Waltham, about 10 miles (16 kilometers) west of Boston, and “multiple other vehicles” were struck by the truck before it was abandoned, Middlesex District Attorney Marian Ryan said in a news release. The two other workers were treated and released from the hospital.
After the cruiser crashed, police said they arrested the driver after a brief foot pursuit.
Peter Simon, 54, of Woodsville, New Hampshire, appeared in court Thursday and was arraigned on multiple charges, including two counts of manslaughter, armed robbery, assault and leaving the scene of an accident. A lawyer entered not guilty pleas on his behalf and a hearing date was scheduled for Dec. 14.
The events unfolded after Simon suddenly attempted to make a U-turn, striking a vehicle, prosecutors said.
In an attempt to flee the scene, prosecutors said, Simon continued for about a quarter mile before striking Waltham police Officer Paul Tracey, 58, and a 36-year-old National Grid worker identified as Roderick Jackson, of Cambridge. Tracey was working a police detail at a utility work site, a trench that was marked by orange cones and signs and yellow flashing lights, prosecutors said in court. The truck also struck a National Grid truck.
The truck kept going and struck other vehicles before Simon got out and fled, encountering another Waltham officer who was responding to the crash. Simon turned on the officer, brandishing a knife, before taking his cruiser and driving off, prosecutors said.
Other officers pursued Simon and tried to stop him, but each time, he would veer his car into an oncoming officer, prosecutors said. He ultimately crashed and was arrested following a brief foot chase.
During Simon's court appearance Thursday, prosecutors didn't point to any motives behind Simon's actions, other than attempting to flee.
Simon has a criminal history in New Hampshire dating back to 2009. He has served time in both the state corrections department secure psychiatric unit and in the state prison on charges including reckless conduct and assault.
Tracey and Jackson were taken to a hospital, where they died from their injuries, prosecutors said.
Tracey was a 28-year veteran of the Waltham Police Department.
Massachusetts Gov. Maura Healey on Thursday ordered flags lowered to half-staff at all state buildings in honor of Tracey.
Dozens of police officers, emergency medical workers and firefighters — blue and white emergency lights flashing — lined the streets near the medical examiner’s office in Boston in a show of solidarity as Tracey's body was transported to the facility.
Jim Tracey told reporters his brother will be sorely missed by his family and friends.
Jackson joined National Grid in early 2021, working as a technician on the gas operations team. “He was always willing to lend a hand, roll up his sleeves and help a colleague. His loss is deeply felt throughout the company, and he will be sorely missed,” the utility said in a statement.
Jackson’s brother Manuel Asprilla-Hassan told reporters he was devastated. He said he spoke to his brother shortly before the crash and they had talked about plans to attend the Rose Bowl Game.
McCormack reported from Concord, New Hampshire.
| english |
The production of dimethyl ether (DME) is a well-established industrial process that is divided into two steps: first, the catalytic hydrogenation of syngas into methanol (CO / CO2 + 3H2 → CH3OH + H2HO) and secondly, a subsequent catalytic dehydration of the methanol over acid catalysts to produce (2CH3OH → CH3OCH3 + H2O). The major limitation of this two-step DME synthesis is related to the low thermodynamics during the phase of methanol synthesis, which results in a low gas conversion per pass (15-25%). Thereby, high recirculation ratios as well as high capital and operating costs are occurring.
The reactivity and selectivity of catalysts for dimethyl ether conversion can be significantly improved via ultrasonic treatment. Zeolites such as acid zeolites (e.g., aluminosilicate zeolite HZSM-5) and decorated zeolites (e.g., with CuO/ZnO/Al2O3) are the main catalysts that are used successfully for DME production.
Chlorination and fluorination of zeolites are effective methods to tune the catalytic acidity. The chlorinated and fluorinated zeolite catalysts were prepared by the impregnation of zeolites (H-ZSM-5, H-MOR or H-Y) using two halogen precursors (ammonium chloride and ammonium fluoride) in the study by the research team of Aboul-Fotouh. The influence of ultrasonic irradiation was evaluated for optimizing both halogen precursors for production of dimethylether (DME) via methanol dehydration in a fixed bed reactor. Comparative DME catalysis trial revealed that the halogenated zeolite catalysts prepared under ultrasonic irradiation show higher performance for DME formation. (Aboul-Fotouh et al., 2016)
In another study, the research team investigated all important ultrasonication variables encountered during carrying out the dehydration of methanol on H-MOR zeolite catalysts to produce dimethylether. For their Sonication eperiments, the research team used the Hielscher UP50H probe-type ultrasonicator. Scanning electron microscope (SEM) imaging of the sonicated H-MOR zeolite (Mordenite zeolite) have clarified that methanol by itself used as an ultrasonication medium gives the best results concerning the homogeneity of particle sizes compared to the untreated catalyst, where large agglomerates and non-homogeneous clusters appeared. These findings certified that ultrasonication has a deep effect on the unit cell resolution and hence on the catalytic behavior of the dehydration of methanol to dimethyl ether (DME). NH3-TPD shows that ultrasound irradiation has enhanced the acidity of H-MOR catalyst and hence it is catalytic performance for DME formation. (Aboul-Gheit et al., 2014)
Almost all commercial DME is produced by the dehydration of methanol using different solid-acid catalysts such as zeolites, sillica–alumina, alumina, Al2O3–B2O3, etc. by following reaction:
An alternative non-zeolite nano-catalyst, which is also very efficient in promoting the DME conversion, is a nano-sized porous γ-alumina catalyst. Nano-size porous γ-alumina was successfully synthesized by precipitation under ultrasonic mixing. The sonochemical treatment promotes the nano particles synthesis. (cf. Rahmanpour et al., 2012)
Why Are Ultrasonically Prepared Nano-Catalysts Superior?
For the production of heterogeneous catalysts often high value-added materials such as precious metals are required. This makes catalysts expensive and therefore, efficiency enhancement as well as life cycle extension of the catalysts are important economic factors. Among preparation methods of nanocatalysts, the sonochemical technique is considered as a highly efficient method. The ability of ultrasound to create highly reactive surfaces, to improve mixing and to increase mass transport makes it a particularly promising technique to explore for catalyst preparation and activation. It can produce homogeneous and dispersed nanoparticles without need for expensive instruments and extreme conditions.
In several research studies, the scientists come to the conclusion that ultrasonic catalyst preparation is the most advantageous method for the production of homogeneous nano-catalysts. Among preparation methods of nanocatalysts, the sonochemical technique is considered as a highly efficient method. The ability of intense sonication to create highly reactive surfaces, to improve mixing and to increase mass transport makes it a particularly promising technique to explore for catalyst preparation and activation. It can produce homogeneous and dispersed nanoparticles without need for expensive instruments and extreme conditions. (cf. Koshbin and Haghighi, 2014)
Sonochemical equipment for the synthesis of high-performance nano-catalysts is readily available at any size – from compact lab ultrasonicators to fully-industrial ultrasonic reactors. Hielscher Ultrasonics designs, manufactures, and distributes high-power ultrasonicators. All ultrasonic systems are made in the headquarter in Teltow, Germany and distributed from there all around the world.
The sophisticated hardware and smart software of Hielscher ultrasonicators are designed to guarantee reliable operation, reproducible outcomes as well as user-friendliness. The Hielscher ultrasonicators are robust and reliable, which allows to be installed and operated under heavy duty conditions. Operational settings can be easily accessed and dialled via intuitive menu, which can be accessed via digital colour touch-display and browser remote control. Therefore, all processing conditions such as net energy, total energy, amplitude, time, pressure and temperature are automatically recorded on a built-in SD-card. This allows you to revise and compare previous sonication runs and to optimize the synthesis and functionalization of nano-catalysts to highest efficiency.
Hielscher Ultrasonics systems are used worldwide for sonochemical synthesis processes and are proven to be reliable for the synthesis of high-quality zeolite nano-catalystss as well as zeolite derivatives. Hielscher industrial ultrasonicators can easily run high amplitudes in continuous operation (24/7/365). Amplitudes of up to 200µm can be easily continuously generated with standard sonotrodes (ultrasonic probes / horns). For even higher amplitudes, customized ultrasonic sonotrodes are available. Due to their robustness and low maintenance, our ultrasonicators are commonly installed for heavy duty applications and in demanding environments.
Hielscher ultrasonic processors for sonochemical syntheses, functionalization, nano-structuring and deagglomeration are already installed worldwide on commercial scale. Contact us now to discuss your nano-catalyst manufacturing process! Our well-experienced staff will be glad to share more information on the sonochemical synthesis pathway, ultrasonic systems and pricing!
With the advantage of the ultrasonic synthesis method, your mesoporous nano-catalyst production will excel in efficiency, simplicity and low cost when compared to other catalyst synthesis processes!
The table below gives you an indication of the approximate processing capacity of our ultrasonicators:
Contact Us! / Ask Us!
- Ahmed, K.; Sameh, M.; Laila, I.; Naghmash, Mona (2014): Ultrasonication of H-MOR zeolite catalysts for dimethylether (DME) production as a clean fuel. Journal of Petroleum Technology and Alternative Fuels 5, 2014. 13-25.
- Reza Khoshbin, Mohammad Haghighi (2013): Direct syngas to DME as a clean fuel: The beneficial use of ultrasound for the preparation of CuO–ZnO–Al2O3/HZSM-5 nanocatalyst. Chemical Engineering Research and Design, Volume 91, Issue 6, 2013. 1111-1122.
- Kolesnikova, E.E., Obukhova, T.K., Kolesnichenko, N.V. et al. (2018): Ultrasound-Assisted Modification of Zeolite Catalyst for Dimethyl Ether Conversion to Olefins with Magnesium Compounds. Pet. Chem. 58, 2018. 863–868.
- Reza Khoshbin, Mohammad Haghighi (2014): Direct Conversion of Syngas to Dimethyl Ether as a Green Fuel over Ultrasound- Assisted Synthesized CuO-ZnO-Al2O3/HZSM-5 Nanocatalyst: Effect of Active Phase Ratio on Physicochemical and Catalytic Properties at Different Process Conditions. Catalysis Science & Technology, Volume 6, 2014.
- Sameh M.K. Aboul-Fotouh, Laila I. Ali, Mona A. Naghmash, Noha A.K. Aboul-Gheit (2017): Effect of the Si/Al ratio of HZSM-5 zeolite on the production of dimethyl ether before and after ultrasonication. Journal of Fuel Chemistry and Technology, Volume 45, Issue 5, 2017. 581-588.
- Rahmanpour, Omid; Shariati, Ahmad; Khosravi-Nikou, Mohammad Reza (2012): New Method for Synthesis Nano Size γ-Al2O3 Catalyst for Dehydration of Methanol to Dimethyl Ether. International Journal of Chemical Engineering and Applications 2012. 125-128.
- Millán, Elena; Mota, Noelia; Guil-Lopez, R.; Pawelec, Barbara; Fierro, José; Navarro, Rufino (2020): Direct Synthesis of Dimethyl Ether from Syngas on Bifunctional Hybrid Catalysts Based on Supported H3PW12O40 and Cu-ZnO(Al): Effect of Heteropolyacid Loading on Hybrid Structure and Catalytic Activity. Catalysts 10, 2020.
- Suslick, Kenneth S.; Hyeon, Taeghwan; Fang, Mingming; Cichowlas, Andrzej A. (1995): Sonochemical synthesis of nanostructured catalysts. Materials Science and Engineering: A. Proceedings of the Symposium on Engineering of Nanostructured Materials. ScienceDirect 204 (1–2): 186–192.
- Pavel V. Cherepanov, Daria V. Andreeva (2017): Phase structuring in metal alloys: Ultrasound-assisted top-down approach to engineering of nanostructured catalytic materials. Ultrasonics Sonochemistry 2017.
- Sameh M.K. Aboul-Fotouh, Noha A.K. Aboul-Gheit, Mona A. Naghmash (2016): Dimethylether production on zeolite catalysts activated by Cl−, F− and/or ultrasonication. Journal of Fuel Chemistry and Technology, Volume 44, Issue 4, 2016. 428-436.
One of the major envisaged uses of dimethyl ether is its application as substitute for propane in LPG (liquid propane gas), which is used as fuel for vehicles, in households and industry. In propane autogas, dimethyl ether can also be used as a blendstock.
Furthermore, DME is also a promising fuel for diesel engines and gas turbines. For diesel engines, the high cetane number of 55, compared to that of diesel fuel from petroleum with cetane numbers of 40–53, is highly advantageous. Only moderate modifications are necessary to enable a diesel engine to burn dimethyl ether. The simplicity of this short carbon chain compound leads during combustion to very low emissions of particulate matter. For these reasons as well as being sulfur-free, dimethyl ether meets even the most stringent emission regulations in Europe (EURO5), U.S. (U.S. 2010), and Japan (2009 Japan).
| english |
{% extends "../main.html" %}
{% block title %}Registration{% end %}
{% block header %}
<script src="/static/js/pages/public/registration.js"></script>
{% end %}
{% block content %}
{% from tornado.options import options %}
{% from models.Team import Team %}
<div class="container">
<h1>
<i class="fa fa-pencil"></i>
Registration
</h1>
<br />
{% if errors is not None and len(errors) != 0 %}
{% for error in errors %}
<div class="alert alert-error">
<a class="close" data-dismiss="alert" href="#">×</a>
<h4 class="alert-heading">ERROR</h4>
{{ error }}
</div>
{% end %}
{% end %}
<div class="well">
<legend>
Welcome to the Scene
</legend><!-- http://www.youtube.com/watch?v=xIs_5nfJKu4&list=PLC2FCB2871C396459 -->
<form class="form-horizontal" action="/registration" method="post" enctype="multipart/form-data">
{% raw xsrf_form_html() %}
<div class="control-group">
<label class="control-label" for="handle">
<i class="fa fa-user"></i>
Handle
</label>
<div class="controls">
<input required id="handle" name="handle" maxlength="16" placeholder="<NAME>" type="text"
rel="popover" pattern="^[a-zA-Z0-9 ]{3,16}$"
data-original-title="Hacker Name Selection"
data-content="Your handle must be 3-16 alpha-numeric characters" />
</div>
</div>
<hr>
<h5>Join a Team</h5>
<div class="control-group">
<label class="control-label" for="team">
<i class="fa fa-users"></i>
Select a Team
</label>
<div class="controls">
<select name="team">
<option value=""></option>
{% for team in Team.all() %}
{% if len(team.members) < options.max_team_size %}
<option value="{{ team.uuid }}">{{ team.name }}</option>
{% end %}
{% end %}
</select>
</div>
</div>
{% if options.public_teams %}
<h5>Start a New Team</h5>
<div class="control-group">
<label class="control-label" for="team_name">Team Name</label>
<div class="controls">
<input id="team-name" name="team_name" maxlength="24" type="text" placeholder="Team Name"
rel="popover"
data-original-title="New Team Name"
data-content="Choose a name for your new team![3-24 Characters]" >
</div>
</div>
<div class="control-group">
<label class="control-label" for="motto">Motto</label>
<div class="controls">
<input id="motto" name="motto" maxlength="32" type="text" placeholder="Team Motto"
rel="popover"
data-original-title="Team Motto"
data-content="What's your team's motto? [Max: 32 Characters]">
</div>
</div>
{% end %}
<hr>
<div class="control-group">
<label class="control-label" for="pass1">Account Password</label>
<div class="controls">
<input required id="pass1" name="pass1" placeholder="Password" type="password"
autocomplete="off"
rel="popover"
data-original-title="Password"
data-content="Enter a complex password of {{ options.min_user_password_length }}+ characters" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="pass2">Confirm Account Password</label>
<div class="controls">
<input required id="pass2" name="pass2" placeholder="<PASSWORD>" type="password"
autocomplete="off"
rel="popover"
data-original-title="Confirm Password"
data-content="Enter the same password as before" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="bpass1">Bank Account Password</label>
<div class="controls">
<input required id="bpass" name="bpass" maxlength="{{ options.max_password_length }}" placeholder="Bank Account Password" type="password"
autocomplete="off"
rel="popover"
data-original-title="Password"
data-content="Used to secure your (in-game) bank account. [Max: {{ options.max_password_length }} characters]. Please do NOT enter your real bank account password." />
</div>
</div>
{% if options.restrict_registration %}
<div class="control-group">
<label class="control-label" for="token">Registration Token</label>
<div class="controls">
<input required id="regtoken" name="token" placeholder="Token" type="text"
rel="popover" pattern="^[a-fA-F0-9]{1,6}$"
data-original-title="Registration Token"
data-content="Get your registration token from reception" />
</div>
</div>
{% end %}
<br />
<div class="control-group">
<div class="controls">
<button class="btn btn-primary" type="submit">
Register Account
</button>
</div>
</div>
</form>
</div>
</div>
{% end %}
| html |
The NBA Playoffs bracket is finally set. After six enjoyable Play-In Games, we have the four teams that have emerged and taken playoff seedings. The last ones to arrive to the party were the Minnesota Timberwolves. Rudy Gobert had a big double-double in his return from suspension, as the Wolves beat the Thunder 120-95.
The Timberwolves looked like a whole different squad last night than the ones who had taken on the Lakers. Anthony Edwards was knocking down his shots, KAT didn’t get into foul trouble, and well, Gobert made his impact felt.
Clinching the 8th seed, the Wolves will now be heading to Denver to take on the Nuggets on Sunday for the first-round matchup. A Gobert-Nikola Jokic matchup in the books again? This prompted a post by a page on Instagram, which was shared by Shaquille O’Neal on his stories.
As soon as a Rudy Gobert and Nikola Jokic matchup was set in stone, basketball pages got working overtime to find past incidents. Bleacher Report came up with a gem of an incident that happened during a regular season matchup in 2021.
It was so funny that Shaquille O’Neal couldn’t help but share the same on his Instagram story.
In 2021, during a regular season matchup between the Nuggets and the Jazz, Nikola Jokic had 47 points en route a 127-118 win. Jamal Murray remembered an incident from the game and shared,
Apart from being a genius on the court, it turns out Jokic has rather great comic sense as well!
Can Jokic win his 3rd MVP in a row?
Nikola Jokic is a 2x NBA MVP, with his sights set on becoming the 4th ever player to win 3 MVPs in a row. Yesterday, they announced the finalists for the coveted award, and there were no surprises there.
Many are favoring Joel Embiid as the top candidate this year. However, the MVP Ladder on NBA.com has Jokic back in the top spot for its final edition of the season. I guess we’ll have to just wait and see what the voting goes like.
| english |
Indian equity benchmarks plunged to their lowest since late October on Friday, extending their losses for the fourth straight session, reflecting a sell-off in Wall Street stocks overnight after data showed economic resilience and reinforced the Federal Reserve's higher for longer interest rates rhetoric.
The BSE Sensex crashed 491. 15 points, or 0. 81 per cent, to 60,335. 07 in early trade, and the broader NSE Nifty index fell below 18,000 for the first time since November, and was last down 145. 95 points, or 0. 81 per cent, at 17,981. 40.
Almost all sectoral indices dropped. The only exception was the pharmaceutical index, which rose 1. 36 per cent on speculation that India is prepared to increase fever drug exports to China.
Forty-four of the Nifty 50 components fell. Health-related equities including Cipla, Sun Pharma, and Dr. Reddy's were among the few gainers.
The Sensex pack's main laggards included Tata Motors, Tata Steel, State Bank of India, Infosys, HDFC, HDFC Bank, Bajaj Finance, and Power Grid.
Gains were reported by Sun Pharma, Reliance Industries, Nestle, and Tata Consultancy Services.
Asian markets eased on Friday, mirroring a decline on Wall Street and the dollar strengthened on Friday as solid US data stoked concerns that the Fed will need to maintain its hawkish stance in order to contain inflation.
The largest Asia-Pacific share index outside of Japan, as measured by MSCI, fell in Asian trading hours, ending a two-day gaining streak. The Nasdaq, which is heavily weighted toward technology, fell 2 per cent as the major indexes on Wall Street closed lower on Thursday.
Weekly unemployment benefits claims data from the United States indicated that the labour market remains tight, and the third quarter's economic recovery was more rapid than anticipated.
The data from the United States "flamed fears that further monetary policy tightening in 2023 will be necessary to cool inflation," Tony Sycamore, a Market Analyst at IG, told Reuters.
Those positive data points, which would often be seen favourably, has increased investor concerns that the Fed funds target rate may rise higher and remain there longer than anticipated, increasing the likelihood of an economic slowdown.
In the energy market, oil was on track for a significant weekly increase as traders awaited Russia's response to the Group of Seven's restriction on its oil and China's switch from Covid Zero improved the outlook for demand. | english |
{
"name": "@joinsrl/samba-client",
"version": "2.1.4",
"description": "wrapper for smbclient",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/ezPrint/node-samba-client.git"
},
"keywords": [
"samba",
"smb",
"cifs",
"smbclient"
],
"author": "eFlex Systems",
"license": "MIT",
"bugs": {
"url": "https://github.com/ezPrint/node-samba-client/issues"
},
"homepage": "https://github.com/ezPrint/node-samba-client",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
| json |
package main
import (
"os"
)
func CreateTemp(dir, pattern string) (file *os.File, err error) {
/*
os.CreateTemp creates files with bad perms.
This function wraps around os.CreateTemp and sets perms
to 0666 (will get masked by whatever perms ./wvlist
is running with). This way, all files will be editably by
the admin without sudo.
*/
file, err = os.CreateTemp(dir, pattern)
if err != nil {
return
}
err = file.Chmod(0666)
return
}
| go |
A subscription to JoVE is required to view this content.
You will only be able to see the first 2 minutes.
The JoVE video player is compatible with HTML5 and Adobe Flash. Older browsers that do not support HTML5 and the H.264 video codec will still use a Flash-based video player. We recommend downloading the newest version of Flash here, but we support all versions 10 and above.
If that doesn't help, please let us know.
Please note that all translations are automatically generated.
In vergelijking met traditionele affiniteitschromatografie met behulp van eiwit A agarose kraal-verpakte kolommen, eiwit A membraan adsorbers kunnen aanzienlijk versnellen laboratorium-schaal isolatie van antilichamen en andere Fc fragment-expresserende eiwitten. Geschikte analyse- en kwantificeringsmethoden kunnen de eiwitverwerking verder versnellen, waardoor isolatie/karakterisering in één werkdag kan worden voltooid, in plaats van 20+ werkuren.
| english |
<filename>SevenZip/CPP/7zip/Compress/LzfseDecoder.cpp
// LzfseDecoder.cpp
/*
This code implements LZFSE data decompressing.
The code from "LZFSE compression library" was used.
2018 : <NAME> : BSD 3-clause License : the code in this file
2015-2017 : Apple Inc : BSD 3-clause License : original "LZFSE compression library" code
The code in the "LZFSE compression library" is licensed under the "BSD 3-clause License":
----
Copyright (c) 2015-2016, Apple Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder(s) nor the names of any contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----
*/
#include "StdAfx.h"
// #define SHOW_DEBUG_INFO
#ifdef SHOW_DEBUG_INFO
#include <stdio.h>
#endif
#ifdef SHOW_DEBUG_INFO
#define PRF(x) x
#else
#define PRF(x)
#endif
#include "../../../C/CpuArch.h"
#include "LzfseDecoder.h"
namespace NCompress {
namespace NLzfse {
static const Byte kSignature_LZFSE_V1 = 0x31; // '1'
static const Byte kSignature_LZFSE_V2 = 0x32; // '2'
HRESULT CDecoder::GetUInt32(UInt32 &val)
{
Byte b[4];
for (unsigned i = 0; i < 4; i++)
if (!m_InStream.ReadByte(b[i]))
return S_FALSE;
val = GetUi32(b);
return S_OK;
}
HRESULT CDecoder::DecodeUncompressed(UInt32 unpackSize)
{
PRF(printf("\nUncompressed %7u\n", unpackSize));
const unsigned kBufSize = 1 << 8;
Byte buf[kBufSize];
for (;;)
{
if (unpackSize == 0)
return S_OK;
UInt32 cur = unpackSize;
if (cur > kBufSize)
cur = kBufSize;
UInt32 cur2 = (UInt32)m_InStream.ReadBytes(buf, cur);
m_OutWindowStream.PutBytes(buf, cur2);
if (cur != cur2)
return S_FALSE;
}
}
HRESULT CDecoder::DecodeLzvn(UInt32 unpackSize)
{
UInt32 packSize;
RINOK(GetUInt32(packSize));
PRF(printf("\nLZVN %7u %7u", unpackSize, packSize));
UInt32 D = 0;
for (;;)
{
if (packSize == 0)
return S_FALSE;
Byte b;
if (!m_InStream.ReadByte(b))
return S_FALSE;
packSize--;
UInt32 M;
UInt32 L;
if (b >= 0xE0)
{
/*
large L - 11100000 LLLLLLLL <LITERALS>
small L - 1110LLLL <LITERALS>
large Rep - 11110000 MMMMMMMM
small Rep - 1111MMMM
*/
M = b & 0xF;
if (M == 0)
{
if (packSize == 0)
return S_FALSE;
Byte b1;
if (!m_InStream.ReadByte(b1))
return S_FALSE;
packSize--;
M = (UInt32)b1 + 16;
}
L = 0;
if ((b & 0x10) == 0)
{
// Literals only
L = M;
M = 0;
}
}
// ERROR codes
else if ((b & 0xF0) == 0x70) // 0111xxxx
return S_FALSE;
else if ((b & 0xF0) == 0xD0) // 1101xxxx
return S_FALSE;
else
{
if ((b & 0xE0) == 0xA0)
{
// medium - 101LLMMM DDDDDDMM DDDDDDDD <LITERALS>
if (packSize < 2)
return S_FALSE;
Byte b1;
if (!m_InStream.ReadByte(b1))
return S_FALSE;
packSize--;
Byte b2;
if (!m_InStream.ReadByte(b2))
return S_FALSE;
packSize--;
L = (((UInt32)b >> 3) & 3);
M = (((UInt32)b & 7) << 2) + (b1 & 3);
D = ((UInt32)b1 >> 2) + ((UInt32)b2 << 6);
}
else
{
L = (UInt32)b >> 6;
M = ((UInt32)b >> 3) & 7;
if ((b & 0x7) == 6)
{
// REP - LLMMM110 <LITERALS>
if (L == 0)
{
// spec
if (M == 0)
break; // EOS
if (M <= 2)
continue; // NOP
return S_FALSE; // UNDEFINED
}
}
else
{
if (packSize == 0)
return S_FALSE;
Byte b1;
if (!m_InStream.ReadByte(b1))
return S_FALSE;
packSize--;
// large - LLMMM111 DDDDDDDD DDDDDDDD <LITERALS>
// small - LLMMMDDD DDDDDDDD <LITERALS>
D = ((UInt32)b & 7);
if (D == 7)
{
if (packSize == 0)
return S_FALSE;
Byte b2;
if (!m_InStream.ReadByte(b2))
return S_FALSE;
packSize--;
D = b2;
}
D = (D << 8) + b1;
}
}
M += 3;
}
{
for (unsigned i = 0; i < L; i++)
{
if (packSize == 0 || unpackSize == 0)
return S_FALSE;
Byte b1;
if (!m_InStream.ReadByte(b1))
return S_FALSE;
packSize--;
m_OutWindowStream.PutByte(b1);
unpackSize--;
}
}
if (M != 0)
{
if (unpackSize == 0 || D == 0)
return S_FALSE;
unsigned cur = M;
if (cur > unpackSize)
cur = (unsigned)unpackSize;
if (!m_OutWindowStream.CopyBlock(D - 1, cur))
return S_FALSE;
unpackSize -= cur;
if (cur != M)
return S_FALSE;
}
}
if (unpackSize != 0)
return S_FALSE;
// LZVN encoder writes 7 additional zero bytes
if (packSize != 7)
return S_FALSE;
do
{
Byte b;
if (!m_InStream.ReadByte(b))
return S_FALSE;
packSize--;
if (b != 0)
return S_FALSE;
}
while (packSize != 0);
return S_OK;
}
// ---------- LZFSE ----------
#define MATCHES_PER_BLOCK 10000
#define LITERALS_PER_BLOCK (4 * MATCHES_PER_BLOCK)
#define NUM_L_SYMBOLS 20
#define NUM_M_SYMBOLS 20
#define NUM_D_SYMBOLS 64
#define NUM_LIT_SYMBOLS 256
#define NUM_SYMBOLS ( \
NUM_L_SYMBOLS + \
NUM_M_SYMBOLS + \
NUM_D_SYMBOLS + \
NUM_LIT_SYMBOLS)
#define NUM_L_STATES (1 << 6)
#define NUM_M_STATES (1 << 6)
#define NUM_D_STATES (1 << 8)
#define NUM_LIT_STATES (1 << 10)
typedef UInt32 CFseState;
static UInt32 SumFreqs(const UInt16 *freqs, unsigned num)
{
UInt32 sum = 0;
for (unsigned i = 0; i < num; i++)
sum += (UInt32)freqs[i];
return sum;
}
static MY_FORCE_INLINE unsigned CountZeroBits(UInt32 val, UInt32 mask)
{
for (unsigned i = 0;;)
{
if (val & mask)
return i;
i++;
mask >>= 1;
}
}
static MY_FORCE_INLINE void InitLitTable(const UInt16 *freqs, UInt32 *table)
{
for (unsigned i = 0; i < NUM_LIT_SYMBOLS; i++)
{
unsigned f = freqs[i];
if (f == 0)
continue;
// 0 < f <= numStates
// 0 <= k <= numStatesLog
// numStates <= (f<<k) < numStates * 2
// 0 < j0 <= f
// (f + j0) = next_power_of_2 for f
unsigned k = CountZeroBits(f, NUM_LIT_STATES);
unsigned j0 = (((unsigned)NUM_LIT_STATES * 2) >> k) - f;
/*
CEntry
{
Byte k;
Byte symbol;
UInt16 delta;
};
*/
UInt32 e = ((UInt32)i << 8) + k;
k += 16;
UInt32 d = e + ((UInt32)f << k) - ((UInt32)NUM_LIT_STATES << 16);
UInt32 step = (UInt32)1 << k;
unsigned j = 0;
do
{
*table++ = d;
d += step;
}
while (++j < j0);
e--;
step >>= 1;
for (j = j0; j < f; j++)
{
*table++ = e;
e += step;
}
}
}
typedef struct
{
Byte totalBits;
Byte extraBits;
UInt16 delta;
UInt32 vbase;
} CExtraEntry;
static void InitExtraDecoderTable(unsigned numStates,
unsigned numSymbols,
const UInt16 *freqs,
const Byte *vbits,
CExtraEntry *table)
{
UInt32 vbase = 0;
for (unsigned i = 0; i < numSymbols; i++)
{
unsigned f = freqs[i];
unsigned extraBits = vbits[i];
if (f != 0)
{
unsigned k = CountZeroBits(f, numStates);
unsigned j0 = ((2 * numStates) >> k) - f;
unsigned j = 0;
do
{
CExtraEntry *e = table++;
e->totalBits = (Byte)(k + extraBits);
e->extraBits = (Byte)extraBits;
e->delta = (UInt16)(((f + j) << k) - numStates);
e->vbase = vbase;
}
while (++j < j0);
f -= j0;
k--;
for (j = 0; j < f; j++)
{
CExtraEntry *e = table++;
e->totalBits = (Byte)(k + extraBits);
e->extraBits = (Byte)extraBits;
e->delta = (UInt16)(j << k);
e->vbase = vbase;
}
}
vbase += ((UInt32)1 << extraBits);
}
}
static const Byte k_L_extra[NUM_L_SYMBOLS] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 5, 8
};
static const Byte k_M_extra[NUM_M_SYMBOLS] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 8, 11
};
static const Byte k_D_extra[NUM_D_SYMBOLS] =
{
0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7,
8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11,
12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15
};
// ---------- CBitStream ----------
typedef struct
{
UInt32 accum;
unsigned numBits; // [0, 31] - Number of valid bits in (accum), other bits are 0
} CBitStream;
static MY_FORCE_INLINE int FseInStream_Init(CBitStream *s,
int n, // [-7, 0], (-n == number_of_unused_bits) in last byte
const Byte **pbuf)
{
*pbuf -= 4;
s->accum = GetUi32(*pbuf);
if (n)
{
s->numBits = n + 32;
if ((s->accum >> s->numBits) != 0)
return -1; // ERROR, encoder should have zeroed the upper bits
}
else
{
*pbuf += 1;
s->accum >>= 8;
s->numBits = 24;
}
return 0; // OK
}
// 0 <= numBits < 32
#define mask31(x, numBits) ((x) & (((UInt32)1 << (numBits)) - 1))
#define FseInStream_FLUSH \
{ unsigned nbits = (31 - in.numBits) & -8; \
if (nbits) { \
buf -= (nbits >> 3); \
if (buf < buf_check) return S_FALSE; \
UInt32 v = GetUi32(buf); \
in.accum = (in.accum << nbits) | mask31(v, nbits); \
in.numBits += nbits; }}
static MY_FORCE_INLINE UInt32 BitStream_Pull(CBitStream *s, unsigned numBits)
{
s->numBits -= numBits;
UInt32 v = s->accum >> s->numBits;
s->accum = mask31(s->accum, s->numBits);
return v;
}
#define DECODE_LIT(dest, pstate) { \
UInt32 e = lit_decoder[pstate]; \
pstate = (CFseState)((e >> 16) + BitStream_Pull(&in, e & 0xff)); \
dest = (Byte)(e >> 8); }
static MY_FORCE_INLINE UInt32 FseDecodeExtra(CFseState *pstate,
const CExtraEntry *table,
CBitStream *s)
{
const CExtraEntry *e = &table[*pstate];
UInt32 v = BitStream_Pull(s, e->totalBits);
unsigned extraBits = e->extraBits;
*pstate = (CFseState)(e->delta + (v >> extraBits));
return e->vbase + mask31(v, extraBits);
}
#define freqs_L (freqs)
#define freqs_M (freqs_L + NUM_L_SYMBOLS)
#define freqs_D (freqs_M + NUM_M_SYMBOLS)
#define freqs_LIT (freqs_D + NUM_D_SYMBOLS)
#define GET_BITS_64(v, offset, num, dest) dest = (UInt32) ((v >> (offset)) & ((1 << (num)) - 1));
#define GET_BITS_32(v, offset, num, dest) dest = (CFseState)((v >> (offset)) & ((1 << (num)) - 1));
HRESULT CDecoder::DecodeLzfse(UInt32 unpackSize, Byte version)
{
PRF(printf("\nLZFSE-%d %7u", version - '0', unpackSize));
UInt32 numLiterals;
UInt32 litPayloadSize;
Int32 literal_bits;
UInt32 lit_state_0;
UInt32 lit_state_1;
UInt32 lit_state_2;
UInt32 lit_state_3;
UInt32 numMatches;
UInt32 lmdPayloadSize;
Int32 lmd_bits;
CFseState l_state;
CFseState m_state;
CFseState d_state;
UInt16 freqs[NUM_SYMBOLS];
if (version == kSignature_LZFSE_V1)
{
return E_NOTIMPL;
// we need examples to test LZFSE-V1 code
/*
const unsigned k_v1_SubHeaderSize = 7 * 4 + 7 * 2;
const unsigned k_v1_HeaderSize = k_v1_SubHeaderSize + NUM_SYMBOLS * 2;
_buffer.AllocAtLeast(k_v1_HeaderSize);
if (m_InStream.ReadBytes(_buffer, k_v1_HeaderSize) != k_v1_HeaderSize)
return S_FALSE;
const Byte *buf = _buffer;
#define GET_32(offs, dest) dest = GetUi32(buf + offs)
#define GET_16(offs, dest) dest = GetUi16(buf + offs)
UInt32 payload_bytes;
GET_32(0, payload_bytes);
GET_32(4, numLiterals);
GET_32(8, numMatches);
GET_32(12, litPayloadSize);
GET_32(16, lmdPayloadSize);
if (litPayloadSize > (1 << 20) || lmdPayloadSize > (1 << 20))
return S_FALSE;
GET_32(20, literal_bits);
if (literal_bits < -7 || literal_bits > 0)
return S_FALSE;
GET_16(24, lit_state_0);
GET_16(26, lit_state_1);
GET_16(28, lit_state_2);
GET_16(30, lit_state_3);
GET_32(32, lmd_bits);
if (lmd_bits < -7 || lmd_bits > 0)
return S_FALSE;
GET_16(36, l_state);
GET_16(38, m_state);
GET_16(40, d_state);
for (unsigned i = 0; i < NUM_SYMBOLS; i++)
freqs[i] = GetUi16(buf + k_v1_SubHeaderSize + i * 2);
*/
}
else
{
UInt32 headerSize;
{
const unsigned kPreHeaderSize = 4 * 2; // signature and upackSize
const unsigned kHeaderSize = 8 * 3;
Byte temp[kHeaderSize];
if (m_InStream.ReadBytes(temp, kHeaderSize) != kHeaderSize)
return S_FALSE;
UInt64 v;
v = GetUi64(temp);
GET_BITS_64(v, 0, 20, numLiterals);
GET_BITS_64(v, 20, 20, litPayloadSize);
GET_BITS_64(v, 40, 20, numMatches);
GET_BITS_64(v, 60, 3 + 1, literal_bits); // (NumberOfUsedBits - 1)
literal_bits -= 7; // (-NumberOfUnusedBits)
if (literal_bits > 0)
return S_FALSE;
// GET_BITS_64(v, 63, 1, unused);
v = GetUi64(temp + 8);
GET_BITS_64(v, 0, 10, lit_state_0);
GET_BITS_64(v, 10, 10, lit_state_1);
GET_BITS_64(v, 20, 10, lit_state_2);
GET_BITS_64(v, 30, 10, lit_state_3);
GET_BITS_64(v, 40, 20, lmdPayloadSize);
GET_BITS_64(v, 60, 3 + 1, lmd_bits);
lmd_bits -= 7;
if (lmd_bits > 0)
return S_FALSE;
// GET_BITS_64(v, 63, 1, unused)
UInt32 v32 = GetUi32(temp + 20);
// (total header size in bytes; this does not
// correspond to a field in the uncompressed header version,
// but is required; we wouldn't know the size of the
// compresssed header otherwise.
GET_BITS_32(v32, 0, 10, l_state);
GET_BITS_32(v32, 10, 10, m_state);
GET_BITS_32(v32, 20, 10 + 2, d_state);
// GET_BITS_64(v, 62, 2, unused);
headerSize = GetUi32(temp + 16);
if (headerSize <= kPreHeaderSize + kHeaderSize)
return S_FALSE;
headerSize -= kPreHeaderSize + kHeaderSize;
}
// no freqs case is not allowed ?
// memset(freqs, 0, sizeof(freqs));
// if (headerSize != 0)
{
static const Byte numBitsTable[32] =
{
2, 3, 2, 5, 2, 3, 2, 8, 2, 3, 2, 5, 2, 3, 2, 14,
2, 3, 2, 5, 2, 3, 2, 8, 2, 3, 2, 5, 2, 3, 2, 14
};
static const Byte valueTable[32] =
{
0, 2, 1, 4, 0, 3, 1, 8, 0, 2, 1, 5, 0, 3, 1, 24,
0, 2, 1, 6, 0, 3, 1, 8, 0, 2, 1, 7, 0, 3, 1, 24
};
UInt32 accum = 0;
unsigned numBits = 0;
for (unsigned i = 0; i < NUM_SYMBOLS; i++)
{
while (numBits <= 14 && headerSize != 0)
{
Byte b;
if (!m_InStream.ReadByte(b))
return S_FALSE;
accum |= (UInt32)b << numBits;
numBits += 8;
headerSize--;
}
unsigned b = (unsigned)accum & 31;
unsigned n = numBitsTable[b];
if (numBits < n)
return S_FALSE;
numBits -= n;
UInt32 f = valueTable[b];
if (n >= 8)
f += ((accum >> 4) & (0x3ff >> (14 - n)));
accum >>= n;
freqs[i] = (UInt16)f;
}
if (numBits >= 8 || headerSize != 0)
return S_FALSE;
}
}
PRF(printf(" Literals=%6u Matches=%6u", numLiterals, numMatches));
if (numLiterals > LITERALS_PER_BLOCK
|| (numLiterals & 3) != 0
|| numMatches > MATCHES_PER_BLOCK
|| lit_state_0 >= NUM_LIT_STATES
|| lit_state_1 >= NUM_LIT_STATES
|| lit_state_2 >= NUM_LIT_STATES
|| lit_state_3 >= NUM_LIT_STATES
|| l_state >= NUM_L_STATES
|| m_state >= NUM_M_STATES
|| d_state >= NUM_D_STATES)
return S_FALSE;
// only full table is allowed ?
if ( SumFreqs(freqs_L, NUM_L_SYMBOLS) != NUM_L_STATES
|| SumFreqs(freqs_M, NUM_M_SYMBOLS) != NUM_M_STATES
|| SumFreqs(freqs_D, NUM_D_SYMBOLS) != NUM_D_STATES
|| SumFreqs(freqs_LIT, NUM_LIT_SYMBOLS) != NUM_LIT_STATES)
return S_FALSE;
const unsigned kPad = 16;
// ---------- Decode literals ----------
{
_literals.AllocAtLeast(LITERALS_PER_BLOCK + 16);
_buffer.AllocAtLeast(kPad + litPayloadSize);
memset(_buffer, 0, kPad);
if (m_InStream.ReadBytes(_buffer + kPad, litPayloadSize) != litPayloadSize)
return S_FALSE;
UInt32 lit_decoder[NUM_LIT_STATES];
InitLitTable(freqs_LIT, lit_decoder);
const Byte *buf_start = _buffer + kPad;
const Byte *buf_check = buf_start - 4;
const Byte *buf = buf_start + litPayloadSize;
CBitStream in;
if (FseInStream_Init(&in, literal_bits, &buf) != 0)
return S_FALSE;
Byte *lit = _literals;
const Byte *lit_limit = lit + numLiterals;
for (; lit < lit_limit; lit += 4)
{
FseInStream_FLUSH
DECODE_LIT (lit[0], lit_state_0);
DECODE_LIT (lit[1], lit_state_1);
FseInStream_FLUSH
DECODE_LIT (lit[2], lit_state_2);
DECODE_LIT (lit[3], lit_state_3);
}
if ((buf_start - buf) * 8 != (int)in.numBits)
return S_FALSE;
}
// ---------- Decode LMD ----------
_buffer.AllocAtLeast(kPad + lmdPayloadSize);
memset(_buffer, 0, kPad);
if (m_InStream.ReadBytes(_buffer + kPad, lmdPayloadSize) != lmdPayloadSize)
return S_FALSE;
CExtraEntry l_decoder[NUM_L_STATES];
CExtraEntry m_decoder[NUM_M_STATES];
CExtraEntry d_decoder[NUM_D_STATES];
InitExtraDecoderTable(NUM_L_STATES, NUM_L_SYMBOLS, freqs_L, k_L_extra, l_decoder);
InitExtraDecoderTable(NUM_M_STATES, NUM_M_SYMBOLS, freqs_M, k_M_extra, m_decoder);
InitExtraDecoderTable(NUM_D_STATES, NUM_D_SYMBOLS, freqs_D, k_D_extra, d_decoder);
const Byte *buf_start = _buffer + kPad;
const Byte *buf_check = buf_start - 4;
const Byte *buf = buf_start + lmdPayloadSize;
CBitStream in;
if (FseInStream_Init(&in, lmd_bits, &buf))
return S_FALSE;
const Byte *lit = _literals;
const Byte *lit_limit = lit + numLiterals;
UInt32 D = 0;
for (;;)
{
if (numMatches == 0)
break;
numMatches--;
FseInStream_FLUSH
unsigned L = (unsigned)FseDecodeExtra(&l_state, l_decoder, &in);
FseInStream_FLUSH
unsigned M = (unsigned)FseDecodeExtra(&m_state, m_decoder, &in);
FseInStream_FLUSH
{
UInt32 new_D = FseDecodeExtra(&d_state, d_decoder, &in);
if (new_D)
D = new_D;
}
if (L != 0)
{
if (L > (size_t)(lit_limit - lit))
return S_FALSE;
unsigned cur = L;
if (cur > unpackSize)
cur = (unsigned)unpackSize;
m_OutWindowStream.PutBytes(lit, cur);
unpackSize -= cur;
lit += cur;
if (cur != L)
return S_FALSE;
}
if (M != 0)
{
if (unpackSize == 0 || D == 0)
return S_FALSE;
unsigned cur = M;
if (cur > unpackSize)
cur = (unsigned)unpackSize;
if (!m_OutWindowStream.CopyBlock(D - 1, cur))
return S_FALSE;
unpackSize -= cur;
if (cur != M)
return S_FALSE;
}
}
if (unpackSize != 0)
return S_FALSE;
// LZFSE encoder writes 8 additional zero bytes before LMD payload
// We test it:
if ((buf - buf_start) * 8 + in.numBits != 64)
return S_FALSE;
if (GetUi64(buf_start) != 0)
return S_FALSE;
return S_OK;
}
STDMETHODIMP CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream *outStream,
const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress)
{
PRF(printf("\n\nLzfseDecoder %7u %7u\n", (unsigned)*outSize, (unsigned)*inSize));
const UInt32 kLzfseDictSize = 1 << 18;
if (!m_OutWindowStream.Create(kLzfseDictSize))
return E_OUTOFMEMORY;
if (!m_InStream.Create(1 << 18))
return E_OUTOFMEMORY;
m_OutWindowStream.SetStream(outStream);
m_OutWindowStream.Init(false);
m_InStream.SetStream(inStream);
m_InStream.Init();
CCoderReleaser coderReleaser(this);
UInt64 prevOut = 0;
UInt64 prevIn = 0;
for (;;)
{
const UInt64 pos = m_OutWindowStream.GetProcessedSize();
const UInt64 packPos = m_InStream.GetProcessedSize();
if (progress && ((pos - prevOut) >= (1 << 22) || (packPos - prevIn) >= (1 << 22)))
{
RINOK(progress->SetRatioInfo(&packPos, &pos));
prevIn = packPos;
prevOut = pos;
}
const UInt64 rem = *outSize - pos;
UInt32 v;
RINOK(GetUInt32(v))
if ((v & 0xFFFFFF) != 0x787662) // bvx
return S_FALSE;
v >>= 24;
if (v == 0x24) // '$', end of stream
break;
UInt32 unpackSize;
RINOK(GetUInt32(unpackSize));
UInt32 cur = unpackSize;
if (cur > rem)
cur = (UInt32)rem;
unpackSize -= cur;
HRESULT res;
if (v == kSignature_LZFSE_V1 || v == kSignature_LZFSE_V2)
res = DecodeLzfse(cur, (Byte)v);
else if (v == 0x6E) // 'n'
res = DecodeLzvn(cur);
else if (v == 0x2D) // '-'
res = DecodeUncompressed(cur);
else
return E_NOTIMPL;
if (res != S_OK)
return res;
if (unpackSize != 0)
return S_FALSE;
}
coderReleaser.NeedFlush = false;
HRESULT res = m_OutWindowStream.Flush();
if (res == S_OK)
if (*inSize != m_InStream.GetProcessedSize()
|| *outSize != m_OutWindowStream.GetProcessedSize())
res = S_FALSE;
return res;
}
STDMETHODIMP CDecoder::Code(ISequentialInStream *inStream, ISequentialOutStream *outStream,
const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress)
{
try { return CodeReal(inStream, outStream, inSize, outSize, progress); }
catch(const CInBufferException &e) { return e.ErrorCode; }
catch(const CLzOutWindowException &e) { return e.ErrorCode; }
catch(...) { return E_OUTOFMEMORY; }
// catch(...) { return S_FALSE; }
}
}}
| cpp |
The official website lists some bundled offers available with the Galaxy Tab A 9.7 such as free 12-week subscription to the New York Times, a free ebook on Kindle, and up to 100GB of free storage on OneDrive for two years. The tablet comes bundled with S Pen and supports calligraphy among other features.
For specifications, the Galaxy Tab A 9.7 features almost identical specifications as the Samsung Galaxy Tab A, which was launched last month. The biggest difference however is the screen size - the Galaxy Tab A 9.7 features a 9.7-inch TFT display with a resolution of 1024x768 pixels. The Galaxy Tab A, on the other hand, features an 8-inch TFT display with a screen resolution of 1024x768 pixels.
Another notable difference is that the Galaxy Tab A 9.7 supports Wi-Fi only while the Galaxy Tab A supported 4G LTE.
Rest of the specifications of the Galaxy Tab A 9.7 tablet include a 1.2GHz quad-core processor coupled with 2GB of RAM. There is 16GB of built-in storage, which is further expandable via microSD card (up to 128GB). It packs a 6000mAh battery with no word on battery life. Notably, the Galaxy Tab A was backed by a 4200mAh battery.
The Galaxy Tab A 9.7 tablet sports a 5-megapixel rear autofocus camera and 2-megapixel front camera. Apart from Wi-Fi 802.11 a/b/g/n, the tablet supports Bluetooth, NFC, and Micro-USB. The Galaxy Tab A 9.7 measures 242.5x166.8x7.5mm and weighs 487 grams.
Samsung, earlier this month, launched two new Galaxy S2 tablets featuring 8-inch and 9.7-inch displays. Both the Galaxy Tab S2 tablets were touted as the company's "thinnest and lightest" tablet of the size. At just 5.6mm thickness, both the Galaxy Tab S2 tablets were slimmer than Apple's iPad Air 2, which measures at 6.1mm. Another notable feature of the new Galaxy Tab S2 tablets is it comes with built-in touch-enabled fingerprint scanner.
Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
| english |
Every two weeks or so, Redd makes his appearance in Animal Crossing: New Horizons to sell furniture and art. However, Redd is not the most trustworthy villager out there, since he has a reputation for selling fake art pieces to players. These fake art pieces cannot be used for anything except decoration, since they cannot be sold at Nook's Cranny and Blathers will not accept them at the Museum either.
However, it can be rather tricky to differentiate between real and fake paintings in New Horizons. This article will act as a guide to help players differentiate between the two to avoid getting duped by Redd.
Redd is infamous for his shrewd ways, wherein he often tricks a player into buying fake paintings under the guise of real ones. He charges 4,980 Bells per painting, so buying a fake one is obviously a huge loss for the player, since they cannot use it for any purpose other than decoration.
In earlier iterations of the Animal Crossing franchise, the differences between the real and fake paintings would be quite glaring, thereby making them easy to spot for the players. However, in New Horizons, Redd seems to have stepped up his game, making the differences extremely subtle and consequently more difficult to spot.
All the paintings that Redd sells on his boat are replicas of famous real-life paintings and can therefore be compared with the actual paintings to look for differences. If the painting being sold by Redd differs even slightly from the original painting, then players can be sure that it's a fake.
Redd usually appears with four paintings for sale every time he shows up. However, there is no guarantee about the number of genuine paintings that he will be carrying. There can be days when Redd is not carrying even a single genuine painting with him, so players must be quite careful. The only painting that is always genuine is the Warm Painting, which is the game's representation of The Clothed Maja by Spanish painter Francisco de Goya.
Players can only buy one painting from Redd per visit, so it is extremely important for them to know how to differentiate between real and fake paintings. | english |
{
"id": 97844,
"name": "New Twitter - Switch Top Bar to Black",
"description": "Switch Top Bar on New twitter back to Black",
"user": {
"id": 256300,
"name": "sadekhm",
"email": "redacted",
"paypal_email": null,
"homepage": "http://ihisham.com/",
"about": null,
"license": "ccbysa"
},
"updated": "2014-02-04T13:02:07.000Z",
"weekly_install_count": 0,
"total_install_count": 1408,
"rating": null,
"after_screenshot_name": "https://userstyles.org/style_screenshots/97844_after.jpeg?r=1586764881",
"obsoleting_style_id": null,
"obsoleting_style_name": null,
"obsolete": 0,
"admin_delete_reason_id": null,
"obsoletion_message": null,
"screenshots": null,
"license": null,
"created": "2014-02-03T21:36:21.000Z",
"category": "site",
"raw_subcategory": "twitter",
"subcategory": "twitter",
"additional_info": null,
"style_tags": [],
"css": "@-moz-document url-prefix(\"http://twitter.com\"), url-prefix(\"https://twitter.com\") {\r\n.global-nav-inner{background:#111 !important;}\r\n.bird-topbar-etched {color:#eee !important;}\r\n.pushing-state .pushstate-spinner{background-image:url(https://dl.dropboxusercontent.com/u/203328/loader.gif) !important;}\r\n#global-actions > li > a {border-bottom: 4px solid #eee !important;}\r\n#global-actions > li > a:hover, #global-actions > li > a:focus,.nav.right-actions>li>button:hover, .nav.right-actions>li>a:hover, .nav.right-actions>li>button:focus, .nav.right-actions>li>a:focus {color:#eee !important;}\r\n}",
"discussions": [],
"discussionsCount": 0,
"commentsCount": 0,
"userjs_url": "/styles/userjs/97844/new-twitter-switch-top-bar-to-black.user.js",
"style_settings": []
} | json |
Amazon is in the process of a curious hire – a Managing Editor, News – to help bring “breaking crime news alerts” to owners of Ring’s home security gadgets.
It’s odd because it’s arguably the first time a security firm has required someone to fill this position within its ranks. But as Nieman Lab director Joshua Benton infers, there’s probably something more insidious at play.
While the Amazon-owned company hasn’t explained exactly how this layer of news will fit into its services, it’s likely that Ring will surface local crime alerts in its Neighbors mobile app, which is already available and allows people to post updates about suspicious activity around them.
The trouble with a security company getting into the crime news business is that it could exacerbate the problem of people growing fearful and paranoid about threats in their area.
To illustrate that, Benton points to charts that show how crime has dropped significantly across the US over the past quarter century, as well as how few people in the country believe that to be true. The numbers tell us that local media continues to to follow the classic “if it bleeds, it leads” ploy to build and retain its audience – even when crime isn’t as big a problem as people think. For more on this, the BBC has a great podcast episode about how fear works in the human mind on its show, The Inquiry.
It’s all too obvious that if Ring can convince people their neighborhoods aren’t safe, they’ll buy more of the company’s products and stick to its ecosystem of services. As Benton explains:
Is it possible that real journalists can make the product better and less paranoid? Sure, it’s possible. But the reality is that “breaking crime news alerts” are not something the vast majority of people need — especially if “two Greenpeace volunteers stood on my porch for 30 seconds” is the bar we’re talking about. It’s not actionable intelligence — it’s puffing a little more air into an atmosphere of fear.
Ultimately, one can only hope that Ring plays this carefully and cautiously, so as to serve its customers better, and not frighten them into staying indoors and watching feeds from their front door cameras.
Find Benton’s article, and more data that illustrates why this is a bad idea, over at Nieman Lab.
TNW Conference 2019 is coming! Check out our glorious new location, inspiring line-up of speakers and activities, and how to be a part of this annual tech extravaganza by clicking here.
Get the most important tech news in your inbox each week.
| english |
The Punjab and Haryana high court bench of justice GS Sandhawalia and justice Vikas Suri observed that the state has proceeded in a leisured manner as if it is placed at a better pedestal than the ordinary litigant and, therefore, can seek some preferential right or treatment for condoning the delay.
The Punjab and Haryana high court (HC) has dismissed an appeal against the acquittal of a person in a drugs case, filed by Punjab after 1,600 days. The statutory requirement for the same as per Code of Criminal Procedure (CrPC) is two months of the acquittal order passed by a trial court.
The HC bench of justice GS Sandhawalia and justice Vikas Suri observed that the state has proceeded in a leisured manner as if it is placed at a better pedestal than the ordinary litigant and, therefore, can seek some preferential right or treatment for condoning the delay. “However, the precedents as such do not support that any different formula is to be adopted in the cases of the state,” the bench asserted.
The judgment of acquittal was passed by special court, Bathinda on April 18, 2015 in an FIR registered on May 2 of 2007 in a drugs seizure case against one Natha Singh.
The government’s explanation before the HC was that an application for summoning of three witnesses was dismissed by the trial court which was challenged before HC. However, in the meantime, the case was decided by the trial court and the person was acquitted. The appeal on the issue of summoning of three witnesses was withdrawn from HC in September 2017 since the same had become infructuous. The file was then put up before the law officer in which in December 2017 it was opined that it was a fit case to file an appeal. In February 2018, the file from advocate general office to Bathinda district attorney was sent. The matter then went to Bathinda senior superintendent of police for grant of sanction, which was finally obtained in November 2018. The sanction letter was then sent to advocate general office in November 2018 and in July 2019, the matter was put up for vetting and appeal filed in February 2020. It was also claimed that action had been taken against the delinquent official who kept the file pending with him for seven months between July 2019 and February 2020.
The court, however, observed that the appeal has been filed after a delay of 1,671 days. The court disagreed with the reasons given for justifying delay in filing.
“. . the reading of the dates would go on to show that the delay has occurred not at one point of time, but on several occasions,” the bench observed adding that if the state was interested to prosecute the respondent, there was no need to file the criminal revision before high court, which was eventually dismissed as withdrawn.
In spite of obtaining an opinion in December 2017, the sanction could not be obtained till November 2018 and after receiving the same, the case was put up for vetting only in July 2019. “Thus, now to fall back that there was delay on the part of one delinquent official for 7 months when the appeal was filed in February, 2020 would not make out sufficient cause to condone the inordinate delay,” the bench recorded adding that court was of the opinion that there is no reason to condone the inordinate delay and dismissed the plea. | english |
<gh_stars>1-10
{
"variants": {
"half=lower": { "model": "flonters:block/potted_blue_tallflower_bottom" },
"half=upper": { "model": "flonters:block/potted_blue_tallflower_top" }
}
}
| json |
నక్షత్ర గుర్తులేని ప్రశ్నలు - వ్రాతపూర్వక సమాధానములు
DGTD, New Delhi for registration to set up a Hybrid seeds processing plant at Kumnol with a capacity of 10,000 TPA and with a capital cost of Rs. 425 lakhs only and the proposals of Commissioner of Industries have since been received on 19-9-1990 and are being processed.
Thermal Power Station at Palvancha
2197 Q-Sarvasri V. Venkateswara Rao, D.Sripada Rao and J. Prasad Rao: Will be Chief Minister be pleased to state :
(a) whether there is any proposal to expand the Thermal Power Station at Palvancha; and
(b) if so, the details of the expansion scheme?
A-(a) Yes Sir.
(b) A project report at an estimated cost of Rs. 657.98 Crores for installation of two units of 210 MW capacity each under stage V of Kothagudem Thermal Power Station. Extention was submitted to Central Electricity Authority in 6/89 for according techno-economic clearance. The Department of Coal, Govt. of India was also requested for sanction of coal linkage of 2.2 Million Tonnes from the Singareni Colleries Company Ltd. Coal linkage from Department of Coal is awaited.
Mis-Appropriation by the principal of Nursing College, K.G. Hospital Visakhapatnam
2469 Q-Sarvasri B.Venkateswara Rao, P.Nageswara Rao, C.Vittal Reddy, Md. Rajab Ali, N. Raghava Reddy, D.Chinnamallaiah, A.Madhava Reddy and Ch. Vidyasagar Rao:- will the Chief Minister be pleased to state:
(a) whether it is a fact that Smt. Karimunnisa, Principal of Nursing College, K.G.Hospital, Visakhapatnam has mis-approprited Rs. 1,62,000/ -; and
(b) whether any enquiry is conducted in the matter and the report thereor?
| english |
{
"id": "conceal",
"symbol": "ccx",
"name": "Conceal",
"platforms": {},
"hashing_algorithm": "Cryptonight Conceal",
"categories": [
"Finance / Banking",
"Privacy Coins"
],
"description": {
"en": "Conceal Network is a decentralized banking platform with privacy protected cryptocurrency and encrypted messenger."
},
"country_origin": "",
"genesis_date": "2018-05-23",
"url": "https://conceal.network/",
"explorers": [
"https://explorer.conceal.network/"
],
"twitter": "ConcealNetwork",
"facebook": "concealnetwork",
"telegram": "concealnetworkusers",
"reddit": "ConcealNetwork/",
"github_org": "ConcealNetwork"
} | json |
"Galidor" is the trade name of the drug, which in international practice is called "Benzyclan". The drug "Galidor", the instruction explains, belongs to the group of antispasmodics. The drug reduces the motor activity of cells within the organs, lowers their tone. It has a calming (sedative) effect, relieves spasms and pain.
The drug "Galidor" is available in three forms: tablets, solution for intravenous and intramuscular injection.
The active substance of the drug is bicyclic, from which the international name of the drug has occurred. As additional substances in tablets are used anhydrous colloidal silicon dioxide, carbomer 934P, magnesium stearate, starch, talc. In the ampoules of the preparation "Halidor", the instruction explains that besides sodium biciclane there is sodium chloride and water.
Who recommends the medicine "Galidor"? The instruction gives clear instructions that the drug is intended for treatment:
- Disorders of cerebral circulation ;
- Ischemic disease;
- Cardiovascular diseases of the eyes;
- Diseases associated with circulatory disorders in the arteries;
- Ulcers and other gastrointestinal diseases associated with the occurrence of spasms;
- After operations on the stomach, intestines, kidneys.
Tablets "Galidor" are indicated for gastritis, enteritis, dyskinesia of the esophagus, duodenum. In urology, the tablets "Galidor" are prescribed for the removal of spasms of the urinary tract.
The medicine has proven itself in the treatment of all these diseases. However, this does not mean that the drug can be treated without the appointment of a doctor. There is a whole group of people who are categorically contraindicated in taking Halidor. These include anyone who suffers from any form of kidney failure, a violation of liver function, pulmonary insufficiency. It is established that the drug "Galidor" adversely affects the development of the fetus, so it can not be used by pregnant and lactating women. To the heart, especially those suffering from ventricular tachycardia , the preparation "Galidor" is contraindicated. Instruction says that it is not recommended for children under 18 years. Persons whose work is associated with increased concentration of attention should carefully use the drug "Galidor": tablets or injections can cause dizziness, disrupt concentration.
The doctor should be very competent in the appointment of the drug "Galidor". Injections or tablets can cause an overdose, which can greatly affect your health. Excessive reception of the drug can cause not only dizziness and sleep disorder, but also hallucinations, epileptic seizures, not to mention allergies. If the first symptoms of an overdose of the drug "Galidor" are noticed, the patient should be urgently sent to a hospital. Only in a hospital can you remove intoxication.
Despite the fact that the drug "Galidor" is good for all of the above diseases, its purpose should be treated very carefully. It is known that in combination with narcotic or sedative substances, the remedy "Galidor" very strongly depresses the nervous system, can cause attacks of drowsiness or epileptic seizures. If you combine the drug with sympathomimetics, then tachycardia can occur, and a single taking of the drug "Galidor" and diuretics can lead to hypokalemia.
It should be borne in mind that in case of using the drug for more than two months in a row, it is necessary to carry out blood tests to track the number of formed blood cells.
The drug "Galidor" is produced in Hungary. His counterparts are the other Hungarian drugs: "Benzyclan" and "Benzyclan fumarate".
How is this medicine consumed? The dosage is determined by the doctor. However, it is worth remembering that the daily dose of it should not exceed 400 mg. Most often, tablets are taken during the month for 1 or 2 per day. Then reduce the dose by half: a sharp drug cancellation can cause negative consequences. | english |
<gh_stars>1-10
/* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law 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.
*/
/*
* $Created by: <NAME> (email: <EMAIL>) 2018-06-20
*/
#include "../core/utilities/CheckData.h"
#include "TNormalize.h"
namespace nts { // namespace nts(NiuTrans.Tensor)
/*
case 1: normalized the data with normal distribution
For an input x, y = a * (x-mean)/sqrt(variance+\epsilon) + b.
where a and b are the scalar and bias respectively,
and \epsilon is the adjustment parameter.
*/
bool TestNormalize1()
{
/* a source tensor of size (2, 3) */
int sOrder = 2;
int * sDimSize = new int[sOrder];
sDimSize[0] = 2;
sDimSize[1] = 3;
int sUnitNum = 1;
for (int i = 0; i < sOrder; i++)
sUnitNum *= sDimSize[i];
/* a target tensor of size (2, 3) */
int tOrder = 2;
int * tDimSize = new int[tOrder];
tDimSize[0] = 2;
tDimSize[1] = 3;
int tUnitNum = 1;
for (int i = 0; i < tOrder; i++)
tUnitNum *= tDimSize[i];
/* a mean tensor of size (3) */
int meanOrder = 1;
int * meanDimSize = new int[meanOrder];
meanDimSize[0] = 3;
int meanUnitNum = 1;
for (int i = 0; i < meanOrder; i++)
meanUnitNum *= meanDimSize[i];
/* a variance tensor of size (3) */
int varOrder = 1;
int * varDimSize = new int[varOrder];
varDimSize[0] = 3;
int varUnitNum = 1;
for (int i = 0; i < varOrder; i++)
varUnitNum *= varDimSize[i];
/* a scalar tensor of size (2, 3) */
int aOrder = 2;
int * aDimSize = new int[aOrder];
aDimSize[0] = 2;
aDimSize[1] = 3;
int aUnitNum = 1;
for (int i = 0; i < aOrder; i++)
aUnitNum *= aDimSize[i];
/* a bias tensor of size (2, 3) */
int bOrder = 2;
int * bDimSize = new int[bOrder];
bDimSize[0] = 2;
bDimSize[1] = 3;
int bUnitNum = 1;
for (int i = 0; i < bOrder; i++)
bUnitNum *= bDimSize[i];
DTYPE sData[2][3] = { {1.0F, 2.0F, 3.0F},
{1.5F, 2.5F, 3.5F} };
DTYPE meanData[3] = {1.0F, 1.5F, 2.0F};
DTYPE varData[3] = {1.0F, 1.0F, 4.0F};
DTYPE aData[2][3] = { {1.0F, 1.0F, 1.0F},
{1.0F, 1.0F, 1.0F} };
DTYPE answer[2][3] = { {0.0F, 0.5F, 0.5F},
{0.5F, 1.0F, 0.75F} };
/* CPU test */
bool cpuTest = true;
/* create tensors */
XTensor * s = NewTensorV2(sOrder, sDimSize);
XTensor * t = NewTensorV2(tOrder, tDimSize);
XTensor * mean = NewTensorV2(meanOrder, meanDimSize);
XTensor * var = NewTensorV2(varOrder, varDimSize);
XTensor * a = NewTensorV2(aOrder, aDimSize);
XTensor * b = NewTensorV2(bOrder, bDimSize);
XTensor * tMe = NewTensorV2(sOrder, sDimSize);
XTensor tUser;
/* initialize variables */
s->SetData(sData, sUnitNum);
tMe->SetData(sData, sUnitNum);
mean->SetData(meanData, meanUnitNum);
var->SetData(varData, varUnitNum);
a->SetData(aData, aUnitNum);
b->SetZeroAll();
t->SetZeroAll();
/* call normalize function */
_Normalize(s, t, 0, mean, var, a, b, 0.0F);
_NormalizeMe(tMe, 0, mean, var, a, b, 0.0F);
tUser = Normalize(*s, 0, *mean, *var, *a, *b, 0.0F);
/* check results */
cpuTest = _CheckData(t, answer, tUnitNum, 1e-4F)
&& _CheckData(tMe, answer, tUnitNum, 1e-4F) && _CheckData(&tUser, answer, tUnitNum, 1e-4F);
#ifdef USE_CUDA
/* GPU test */
bool gpuTest = true;
/* create tensors */
XTensor * sGPU = NewTensorV2(sOrder, sDimSize, X_FLOAT, 1.0F, 0);
XTensor * meanGPU = NewTensorV2(meanOrder, meanDimSize, X_FLOAT, 1.0F, 0);
XTensor * varGPU = NewTensorV2(varOrder, varDimSize, X_FLOAT, 1.0F, 0);
XTensor * aGPU = NewTensorV2(aOrder, aDimSize, X_FLOAT, 1.0F, 0);
XTensor * bGPU = NewTensorV2(bOrder, bDimSize, X_FLOAT, 1.0F, 0);
XTensor * tGPU = NewTensorV2(tOrder, tDimSize, X_FLOAT, 1.0F, 0);
XTensor * tMeGPU = NewTensorV2(sOrder, sDimSize, X_FLOAT, 1.0F, 0);
XTensor tUserGPU;
/* initialize variables */
sGPU->SetData(sData, sUnitNum);
tMeGPU->SetData(sData, sUnitNum);
meanGPU->SetData(meanData, meanUnitNum);
varGPU->SetData(varData, varUnitNum);
aGPU->SetData(aData, aUnitNum);
bGPU->SetZeroAll();
tGPU->SetZeroAll();
/* call Normalize function */
_Normalize(sGPU, tGPU, 0, meanGPU, varGPU, aGPU, bGPU, 0.0F);
_NormalizeMe(tMeGPU, 0, meanGPU, varGPU, aGPU, bGPU, 0.0F);
tUserGPU = Normalize(*sGPU, 0, *meanGPU, *varGPU, *aGPU, *bGPU, 0.0F);
/* check results */
gpuTest = _CheckData(tGPU, answer, tUnitNum, 1e-4F)
&& _CheckData(tMeGPU, answer, tUnitNum, 1e-4F) && _CheckData(&tUserGPU, answer, tUnitNum, 1e-4F);
/* destroy variables */
delete s;
delete tMe;
delete t;
delete mean;
delete var;
delete a;
delete b;
delete sGPU;
delete tMeGPU;
delete tGPU;
delete meanGPU;
delete varGPU;
delete aGPU;
delete bGPU;
delete[] sDimSize;
delete[] tDimSize;
delete[] meanDimSize;
delete[] varDimSize;
delete[] aDimSize;
delete[] bDimSize;
return cpuTest && gpuTest;
#else
/* destroy variables */
delete s;
delete tMe;
delete t;
delete mean;
delete var;
delete a;
delete b;
delete[] sDimSize;
delete[] tDimSize;
delete[] meanDimSize;
delete[] varDimSize;
delete[] aDimSize;
delete[] bDimSize;
return cpuTest;
#endif // USE_CUDA
}
/* other cases */
/*
TODO!!
*/
/* test for Normalize Function */
bool TestNormalize()
{
XPRINT(0, stdout, "[TEST NORMALIZE] normalized the data with normal distribution \n");
bool returnFlag = true, caseFlag = true;
/* case 1 test */
caseFlag = TestNormalize1();
if (!caseFlag) {
returnFlag = false;
XPRINT(0, stdout, ">> case 1 failed!\n");
}
else
XPRINT(0, stdout, ">> case 1 passed!\n");
/* other cases test */
/*
TODO!!
*/
if (returnFlag) {
XPRINT(0, stdout, ">> All Passed!\n");
}
else
XPRINT(0, stdout, ">> Failed!\n");
XPRINT(0, stdout, "\n");
return returnFlag;
}
} // namespace nts(NiuTrans.Tensor)
| cpp |
<gh_stars>1000+
{
"name": "CocoaSSDP",
"version": "0.1.0",
"summary": "Simple Service Discovery Protocol client library for Mac and iOS.",
"homepage": "https://github.com/sboisson/CocoaSSDP",
"description": " Simple Service Discovery Protocol client library for Mac and iOS.\n SSDP allow client app to discover devices on local network (ex: UPnP, DLNA..)\n",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/sboisson/CocoaSSDP.git",
"tag": "0.1.0"
},
"platforms": {
"ios": "5.0",
"osx": "10.7"
},
"requires_arc": true,
"source_files": "Classes",
"dependencies": {
"CocoaAsyncSocket": [
]
}
}
| json |
<filename>dist/channels/johnny_rebel_.json
{"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":{"johnny_rebel_":{"title":"Johnny_Rebel_","channel_id":52902204,"link":"http://twitch.tv/johnny_rebel_","desc":null,"plans":{"$4.99":"156340","$9.99":"156342","$24.99":"156343"},"id":"johnny_rebel_","first_seen":"2017-07-02 21:25:05","badge":null,"badge_starting":null,"badge_3m":null,"badge_6m":null,"badge_12m":null,"badge_24m":null,"badges":null,"bits_badges":null,"cheermote1":null,"cheermote100":null,"cheermote1000":null,"cheermote5000":null,"cheermote10000":null,"set":156340,"emotes":[{"code":"johnny18Jrsalute","image_id":226701,"set":156340},{"code":"johnny18Jasper","image_id":255984,"set":156343}]}}}
| json |
The most obvious indicator for the health of the economy – the gross domestic product (GDP) – slowed to its lowest growth in four years during the first quarter of 2013-14 or 4.4% on a year-on-year (YoY) basis.
The rupee has plummeted – in some ways so have the adjectives to describe its fate. It has dropped over 21% since the start of FY14 to hit a low of 68.3 against the dollar in the last week of August. The arrival of a new Reserve Bank of India Governor in the form of Raghuram Rajan appears to have calmed the foreign exchange markets somewhat, though nobody knows.
The stock markets have been doing their own Yo-Yo. The Bombay Stock Exchange's benchmark index, the Sensex, has declined 3% in the last three months.
The fall in the markets and the rupee are the reflections of loss of foreign investor confidence in the India story and is worrisome since the country runs a current account deficit.
That’s the bad news. As a result of this and more, most folks, from business people to outbound tourists, are feeling miserable. But we know that. Let’s instead look at what could be going right. We found that several positive trends seem to be going unnoticed – the drop in headline inflation figures, turnaround in foreign trade, stable credit offtake, positive potential impact of a good monsoon and even a potentially positive impact on exports from the currency drop.
While these trends certainly do not indicate an end to India’s problems, they do, however, reflect some improvement in aspects of the economy that has been worrisome for some time. Let’s plunge into them.
#1.Inflation is relatively tame: India’s headline inflation, measured by the wholesale price index (WPI), has improved significantly over time. For the year FY14 so far (April-July), WPI inflation is at 5% with the highest increase seen in July 2013 at a manageable 5.8%YoY. In fact, for FY14 so far, inflation has been subdued at sub-5% levels in three of the four months for which data is available. In comparison, for FY13, inflation averaged 7.4% YoY, and in July 2012, inflation was a still a high 7.5%.
#2.Foreign trade figures are turning encouraging: India’s merchandise foreign trade numbers are showing signs of good health, going by the latest data available. Exports, which declined 1.8% YoY in FY13, have grown 2% in FY14. Figures for July 2013 are particularly encouraging, showing a growth of 11.6%. It must be acknowledged that this is just one month’s spike in export figures, so it is a bit of a wait-and-watch as to which way exports are headed next.
Nevertheless, the figures, along with the small increase in FY14 so far, are an improvement over the past year. In fact, with the sharp rupee depreciation, exports could stand to benefit. India’s exports have been hit by the prolonged global slowdown and this factor could lend some support. However, the jury is still out on whether exports can actually benefit since a number of exported items have an import component that can cancel out the currency impact.
What is clear is that imported goods and services now cost more than even a month ago. After already shrinking in FY13, imports showed a small increase in the April-June period of FY14, a trend that reversed sharply in July with a 6% decline.
And this is not all. With import figures still declining in comparison with the previous year, the trade deficit has actually shrunk in July 2013 to $12.3 billion from $17.5 billion during July 2012, the first time during FY14 so far. This is good news for an economy that has a large current account deficit.
#3.Credit growth is stable: Credit offtake, or loans given out by banks, increased 16.6% YoY (for the latest fortnightly data available as on August 9, 2013) despite the economy slowing down. This is a potentially good sign, if it continues, since it suggests a step up in consumption and investment demand. This is the highest credit offtake growth seen in the financial year so far and also at par with growth in credit during the period in 2012. So far, credit growth in FY14 has ranged between 13% and 15%, which is lesser than around 17% and 19% during FY13.
#4.Ample rainfall augurs a good agricultural harvest: In a country still dependent on South-West monsoons for a good crop, ample rains so far augur well. For the season so far, 22 of the 36 meteorological sub-divisions have reported normal rains. Rains for the country as a whole are 11% in excess of normal for the season till now.
While agriculture output depends on the spatial distribution of rainfall as much as on the quantity, the overall picture does indicate more positive news than negative. With a majority of India’s workforce employed in agriculture and related sectors and around a fifth of GDP derived from it, this is a positive for incomes and growth in Q3 and Q4 of 2013-14.
#5.Foreign Direct Investment (FDI) inflows improve: India’s total FDI inflows for Q1 of FY14 so far are up by 18% YoY to $9 billion, indicating an uptick in long-term investor sentiment potentially on account of the fact that policy was relaxed during the second half of FY13. With the rupee depreciating significantly, it remains to be seen how far the trend has sustained.
However, it is still an important trend since there has been much focus on loss of investor interest in India, and indicative of the fact that while short-term flows continue to remain unpredictable, interest in the potential of the Indian economy is still in place.
A number of economic indicators are indeed pointing in the right direction. It remains to be seen whether the current weakness in the economy will prove to be a further drag or these latest trends in major economic indicators bode well for things to come. Global economic developments could well play a part in determining the future of the Indian economy as will policy decisions in India.
A lot of folks are still feeling like the world is coming to an end. It’s understandable given the difficulty of doing business and, indeed, existence. But that wasn’t getting solved in a hurry anyway.
| english |
A woman has discovered a highly venomous snake in her child’s lunchbox in Australia.
The juvenile snake was spotted in a lid as the woman packed school lunches in Adelaide, according to reptile handler Rolly Burrell.
Mr Burrell said he advised her to close the box and take it outside, after the woman had called him for assistance.
He identified the reptile as an eastern brown, one of the world’s most venomous snakes.
“Not really what you expect to see when you check if [your] child ate their fruit,” Mr Burrell wrote on Facebook.
He said the snake was removed without incident.
Mr Burrell said even juvenile snakes had dangerous venom.
“It is very lucky that she spotted the snake… a little kid would not even feel the bite from something so small,” he told the BBC. | english |
Showcasing India as the investment hub for the world, Prime Minister Narendra Modi Tuesday said that the country is one of the most investor-friendly economies in the world. Addressing Governors of the Asian Infrastructure Investment Bank (AIIB) in Mumbai, he added that investors look for growth, macroeconomic and political stability with a supportive regulatory framework to ensure protection of their investments.
“India has emerged as a bright spot in the global economy which is driving global growth as well. With a size of $2. 8 trillion, it is the seventh largest in the world. It is the third largest in terms of purchasing power parity. In the fourth quarter of 2017, India grew at 7. 7 per cent. In 2018, we are projected to grow at 7. 4 per cent,” PM Modi said. He was inaugurating the third annual meeting of AIIB. The theme this year is “Mobilizing Finance for Infrastructure: Innovation and Collaboration. ” Leaders from several organisations and officials from the government attended the meet.
Quoting UNCTAD’s World Investment Report, he added that India continues to be one of the top FDI destinations in the world. “Global confidence in India’s economy is rising. Total FDI flows have increased steadily – more than $222 billion have been received in the last four years,” the Prime Minister added.
Listing steps taken by the BJP-led government to make the country a preferred investment destination, such as simplifying rules and regulations for businesses, liberalising the FDI regime and implementing Goods and Services Tax (GST), PM Modi invited more investments in the agricultural sector.
“Agriculture is the lifeline of the Indian economy. We are promoting investments in warehouses and cold chains, food processing, crop insurance and allied activities. We are promoting micro-irrigation to ensure optimal use of water with increased productivity. I would like AIIB to look into potential investment opportunities in this field and associate with us,” he said.
Speaking on the need for better access to education, healthcare, financial services and employment opportunities in Asia, he said that institutions like AIIB can play an important role in raising resources. “Sectors such as energy and power, transportation, telecom, rural infrastructure, agriculture development, water supply and sanitation, environment protection, urban development, and logistics require long term funds. The interest rates on these funds need to be affordable and sustainable,” he said.
He further said that AIIB’s investment of $200 million for the National Investment and Infrastructure Fund has given it a boost.
He concluded saying that we are now living in the ‘Asian Century’.
“A ‘New India’ is rising. It is an India that stands on the pillars of economic opportunity for all, knowledge economy, holistic development, and futuristic, resilient and digital infrastructure. We look forward to our continued engagement with our development partners including AIIB,” he concluded. | english |
{"hyperform.amd.js":"sha256-2NYtvlHvyh7GyEX3XUpmM2L+pTRkYfVOsedPDNLsXRg=","hyperform.amd.min.js":"sha256-8oW2yroanZI2Jk0cj829UY6rwtUTCFcBmqEZEuuSL4Y=","hyperform.js":"sha256-T6A97XgbLwySOFJH83yklcgy+CEXNDjSRNMVbI98cs0=","hyperform.min.js":"sha256-V3L1zqasMvEr7AK/9XDb632dqisxGk9crxPNfQlMhKk="} | json |
{"em":[],"bites":[{"location":{"latitude":50.98,"longitude":5.87}},{"location":{"latitude":52.67,"longitude":4.68}},{"location":{"latitude":51.61,"longitude":6.05}},{"location":{"latitude":52.22,"longitude":6.39}},{"location":{"latitude":52.24,"longitude":5.53}},{"location":{"latitude":52.28,"longitude":5.6}},{"location":{"latitude":51.83,"longitude":5.91}},{"location":{"latitude":52.23,"longitude":6.5}},{"location":{"latitude":53.17,"longitude":6.58}},{"location":{"latitude":53.19,"longitude":6.58}},{"location":{"latitude":51.41,"longitude":5.18}},{"location":{"latitude":51.44,"longitude":3.61}},{"location":{"latitude":53.08,"longitude":6.57}},{"location":{"latitude":51.88,"longitude":6.19}},{"location":{"latitude":53.16,"longitude":6.63}},{"location":{"latitude":52.29,"longitude":4.91}},{"location":{"latitude":52.01,"longitude":5.79}},{"location":{"latitude":51.98,"longitude":5.68}},{"location":{"latitude":51.36,"longitude":6.08}},{"location":{"latitude":52.36,"longitude":4.57}},{"location":{"latitude":53.17,"longitude":7.18}},{"location":{"latitude":52.33,"longitude":4.89}},{"location":{"latitude":53.09,"longitude":7.14}},{"location":{"latitude":52.17,"longitude":5.07}},{"location":{"latitude":53.42,"longitude":6.77}},{"location":{"latitude":52.38,"longitude":5.8}},{"location":{"latitude":52.95,"longitude":7.13}},{"location":{"latitude":52.35,"longitude":6.06}},{"location":{"latitude":51.44,"longitude":5.59}},{"location":{"latitude":50.81,"longitude":5.89}},{"location":{"latitude":51.51,"longitude":4.31}},{"location":{"latitude":52.09,"longitude":5.34}},{"location":{"latitude":52.11,"longitude":5.43}},{"location":{"latitude":52.3,"longitude":6.89}},{"location":{"latitude":53.41,"longitude":5.38}},{"location":{"latitude":52.79,"longitude":6.91}},{"location":{"latitude":50.79,"longitude":5.74}},{"location":{"latitude":53.04,"longitude":7.12}},{"location":{"latitude":52.03,"longitude":5.81}},{"location":{"latitude":51.81,"longitude":5.88}},{"location":{"latitude":52.86,"longitude":6.88}},{"location":{"latitude":53.39,"longitude":5.29}},{"location":{"latitude":51.56,"longitude":4.3}},{"location":{"latitude":52.08,"longitude":5.27}}],"other":[],"fever":[]} | json |
<reponame>Moonlightwsn/momoui
{
"component": true,
"usingComponents": {
"mui-button": "../button/button",
"mui-icon": "../icon/icon"
}
} | json |
Apple was forced to stop its assembly line for several days first time in more than 10 years due to supply chain limitations and China's ongoing power restriction in October. The Cupertino-based tech giant's initial goal was to make 95 million iPhone 13 models in 2021, but that number dropped to around 83-85 million at the start of December.
A report by Nikkei Asia mentions that due to limited components and chips, it made no sense to work overtime on holidays and give extra pay for front-line workers. That has never happened before. The Chinese golden holiday in the past was always the most hustling time when all of the assemblers were gearing up for production.
The Golden Week holidays in the first week of October usually sees Apple's suppliers like Foxconn and Pegatron ramp up production to 24 hours a day. This year, it was complete opposite of that.
September and October production of iPhone 13 models fell short of 20 per cent of its initial goals. Meanwhile, iPad production only achieved 50 per cent of the volume expected in the same time frame.
As per report, despite re-accelerating production in November, Apple was still falling about 15 million units short of its aim to build 230 million iPhones in total this year, an ambitious goal set at the beginning of 2021.
Meanwhile, Apple also reportedly planning to increase iPhone shipments by 30 per cent for the first half of next year with the larger goal of exceeding 300 million iPhone shipments in 2022.
Persons familiar with the matter said that Apple is seeking to beat its objective of distributing 300 million iPhones by 2022 and the shipments of the iPhone 13 range will climb by 30 per cent in the first half of the year, reports DigiTimes.
To attain this goal, major component companies have been notified to adapt to supply and demand plans. The goal can turn out to be quite a challenge considering the global semiconductor shortages. | english |
<reponame>limads/limads.github.io<filename>_posts/2019-11-03-ffts-in-rust.md<gh_stars>0
---
layout: post
title: Fast (and memory-safe) Fourier transforms in Rust
---
## The basics
MKL's [DFTI](https://software.intel.com/en-us/mkl-developer-reference-c-fft-functions) module has routines for performing Fast Fourier Transforms (FFTs) using thread-based parallelism, and seems to be a nice option to solve signal-processing problems in Rust projects, given how easy is to use the C FFI library. After generating [bindings](https://limads.github.io/2019/10/27/linking-against-mkl-in-rust-programs/) to the C module, it wasn't too hard to write a more idiomatic higher-level API that offers some compile-time guarantees. I'll describe the use and reasoning behind the API here, which should be applicable to other modules of the library.
The API of our binding will use the [ndarray::ArrayBase](https://docs.rs/ndarray/0.13.0/ndarray/struct.ArrayBase.html) data structure, which is a container generic over several properties:
- Over the basic scalar type (`f32`, `f64`, and so on);
- Over the ownership model (`Array` for an owned memory region, `ArrayView` for non-owned immutable references and `ArrayViewMut` for non-owned mutable references);
- Over the dimension of the data it holds (`Dim<usize>` for 1D arrays, `Dim<(usize, usize)`> for 2d arrays, and so on);
This generality allows to just plug-in a complex number such as `num::Complex<f32>` for the basic scalar type of the array that will store the forward output of the Fourier transform. The C interface does not work with complex number types, but rather with plain single-precision or double precision values, following the convention of representing complex numbers in their cartesian representation contiguously in memory:

(The above layout is valid only for the `DFTI_CONJUGATE_EVEN_STORAGE = DFTI_COMPLEX_COMPLEX` setting of the DFTI descriptor)
Which, luckily, follows the same memory layout of `Array<Complex<D>>`, as long as we inform a numeric type D (either `f32` or `f64`) and dimension sizes that match the C array. MKL has an economical way of representing the output of the forward transform which is called conjugate-even storage, so called because every time we take the FFT of a real signal (which is usually the case when we are working with signals coming from actual measurements), the resulting transform will be even-symmetric (apart from the complex conjugate), so only the first portion of the signal relative to the point of symmetry needs to be represented. Since each element of the complex output now fills two scalar positions in memory, the halved output occupies a memory region which is almost the same size as the input.
## The API
We provide to the users a struct `FFTPlan` that follows the same generic design of `ndarray`. We make our `FFTPlan` generic with respect to the scalar type `A` and with respect to the dimension of the output `I`, so the user can detect any issues with respect to those parameters at compile time, and to reduce the amount of checking we have to do at runtime. After the struct is created, the user can repeatedly call the methods `.forward(data)` or `.backward(data)` to perform the forward and inverse transforms:
```rust
// Create FFTPlan
let n : usize = 100;
let mut fft_plan = FFTPlan::<f32, [Ix;1]>::new(
[n as usize].into_dimension())?;
// Create test sin wave with angular frequency 4
let mut a = Array1::<f32>::linspace(0,(4.0)*2.0*PI,n);
a = a.map(|x| { x.sin() });
// Perform forward transform
match fft_plan.forward(a.view()) {
Ok(b) => {
// b is a ArrayViewMut<Complex<f32,Dim<[usize]> with the results.
println!("Time domain: {:?}\n", a
println!("Frequency domain: {:?}\n",
(1.0 / (n as f32))*to_amplitude_array(b.view()));
},
Err(s) => { println!("{}\n\n", s); }
}
```
The decision of returning an `ArrayViewMut` whose referenced `Array` is owned by `FFTPlan` avoids two things:
- Having to initialize a new memory region for each transform;
- The potentially costly copy to a container owned by the user.
Since the calculated data is not re-used by FFTPlan in any other way (it just owns it), the user can modify it as needed without incurring the copy overhead. If the user does something that leaves the state of the underlying array invalid for the next transform, such as changing its dimensions, the next call to `.forward()` will simply return `Err(s)` informing a dimension size mismatch. Doing the whole manipulation inside a `match` or `if let` block not only guarantees the user is dealing with a valid output, but improves clarity of the program, since the lifetime of the mutable reference the user has access to is explicit.
If the user does not need to modify the array, he can take a `.view()` from the reference instead; or if he actually wants to own a copy of the result, he can call `.to_owned()` inside the block.
Continuing with the example, the `to_amplitude_array()` is just a function to recover the amplitude information from the cartesian representation returned:
```rust
pub fn to_amplitude_array<A,D>(
arr : ArrayView<Complex<A>,D>)
-> Array<A, D>
where D : Dimension,
A : Float + Clone {
arr.map(|a| { a.to_polar().0 })
}
```
After applying it to the array and normalizing it, we can visualize the content printed on the screen and check that the transform works:

## Implementation
All information MKL needs to perform a FFT (dimension, precision, memory layout) is stored into a `DFTI_DESCRIPTOR` object, which we will wrap together with the owned memory regions that will contain the transform outputs:
```rust
pub struct FFTPlan<A, I : IntoDimension>
where Dim<I> : Dimension,
A : From<f32> + Copy + Zero {
// Points to the owned descriptor. Valid for the lifetime of the struct.
handle : *mut DFTI_DESCRIPTOR,
// Owned memory region for the output of .forward()
forward_buffer : Array<Complex<A>, Dim<I>>,
// Owned memory region for the output of .backward()
backward_buffer : Array<A, Dim<I>>,
}
```
In the MKL C API, all the information the `DFTI_DESCRIPTOR` requires is set at runtime, which is at odds with our design using generics. To bridge this gap, we write specialized implementation blocks for the kinds of transforms we need, that only contain a `new()` associated function, which will call the C API with the correct parameters encoded as literals on each implementation. This has the added benefit of only allowing the user to instantiate our object with types supported by the MKL (`f32` and `f64`). The example below instantiates a FFTPlan to solve the problem of 1D real Fourier transforms:
```rust
impl FFTPlan<f32, [Ix;1]> {
pub fn new (
input_dims : Dim<[Ix;1]>)
-> Result<FFTPlan<f32, [Ix;1]>, String> {
let mut backward_buffer =
FFTPlan::<f32, [Ix;1]>::initialize_backward_buffer(input_dims);
let mut forward_buffer =
FFTPlan::<f32, [Ix;1]>::initialize_forward_buffer(input_dims);
let sz0 = input_dims.into_pattern();
// Encapsulates C API. Pass number of dimensions
//in tuple, and whether or not to use double precision.
let handle = build_descriptor( (sz0, 0), false)?;
Ok( FFTPlan::<f32, [Ix;1]>{
handle, input_dims, forward_buffer, backward_buffer} )
}
```
The `build_descriptor()` dispatches our arguments to the MKL C constants required at the descriptor initialization:
```rust
fn build_descriptor(dims : (usize, usize), double_prec : bool)
-> Result<*mut DFTI_DESCRIPTOR, String> {
/* (...) Transform our args to MKL constants */
unsafe {
let mut descriptor : DFTI_DESCRIPTOR =
std::mem::uninitialized();
let mut handle : *mut DFTI_DESCRIPTOR =
&mut descriptor as *mut DFTI_DESCRIPTOR;
let mut handle_ptr : *mut *mut DFTI_DESCRIPTOR =
&mut handle as *mut *mut DFTI_DESCRIPTOR;
let fail = DftiCreateDescriptor(
handle,
prec_const,
prec_value,
ndims as c_long,
dims_arr
) as u32;
check_dfti_status(fail as u32, "Could not construct Planner.")?;
/* (...) Set remaining properties */
}
if fail == DFTI_NO_ERROR {
Ok(handle)
}
```
Now that the correct descriptor is instantiated, the actual FFT computation can be generic over dimension and scalar type:
```rust
impl<A, I : IntoDimension> FFTPlan<A, I>
where Dim<I> : Dimension,
A : From<f32> + Copy + Zero {
pub fn forward(&mut self, arr : ArrayView<A, Dim<I>>)
-> Result<ArrayViewMut<Complex<A>, Dim<I>>, String>
/* A runtime dimension check is required because
we opted for our users to be able to manipulate mutable references
to the underlying owned buffer for performance reasons -
But our API is still safe because it will return an Error on
the event of dimension mismatch. */
self.check_valid_forward_dim(arr.raw_dim())?;
/* (...) Get pointers to input and buffer arrays via ArrayBase::mem_ptr() */
unsafe {
let status = DftiComputeForward(
self.handle, in_ptr, out_ptr);
if status == 0 {
return Ok(self.forward_buffer.view_mut());
} else {
check_dfti_status(status as u32, "Error computing DFT.")?;
}
}
}
/* (...) Auxiliary bounds-checking functions, buffer initialization, etc. */
}
```
As soon as I get some details right, I plan to make this available on [crates.io](crates.io). Adding to this FFT API another set of routines that calls to the MKL convolution operations is all it takes for a production-ready crate with basic signal and image processing routines that benefit from the MKL performance and the memory safety afforded by the Rust compiler.
## Relevant links:
[Fast Fourier Transform (wiki)](https://en.wikipedia.org/wiki/Fast_Fourier_transform)
[MKL FFT functions documentation](https://software.intel.com/en-us/mkl-developer-reference-c-fft-functions)
[ndarray repository](https://github.com/rust-ndarray/ndarray)
| markdown |
{"GenericName": ["MrSmith", "RidiculouslyAverageGuy", "MrSmith", "HughMann", "AtrociousAlias", "AwesomeMcCoolname", "SuspiciouslySpecificDenial", "SecretIdentity", "MrSmith", "DeconstructorFleet", "Feghoot", "GenreSavvy", "RedShirt", "NominalImportance", "JustifiedTrope", "RealIsBrown", "ImaginaryFriend", "AwesomeMcCoolname", "NonPlayerCharacter", "NoodleImplements", "SturgeonsLaw", "AnimateInanimateObject", "OneSteveLimit", "OneSteveLimit", "ItIsPronouncedTroPAY", "IdenticalStranger", "PaperThinDisguise"]} | json |
KVS Class 1 admission 2023-24: For the period from 2023 to 24, Kendriya Vidyalaya SangathanKVS will end the application process for admission to Class 1 in various KVS schools in the country. Parents and guardians can visit the official website kvsonlineadmission. kvs. gov. in and register by 7. 00 pm today.
The minimum age for admission in KVS Class 1 will be 6 years as on 31st March 2023. The reservation of seats shall be made subject to the KVS admission guidelines 2023-24, which can be found on the website. In the course of the period from 2023 to 24, the portal has been activated solely for admissions in Kendriya Vidyalaya class 1 across India.
The first final selection and a waiting list of registered candidates will be declared on 20 April. The admission process will start on the 21st April. On April 28 and May 4 the second and third lists will be published, in case there are still vacant seats.
KVS Admission 2023: How to register for class 1?
- Click on the Register link on the homepage.
- Read the instructions and proceed with the registration.
- Log on to the Admission Application Portal.
- Fill in the required details and upload the documents.
- Review and submit the form. | english |
<filename>src/text/font.rs
//! The `font::Id` and `font::Map` types.
use crate::text::{Font, FontCollection};
use std::collections::HashMap;
use std::hash::{Hash, Hasher};
use std::path::{Path, PathBuf};
/// A type-safe wrapper around the `FontId`.
///
/// This is used as both:
///
/// - The key for the `font::Map`'s inner `HashMap`.
/// - The `font_id` field for the rusttype::gpu_cache::Cache.
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct Id(usize);
/// A collection of mappings from `font::Id`s to `rusttype::Font`s.
#[derive(Debug)]
pub struct Map {
next_index: usize,
map: HashMap<Id, Font>,
}
/// An iterator yielding an `Id` for each new `rusttype::Font` inserted into the `Map` via the
/// `insert_collection` method.
pub struct NewIds {
index_range: std::ops::Range<usize>,
}
/// Yields the `Id` for each `Font` within the `Map`.
#[derive(Clone)]
pub struct Ids<'a> {
keys: std::collections::hash_map::Keys<'a, Id, Font>,
}
/// Returned when loading new fonts from file or bytes.
#[derive(Debug)]
pub enum Error {
/// Some error occurred while loading a `FontCollection` from a file.
Io(std::io::Error),
/// No `Font`s could be yielded from the `FontCollection`.
NoFont,
}
/// The name of the default directory that is searched for fonts.
pub const DEFAULT_DIRECTORY_NAME: &str = "fonts";
impl Id {
/// Returns the inner `usize` from the `Id`.
pub fn index(self) -> usize {
self.0
}
}
impl Map {
/// Construct the new, empty `Map`.
pub fn new() -> Self {
Map {
next_index: 0,
map: HashMap::default(),
}
}
/// Borrow the `rusttype::Font` associated with the given `font::Id`.
pub fn get(&self, id: Id) -> Option<&Font> {
self.map.get(&id)
}
/// Adds the given `rusttype::Font` to the `Map` and returns a unique `Id` for it.
pub fn insert(&mut self, font: Font) -> Id {
let index = self.next_index;
self.next_index = index.wrapping_add(1);
let id = Id(index);
self.map.insert(id, font);
id
}
/// Insert a single `Font` into the map by loading it from the given file path.
pub fn insert_from_file<P>(&mut self, path: P) -> Result<Id, Error>
where
P: AsRef<std::path::Path>,
{
let font = from_file(path)?;
Ok(self.insert(font))
}
// /// Adds each font in the given `rusttype::FontCollection` to the `Map` and returns an
// /// iterator yielding a unique `Id` for each.
// pub fn insert_collection(&mut self, collection: FontCollection) -> NewIds {
// let start_index = self.next_index;
// let mut end_index = start_index;
// for index in 0.. {
// match collection.font_at(index) {
// Some(font) => {
// self.insert(font);
// end_index += 1;
// }
// None => break,
// }
// }
// NewIds { index_range: start_index..end_index }
// }
/// Produces an iterator yielding the `Id` for each `Font` within the `Map`.
pub fn ids(&self) -> Ids {
Ids {
keys: self.map.keys(),
}
}
}
/// Produce a unique ID for the given font.
pub fn id(font: &Font) -> Id {
let mut hasher = std::collections::hash_map::DefaultHasher::new();
for name in font.font_name_strings() {
name.hash(&mut hasher);
}
Id((hasher.finish() % std::usize::MAX as u64) as usize)
}
/// Load a `FontCollection` from a file at a given path.
pub fn collection_from_file<P>(path: P) -> Result<FontCollection, std::io::Error>
where
P: AsRef<std::path::Path>,
{
use std::io::Read;
let path = path.as_ref();
let mut file = std::fs::File::open(path)?;
let mut file_buffer = Vec::new();
file.read_to_end(&mut file_buffer)?;
Ok(FontCollection::from_bytes(file_buffer)?)
}
/// Load a single `Font` from a file at the given path.
pub fn from_file<P>(path: P) -> Result<Font, Error>
where
P: AsRef<std::path::Path>,
{
let collection = collection_from_file(path)?;
collection.into_font().or(Err(Error::NoFont))
}
/// Load the default notosans font.
///
/// This function is only available if the `notosans` feature is enabled, which it is by default.
#[cfg(feature = "notosans")]
pub fn default_notosans() -> Font {
let collection = FontCollection::from_bytes(notosans::REGULAR_TTF)
.expect("failed to load the `notosans::REGULAR_TTF` font collection");
collection
.into_font()
.expect("the `notosans::REGULAR_TTF` font collection contained no fonts")
}
/// The directory that is searched for default fonts.
pub fn default_directory(assets: &Path) -> PathBuf {
assets.join(DEFAULT_DIRECTORY_NAME)
}
/// Load the default font.
///
/// If the `notosans` feature is enabled, this will return the font loaded from
/// `notosans::REGULAR_TTF`.
///
/// Otherwise this will attempt to locate the `assets/fonts` directory. If the directory exists,
/// the first font that is found will be loaded. If no fonts are found, an error is returned.
#[allow(unreachable_code, unused_variables)]
pub fn default(assets: &Path) -> Result<Font, Error> {
#[cfg(feature = "notosans")]
{
return Ok(default_notosans());
}
// Find a font in `assets/fonts`.
let fonts_dir = default_directory(assets);
if fonts_dir.exists() && fonts_dir.is_dir() {
for res in crate::io::walk_dir(&fonts_dir) {
let entry = match res {
Ok(e) => e,
Err(_) => continue,
};
match from_file(entry.path()) {
Err(_) => continue,
Ok(font) => return Ok(font),
}
}
}
Err(Error::NoFont)
}
impl Iterator for NewIds {
type Item = Id;
fn next(&mut self) -> Option<Self::Item> {
self.index_range.next().map(|i| Id(i))
}
}
impl<'a> Iterator for Ids<'a> {
type Item = Id;
fn next(&mut self) -> Option<Self::Item> {
self.keys.next().map(|&id| id)
}
}
impl From<std::io::Error> for Error {
fn from(e: std::io::Error) -> Self {
Error::Io(e)
}
}
impl std::error::Error for Error {
fn description(&self) -> &str {
match *self {
Error::Io(ref e) => std::error::Error::description(e),
Error::NoFont => "No `Font` found in the loaded `FontCollection`.",
}
}
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
match *self {
Error::Io(ref e) => std::fmt::Display::fmt(e, f),
_ => write!(f, "{}", std::error::Error::description(self)),
}
}
}
| rust |
'Halamithi Habibo' song from Telugu 'Beast' is out!
Thalapathy Vijay and Pooja Hegde have nailed it in the lyrical video of 'Halamithi Habibo', a song from the April 13th release 'Beast'. Directed by Nelson, it is composed by Anirudh Ravichander, whose pulsating talent is felt in each and every layer of the song. Sri Sai Kiran has penned the lyrics, while Anirudh and Jonita Gandhi have rendered the song.
Going by the lyrical video, Manoj Paramahamsa's visuals and the art direction department are going to uplift the visual experience. The Tamil version of the song is a fabulous hit already.
The film features Selvaraghavan in a key role. A hostage actioner, it has Yogi Babu, Redin Kingsley, Bjorn Surrao, VTV Ganesh, Aparna Das, Shine Tom Chacko, Liliput Faruqui, and Ankur Ajit Vikal in other roles.
The Telugu version's trailer will be out at 6 pm on April 5. Thanks to Dil Raju backing the important film, it is expected to get a wide release in the Telugu States. The trailer for the Tamil version is a gigantic hit.
Follow us on Google News and stay updated with the latest!
| english |
Daijiworld News Network - Mangalore (MB)
Mangalore, Apr 30: A string of suicides that took place over the past two days in various parts of the undivided DK district has certainly kept social workers and organizations worried.
it is easier said than done to expect people on the verge of suicide to call the helpline. Such decisions are taken on the spur of the moment and those jumping to such conclusions would not have the time nor the patience to share their thoughts with anyone, feel the public.
Mangalore:
Following a tiff with his wife, Achyut (40), killed himself by laying his head over the railway track at Maravoor near Bajpe on Friday night.
Udupi:
In Shirva, Julian Pinto (70), being depressed over loneliness, consumed liquor punched with poison and ended his life. His wife and all close family members are said to be employed at distant places.
In Barkur, Hosala-Addasalegudde, Satish Poojary (26) consumed poison on Thursday. He died on Friday in Manipal hospital.
In Hebri-Mudradi, Sujata (30), eded her life on Friday. She had been dejected ever since her husband had passed away four months ago. She is survived by two little children - a male and a female.
Beltangady:
A pilgrim on visit to Dharmasthala ended his life by hanging himself near the Netravati bathing spot. Aged about 40, he is yet to be identified.
Sullia:
Balakrishna Gowda (40), was suffering from stomach-ache and had been admitted to a hospital. Being unable to stand the pain, he escaped from the hospital and hung himself from a tree nearby on Friday.
Parvati (35), wife of Yashwant, suffering from depression, consume poison at her home in Edamangala. She was admitted to a hospital in Puttur but passed away on Saturday. | english |
<reponame>isabella232/optisam-ui<gh_stars>1-10
// Copyright (C) 2019 Orange
//
// This software is distributed under the terms and conditions of the 'Apache License 2.0'
// license which can be found in the file 'License.txt' in this package distribution
// or at 'http://www.apache.org/licenses/LICENSE-2.0'.
import { Component, OnInit } from '@angular/core';
import { SharedService } from 'src/app/shared/shared.service';
import { GroupService } from 'src/app/core/services/group.service';
import { EquipmentsService } from 'src/app/core/services/equipments.service';
import { Papa } from 'ngx-papaparse';
import { FormGroup, FormBuilder, FormArray } from '@angular/forms';
import { ConfigurationService } from 'src/app/core/services/configuration.service';
import { isUndefined } from 'util';
import { Subscription } from 'rxjs';
import { Router } from '@angular/router';
import { MatDialog } from '@angular/material/dialog';
@Component({
selector: 'app-configuration-simulation',
templateUrl: './configuration-simulation.component.html',
styleUrls: ['./configuration-simulation.component.scss']
})
export class ConfigurationSimulationComponent implements OnInit {
configObj: any;
groupList: any[] = [];
equipmentList: any[] = [];
attributeList: any[] = [];
scopesList:any[] =[];
displayedColumns: string[] = ['attribute', 'simulable', 'file', 'delete'];
uploadForm: FormGroup;
formInvalidFlag: Boolean = false;
NoChangesFlag: Boolean = true;
NoFileSelectedFlag: Boolean = true;
refreshAttributesFlag: Boolean = false;
selectedEqType: any;
id: any;
loadingSubscription: Subscription;
HTTPActivity: Boolean;
delimiter: any = ';';
invalidConfigName: Boolean = false;
configName: string = '';
configNamesList: any[]=[];
duplicateConfigName: Boolean = false;
allowedLengthExceeded: Boolean = false;
configNameRequired: Boolean = false;
loading: Boolean;
constructor(private sharedService: SharedService,
private groupService: GroupService,
private equipmentService: EquipmentsService,
private configurationService: ConfigurationService,
private papa: Papa,
private _formBuilder: FormBuilder,
private dialog:MatDialog,
private router:Router) {
this.loadingSubscription = this.sharedService.httpLoading().subscribe(data => {
this.HTTPActivity = data;
});
this.configObj = {
equipmentType: null,
group: null,
attributes: []
};
}
ngOnInit() {
this.getGroups();
this.getEquipmentList();
this.setFormData();
}
// Set form data
setFormData() {
this.uploadForm = this._formBuilder.group({
filesArray: this._formBuilder.array([this.createItem('','')])
});
}
// Create FormGroup for an attribute
createItem(name, file): FormGroup {
return this._formBuilder.group({
name: name,
file: file
});
}
// Get All Equipment types
getEquipmentList() {
this.equipmentService.getTypes().subscribe((response: any) => {
this.equipmentList = (response.equipment_types || []).reverse();
this.getConfigNames();
}, (error) => {
console.log("Error fetching equipments list");
});
}
// Get Groups
getGroups() {
this.groupService.getDirectGroups().subscribe((response: any) => {
this.groupList = response.groups.map((res) => res.name);
this.scopesList = response.groups.map((res)=> {return res.scopes});
this.configObj.group = this.groupList[0];
}, (error) => {
console.log("Error fetching groups");
});
}
// get list of all configurations
getConfigNames() {
for(let i=0;i<this.equipmentList.length;i++)
{
this.configurationService.listConfiguration(this.equipmentList[i].type).subscribe((response: any) => {
if(response.configurations) {
response.configurations.map(res=>this.configNamesList.push(res.config_name));
}
}, (error) => {
console.log("Error fetching metric list");
});
}
}
// Function for change in dropdown selection
selectionChanged(ev: any, type: string,templateRef) {
switch (type) {
case 'equipment': //Get Attributes
const changedAttributes = this.configObj.attributes.filter((res)=>(res.fileName)).length;
if(changedAttributes>0) {
this.openModal(templateRef,'40%');
}
if(changedAttributes === 0) {
this.selectedEqType = ev.value;
this.getEquipmentAttributeList(this.selectedEqType.type);
}
break;
default:
break;
}
}
refreshAttributes() {
this.refreshAttributesFlag = true;
this.selectedEqType = this.configObj.equipmentType;
this.reset();
}
cancel() {
this.refreshAttributesFlag = false;
this.configObj.equipmentType = this.selectedEqType;
}
openModal(templateRef,width) {
let dialogRef = this.dialog.open(templateRef, {
width: width,
disableClose: true
});
}
get filesArray() {
return this.uploadForm.get('filesArray') as FormArray;
}
// Get Attributes of selected equipment type
getEquipmentAttributeList(selectedEquip) {
let allAttributes = [];
this.equipmentList.filter((eqs) => eqs.type === selectedEquip).map((eq) => { eq.attributes.map((attr) => { allAttributes.push({ name: attr.name, simulable: false, fileName: null }) }) });
this.attributeList = allAttributes.filter((value, index, self) => self.map(x => x.name).indexOf(value.name) == index)
this.configObj.attributes = [];
this.attributeList.map((item) => {
this.configObj.attributes.push({
attributeName: item.name,
simulable: item.simulable,
file: {},
fileName: item.fileName,
fileInvalid: false
})
});
this.NoChangesFlag= true;
this.canApplyCheck();
}
// file upload
fileChangeListener(event: any, index): void {
const files = event.srcElement.files;
if (files !== null && files !== undefined && files.length > 0) {
const reader: FileReader = new FileReader();
reader.readAsText(files[0]);
reader.onload = e => {
const csv = reader.result;
const results = this.papa.parse(csv as string, { header: false,delimiter:()=>{if(csv.toString().indexOf(this.delimiter) !== -1) {return this.delimiter} else {return " ";}} });
// VALIDATE PARSED CSV FILE
if (results !== null && results !== undefined && results.data !== null &&
results.data !== undefined && results.data.length > 0 && results.errors.length === 0) {
// PERFORM OPERATIONS ON PARSED CSV
let csvTableHeader = results.data[0];
if (csvTableHeader[0] === this.attributeList[index].name) {
this.configObj.attributes[index].simulable = true;
this.configObj.attributes[index].file = files;
this.configObj.attributes[index].fileName = files[0].name;
this.configObj.attributes[index].fileInvalid = false;
this.filesArray.push(this.createItem(this.attributeList[index].name, files[0]));
this.NoChangesFlag = false;
} else {
this.configObj.attributes[index].simulable = false;
this.configObj.attributes[index].file = {};
this.configObj.attributes[index].fileName = files[0].name;
this.configObj.attributes[index].fileInvalid = true;
this.filesArray.removeAt(this.filesArray.value.findIndex(res => res.name === this.attributeList[index].name));
this.NoChangesFlag = false;
}
this.canApplyCheck();
} else {
for (let i = 0; i < results.errors.length; i++) {
console.log('Error Parsing CSV File: ', results.errors[i].message);
}
}
};
} else {
console.log('No File Selected');
}
}
// Check if user can apply the uploaded files
canApplyCheck() {
this.formInvalidFlag= false;
this.configObj.attributes.map(res=> { if(res.fileInvalid) this.formInvalidFlag= true;})
this.checkIfAnyChangeMade();
this.checkConfigName();
}
// Atleast one configuration attribute changed check
checkIfAnyChangeMade() {
let files = this.configObj.attributes.filter((res)=>{if(res.fileName) return res});
if(files.length>0) {this.NoFileSelectedFlag = false;}
}
// Validate configuration name format
validateConfigName(ev) {
var regEx = new RegExp('^[-_,A-Za-z0-9]+$');
const specialKeys: Array<string> = [ 'Backspace', 'Delete', 'End', 'Home' , 'Enter'];
if (!regEx.test(ev.srcElement.value) && specialKeys.indexOf(ev.key) === -1) {
this.invalidConfigName = true;
}
else {
this.invalidConfigName = false;
}
if(this.configNamesList.map(res=>res.toLowerCase()).includes(ev.srcElement.value.toLowerCase())) {
this.duplicateConfigName = true;
}
else {
this.duplicateConfigName = false;
}
if(ev.srcElement.value.length>50) {
this.allowedLengthExceeded = true;
}
else {
this.allowedLengthExceeded = false;
}
}
checkConfigName() {
if(!this.configName || this.configName == '') {
this.configNameRequired = true;
}
else {
this.configNameRequired = false;
}
}
//Apply changes
uploadFile(successMsg, errorMsg) {
this.loading = true;
this.NoChangesFlag = true;
const formData = new FormData();
formData.append('equipment_type', this.selectedEqType.type);
formData.append('scopes', this.scopesList.toString());
formData.append('config_name',this.configName);
this.filesArray.value.map((val)=>{if(val.name){formData.append(val.name, val.file)}});
this.configurationService.uploadConfiguration(formData).subscribe(data => {
this.openModal(successMsg,'30%');
this.loading = false;
console.log('success! ',data);
}, err => {
this.openModal(errorMsg,'30%');
this.loading = false;
console.log('error ',err);
});
}
//Delete a particular attribute from list
deleteAttributeById(index) {
this.configObj.attributes[index].file ={};// .map((res)=>{if(res.fileName) {res.file = {}; res.fileName=null; res.simulable=false;}})
this.configObj.attributes[index].fileName = null;
this.configObj.attributes[index].simulable = false;
this.configObj.attributes[index].fileInvalid = false;
this.clearFileInput(document.getElementsByClassName("file-upload"),index);
this.NoFileSelectedFlag = true;
this.checkIfAnyChangeMade();
this.canApplyCheck();
for (var j=0; j < this.filesArray.value.length; j++) {
if (this.filesArray.value[j].name === this.configObj.attributes[index].attributeName) {
this.id = j;
}
}
this.filesArray.removeAt(this.id);
}
// Reset form
reset() {
// this.configObj.attributes.forEach((attr) => { attr.simulable = false; attr.file = {}; attr.fileName = null; attr.fileInvalid = false;});
// this.clearFileInput(document.getElementsByClassName("file-upload"));
this.getEquipmentAttributeList(this.selectedEqType.type);
while (this.filesArray.length !== 0) {
this.filesArray.removeAt(0);
}
this.NoChangesFlag= true;
this.NoFileSelectedFlag = true;
}
// Reset selected files
clearFileInput(ctrl:any, index?:number) {
if (ctrl) {
let nodes = ctrl.length;
if(!isUndefined(index)) {
ctrl[index].value = null;
}
else {
for (let i = 0; i < nodes; i++) {
try {
ctrl[i].value = null;
} catch (ex) {
if (ctrl[i].value) {
ctrl[i].parentNode.replaceChild((ctrl[i].parentNode.firstChild.cloneNode(true)), ctrl[i].parentNode.firstChild);
}
}
}
}
}
}
// Navigate to list view
backToList() {
this.router.navigate(['/optisam/cm/simulation-configuration']);
}
ngOnDestroy() {
this.dialog.closeAll();
this.loadingSubscription.unsubscribe();
}
}
| typescript |
package sdk
import (
"testing"
rmTesting "github.com/brigadecore/brigade/sdk/v3/internal/restmachinery/testing" // nolint: lll
"github.com/stretchr/testify/require"
)
func TestNewCoreClient(t *testing.T) {
client, ok := NewCoreClient(
rmTesting.TestAPIAddress,
rmTesting.TestAPIToken,
nil,
).(*coreClient)
require.True(t, ok)
require.NotNil(t, client.projectsClient)
require.Equal(t, client.projectsClient, client.Projects())
require.NotNil(t, client.eventsClient)
require.Equal(t, client.eventsClient, client.Events())
require.NotNil(t, client.substrateClient)
require.Equal(t, client.substrateClient, client.Substrate())
}
| go |
வீடு, மனை விற்பனை தொழில் (REAL ESTATE)
மின்கட்டணம் - எவ்வளவு செலுத்த வேண்டும்?
HSC Results (Since 2007)
ட்விட்டர் ஹாஸ்டாகுகள் (TWITTER HASHTAGS)
பிரபல தொழிலதிபர் எஸ்.சி.எம்.ஜமாலுதீன் காலமானார்!
(ABU DHABI - UAE)
INNA LILAHI WA INNA ILAIHI RAJIWOON. "ALLAHUMMAQBIR LAHA, ALLAHUMMA SABITH LAHA" :
இந்த கருத்து உங்களுக்கு பிடித்துள்ளதா?
வீடு, மனை விற்பனை தொழில் (REAL ESTATE)
HSC Results (Since 2007)
What are GoogleAds?
- governing this Website.
| english |
Three Uighurs from China’s western Muslim-majority Xinjiang region were on Monday sentenced to death over their role in last October’s >terror attack on Tiananmen Square here. The attack left at least five people dead.
Three people had driven an SUV through a crowd near the Tiananmen gate, in the heart of Beijing, killing two tourists and injuring at least 40 people. The three in the car died as the vehicle exploded.
The suicide attack on the heart of Beijing — and the symbol of the ruling Communist Party’s political power — rattled the capital, prompting an overhaul of security measures. The masterminds turned out to be Uighurs, the ethnic Turkic Muslim group native to Xinjiang region.
On Monday, a court in Urumqi, Xinjiang’s regional capital, sentenced three others to death for “leading a terrorist group” and organising the attack.
One woman was given a sentence of life in prison, while four others were given jail terms ranging from five to 20 years in jail for “endangering public security with dangerous methods,” the official Xinhua news agency reported.
The sentencing came amid reports of a knife attack on a public chess and card hall in Hotan, a southern Xinjiang city close to Pakistan-occupied Kashmir (PoK), that left four people injured. Three assailants, armed with knives, on Sunday evening attacked a public card room, state media reported. Two attackers were killed by police.
A string of knife attacks in recent months has prompted a security clampdown in Xinjiang. Knife attacks and bomb blasts on >railway stations in Urumqi , the regional capital, in Kunming in Yunnan province and in southern Guangzhou have been blamed on extremist Uighur groups.
Last month, a mass trial held in Xinjiang >sentenced 55 people on terror and “splittism” charges . A further 81 people were jailed this month, of whom nine were given death sentences.
While the government has defended the security crackdown as a response to terror groups’ “momentum”, overseas Uighur groups have called on authorities to ensure transparency, as earlier “strike hard” campaigns have seen dozens of men jailed often without open trials, causing further resentment among many Uighurs. | english |
Hanuma Vihari has not had a great tour Down Under so far. While he is yet to find the rhythm with the willow in the ongoing Test series against Australia, the all-rounder has also been below-par on the field. On Day 4 of the ongoing third Test between the two sides in Sydney, Vihari dropped an absolute sitter to hand Marnus Labuschagne a lifeline.
Vihari dropped Labuschagne on the second ball of the first session on Day 4. Jasprit Bumrah managed to set up Labuschagne, who played a flick towards the backward square where Vihari was stationed for the catch. But to the bowler's disappointment, Vihari ended up dropping the easy catch to give Labuschagne a lifeline on 48.
It was an appalling drop from Vihari as Bumrah covered his face with his hands and didn't express much. Labuschagne went on to score 73 runs off 118 balls after being dropped.
Watch video:
Fans slandered Vihari for his awful fielding effort on Twitter with some even calling for the all-rounder to be dropped from the playing XI for the final fourth Test against the Aussies in Brisbane. Vihari has had a forgetful series with the bat having scored only 49 runs in his last four innings in the ongoing series.
Australia are currently in a strong position in the third Test as they continue to build on the 94-run lead amassed after bundling out India for 244 in their first innings. The hosts are in the driver's seat after their first-innings lead, courtesy the help of Labuschagne's 73 and Steve Smith's brilliant 81 off 167 deliveries.
India will be hoping to bat really well and expect a big knock from the likes of Cheteshwar Pujara, captain Ajinkya Rahane, and opener Rohit Sharma among others to keep themselves in the hunt at the Sydney Cricket Ground. | english |
<filename>assets/pages/exemplo-galeria/assets/css/style.css
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
margin: 0 auto;
width: 80vw;
padding-top: 24px;
padding-bottom: 24px;
height: 100vh;
}
.galeria-area {
display: flex;
flex-direction: column;
height: 100%;
}
.galeria-titulo {
height: 10%;
width: 100%;
font-size: 36px;
font-weight: bold;
text-align: center;
}
.galeria-card {
height: 90%;
width: 100%;
display: flex;
flex-direction: column;
}
.galeria-row {
display: flex;
justify-items: center;
flex: 1;
margin-bottom: 32px;
}
.card {
flex: 1;
display: flex;
flex-direction: column;
margin-left: 16px;
margin-right: 16px;
}
.image-area {
flex: 1;
}
.descricao-area {
flex: 1;
background-color: red;
}
.image-area img {
width: 100%;
object-fit: cover;
object-position: center;
}
.verde{
background-color: #0F0;
}
.coluna{
flex-direction: column;
}
.linha{
flex-direction: row;
}
| css |
Maryhaven Center of Hope located in Port Jefferson, New York assists both adults and children with developmentally disabilities among other things. Maryhaven has a mission statement "To improve, enrich and respect the lives of those with special needs." Unfortunately due to New York state budget cuts the School which has served our community for well over 50 years and serves over 71 students currently is set to close by 2020. Besides, the school being closed now children's residential services which is in the same building will be forced to close its doors as well. There is already a huge problem with finding proper schooling and housing for these children and will be a huge difficult adjustment for them to change what they have grown to know and love. These children deserve to be educated and live where they feel safe with staff that they know and love! PLEASE SHARE & SIGN WE NEED TO SAVE MARYHAVENS CHILDREN SERVICES!!!
To write a letter to Governor Andrew M. Cuomo:
| english |
Tweeting the letter to Manmohan Singh, Harsh Vardhan said history would be kinder to him if only his own party, Congress, had followed his advice to PM Narendra Modi.
A day after former Prime Minister and Congress leader Dr Manmohan Singh wrote to PM Modi, Union Health Minister Harsh Vardhan on Monday responded sharply to his five-point letter on the Covid-19 situation in the country. He blamed the Congress government for spreading misinformation on the pandemic and the vaccine.
Singh wrote to PM Narendra Modi suggesting measures to curb the second coronavirus wave hurting India's battle against the virus. In a 5-point suggestion later, the former Prime Minister advised the PM to ramp up the immunization drive and publicize the details of the vaccine supplies and the number of doses in transit.
Tweeting the letter to Manmohan Singh, Harsh Vardhan said history would be kinder to him if only his own party, Congress, had followed his advice to PM Narendra Modi. Harsh Vardhan also asked Manmohan Singh to also ask his party to follow his suggestions.
He added that Congress leaders' stand on the whole pandemic and vaccines have led to below average coverage of vaccination for senior citizens.
"While you understand importance of vaccination. . . people in responsible positions in your party as well as in state govt formed by your party do not seem to share your view," his letter read.
A day after the Congress Working Committee's (CWC) meeting over the Covid-19 situation across the country, former Prime Minister Manmohan Singh wrote to PM Narendra Modi.
“The government should publicise what are the firm orders for doses placed on different vaccine producers and accepted for delivery over the next six months,” adding that if a target number are to be vaccinated in this period, enough orders should be placed in advance so that producers can adhere to an agreed schedule of supply, the former PM wrote. | english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.