text
stringlengths
1
1.04M
language
stringclasses
25 values
Gucci bags are synonymous with luxury, style, and elegance. Women the world over recognize the benefit that owning a luxury Gucci handbag can convey, and for those who can afford it, they seek out Gucci bags as the perfect fashionable accessory. However, for millions of women Gucci bags are unobtainable because of their inflated price, their relative scarcity, and because Gucci chooses to limit their store locations to a few select areas that are not within the shopping distance of a large number of women. Here at DFO handbags, we're trying to put the best luxury handbags on the market, in the hands of women worldwide who value elegance, timeless sophistication, and saving money.
english
He has been winning praise for his improved maturity at the Miami Open, but the Nick Kyrgios of old returned as he picked up a game penalty as he crashed out of the fourth round at the Miami Open to Jannik Sinner on Tuesday. The combustible Australian vented his frustration towards umpire Carlos Bernardes during a tight first set, then lost the tie-break after being docked a point for smashing his racket and subsequently double-faulting. Kyrgios was docked a game for smashing his racket again early in the second set – then posed for a selfie with a young fan who ran onto the court – before slipping to a 7-6 (3) 6-3 defeat. “Get a new set of referees, these guys don’t know how to do s***,” screamed an angry Kyrgios during his latest on-court rant. “Walky-talkies going off. It’s a joke. He is a joke. Get rid of every single staff and start over. Everything. I will run the sport. I could do 100x a better job. Marketing. Everything. You guys have no idea. None. You guys can’t even ref right. Sinner admitted he needed to ignore the chaos going on in the other half of the court, as he booked his place in the quarter-finals. Reflecting on how he avoided being distracted by the circus at the other end of the net, Sinner told Amazon Prime: “I just tried to stay in the present moment. I know that he can raise his level immediately, especially when he breaks. At 4-3 (in the second set) if I serve worse there, he can get back into the match. I tried to stay calm somehow and think I’ve done a great job today. There was better news for in the Doubles, as he moved into the semi-finals with partner Thanasi Kokkinakis after a win against Marcel Granollers and Horacio Zeballos. Novak Djokovic has admitted he is conflicted on the prospect of retirement. Zverev’s coaching team are heard suggesting they have ‘lost all respect’ for Medvedev and after this spicey episode of the Netflix series. John McEnroe has discussed Rafael Nadal’s tennis future after his injury setback in Brisbane. The former British No 1 is due to make her comeback at a major tournament at the Australian Open. Sakkari speaks openly about her fears stepping on court as she pondered whether her life would be better away from tennis. Manchester United legend and TNT Sports pundit Rio Ferdinand spoke to Tennis365 as he compared Novak Djokovic and Roger Federer. Raducanu has suggested she is being inspired to get back to the top of the game as she aims to reward her sponsors for standing by her. Australian Open 2024: When does it start? When is the draw? Who could Novak Djokovic face? The first Grand Slam tournament of the 2024 tennis season is fast approaching. When Tennis365 asked Robson if anyone could beat Djokovic a the first Grand Slam of 2024, she offered up this emphatic answer.
english
# print kernel time for each launched kernel import json import glob import json import numpy import sys def benchmark_sort_key(benchmark): """Returns the key that may be used to sort benchmarks by label.""" if not "label" in benchmark: return "" return benchmark["label"] def print_scenario(benchmarks, name): """Takes a list of parsed benchmark results and a scenario name and print time for each benchmark""" # Remember, the first entry in the times array is an empty object. benchmarks = sorted(benchmarks, key = benchmark_sort_key) for benchmark in benchmarks: block_times = benchmark["times"][2]["block_times"] # list of floats it = iter(block_times) for start in it: end = next(it) print("%s , %.3f " % (benchmark["label"], float(end) - float(start))) def print_kernel_times(filenames): parsed_files = [] for name in filenames: with open(name) as f: parsed_files.append(json.loads(f.read())) # Group the files by scenario scenarios = {} for benchmark in parsed_files: scenario = benchmark["scenario_name"] if not scenario in scenarios: scenarios[scenario] = [] scenarios[scenario].append(benchmark) for scenario in scenarios: print_scenario(scenarios[scenario], scenario) if __name__ == "__main__": base_directory = "./results" if len(sys.argv) > 2: print "Usage: python %s [directory containing results (./results)]" % ( sys.argv[0]) exit(1) if len(sys.argv) == 2: base_directory = sys.argv[1] filenames = glob.glob(base_directory + "/*.json") print_kernel_times(filenames)
python
DOTA 2 NEWS: Team Secret wipe out VP.Prodigy 3-0 in AMD Sapphire OGA Dota Pit Europe Region Grand Finals. This is Team Secret’s 8th win in the Europe/CIS region. They stomped their opponent. Team Secret are champions of OGA Dota Pit Season 3. Team Secret have pulled off yet another dominating performance in the AMD Sapphire OGA Dota Pit. They have only lost one game in the series. Team Secret will be taking home a massive $70, 873 as a cash prize for their performance in the tournament & emerging champions. The series ended with a score of 3-0. Nisha dominated the mid-lane for Secret in Game 1 on the Templar Assassin. epileptickid played on the Troll Warlord and tried his best to recover a bad start, but Secret were relentless. They took game 1 in 36 minutes. In the second game, VP.Prodigy only lost by a bigger margin. While Game 1 ended 20-29, Secret defeated their opponents 25-11 in the second match of the series. Gambit.gpk, who played viper-mid for VPP was no match for Nisha’s Pugna. Nisha ended game 2 with 11 kills. Secret stomped the 3rd game and dismantled VP.Prodigy inside their own base within 22 minutes, and the score was 23-4 when VP.Prodiy’s ancient fell. With this win, Secret’s unstoppable run the EU/CIS region continues. This is their 8th series victory. The highlight of AMD Sapphire OGA Dota Pit series has been Zai’s Bloodseeker. VP.Prodigy will take home $36,822 for coming in 2nd place. They came into the tournament as underdogs and have completely shocked the Dota audience with the authoritative performance.
english
Mumbai, Oct 22 (PTI) A court here on Tuesday rejected the pre-arrest bail plea of a police officer, accused of repeatedly raping a 35-year-old woman from Uzbekistan over a period of eight years. Sessions court judge K S Hore rejected the anticipatory bail application of police inspector Bhanudas, alias Anil Jadhav, who has been suspended. Earlier this month, the woman had lodged a complaint at the suburban Chembur police station, accusing the police officer of raping her for eight years on the pretext of a false promise of marriage. In her complaint, the woman claimed that she has a five-year-old child from Jadhav. She first met him in 2004 when she needed help to extend her visa, the Uzbek woman said in the complaint. She was looking for work in Bollywood and Jadhav allegedly told her that he knew some film producers who can help her, according to the complaint. In 2008, she alleged, he raped her for the first time in a hotel in Chembur. But when she got pregnant, Jadhav reneged on his promise to marry her and forced her to abort the pregnancy, the woman alleged. In 2013, she shifted to Kharghar in adjoining Navi Mumbai and gave birth to a baby boy, she said. Jadhav also helped the Uzbek woman to change her identity with the help of forged documents so that she could stay in India, according to the complaint. (This is an unedited and auto-generated story from Syndicated News feed, LatestLY Staff may not have modified or edited the content body)
english
Indian Forest Officers Kalpana K and M Geethanjali share their experiences, challenges to save blackbucks in Punjab's Abohar, an open wildlife sanctuary. After serving in the forests of Andhra Pradesh for a couple of months, when Kalpana K was posted as the Divisional Forest Officer (DFO) in the Ferozepur division of Punjab’s Abohar open wildlife sanctuary, she was surprised to see that the sanctuary was owned by the villagers. She was at the same time delighted to know the Bishnoi Community’s active involvement in saving the wildlife population, especially blackbucks, the indigenous antelope. The community had refrained from harming feral dogs and cows as well. However, due to the green revolution in the 1970s, locals occupied more land for agriculture and threatened the natural habitat of blackbucks. This is where Kalpana played an important role in finding a solution to save blackbucks without asking people to compromise on farming activities. Apart from the 2014-batch officer, M Geethanjali, a 2001-batch officer, was posted as the Conservator Wildlife (Parks and Protected Areas). In their 2-year term from 2018 to 2019, the two Indian Forest Service (IFS) officers took several initiatives to conserve the blackbucks. Their staggering efforts were even recognised by the IFS Association. The duo was featured in ‘The Green Queens of India – Nation’s Pride’, a book published by the Association. Covering a land area of about 18,650 hectares, the sanctuary is spread over 13 villages. It was in 1975 when the Akhil Bharatiya Jeev Raksha Samiti Bishnoi Sabha had asked the government to turn expansive farmlands into a sanctuary so that animals could freely roam without entering the villages. “The Bishnois consider blackbuck as sacred animals so much so that mothers feed the orphaned baby blackbucks. With this kind of love for the wildlife, we realised it wouldn’t be possible to work without the community’s support and trust. The crucial part was making them realise the current habitat is not suitable for the wildlife,” says Kalpana. Due to a reduction in tibbas, the blackbucks started entering the fields and damaging them. The menace of stray dogs also grew exponentially as they attacked the crops and blackbucks. To deal with this, the villagers installed cobra wires which led to fatal accidents. Initially, when the forest department told the villagers to uninstall the cobra wires, they asked for compensation for crop damage. Even after they were given compensation for damages, the villagers didn’t pull down the wires. “Dealing with the owners was complex given that we cannot enter or impose any rules without their permissions. A lot of things were not in our hands. So we decided to involve various stakeholders such as the panchayat committee, activists, veterinarians, forest guards and district administration to deal with issues,” says Kalpana. “The department also took advantage of the educational institutions to spread awareness on the importance of wildlife. Various competitions were held in all schools of the villages to spread awareness and motivate children towards conservation. We did several presentations on the impact of cobra wire and habitat destruction on the overall wildlife ecosystem of Punjab,” she adds. For the next eight months, the Wildlife Range staff went to every village and convinced farmers by conducting various awareness camps. Most villagers took the staff with them and removed the cobra wires in front of them. Such sustained efforts also led to a state-wide ban on cobra fencing. “As per a 2019-study done by Wildlife Institute of India, only 5% of the sanctuary area has cobra wire. The issues of barbed wire and chain-link fences were resolved with the district administration’s help. It was reported that animals were migrating outside the sanctuary so the administration banned the sale of chain-link fences,” says Kalpana. One of the significant achievements by Geethanjali and Kalpana was opening a rescue centre for immediate treatment of injured animals with water facilities and room for animal recovery in limited funds. For the first time, local veterinarians were appointed on 24×7 duty for the injured animals and the department staff was trained with first aid medicines. Once the animals recover, they are rehabilitated in the safe areas of the sanctuary. Ambulances, cages, nets and other animal rescue equipment was given to the local staff to carry out the operations. For the first time, an effort was made to monitor and collect wildlife sightings, behaviour patterns and movements of blackbucks. Although both the IFS officers have been transferred, the research will help in developing long-term solutions. Geethanjali says new policy mechanisms can be developed for compensating the landowners for maintaining biodiversity in their lands to ensure farmers are happy and wildlife is undisturbed. “There are different programs in different countries to compensate landowners for biodiversity conservation. They are called compensation mechanisms or Payments for Ecosystem Services (PES). My study and research is about that. Recently, I presented at an International conference on ecosystem services my views about restoring natural ecosystems in Abohar. More research is needed to tailor such schemes,” says Geethanjali who is currently pursuing higher studies in Finland. We bring stories straight from the heart of India, to inspire millions and create a wave of impact. Our positive movement is growing bigger everyday, and we would love for you to join it. Please contribute whatever you can, every little penny helps our team in bringing you more stories that support dreams and spread hope.
english
<filename>recogn_img/test/e2e/test_recognition.py from os import path from unittest import TestCase from recogn_img import Recognizer, read_classes from recogn_img.test.utils import get_proj_file_path TEST_IMG_RELATIVE_PATH = "recogn_img/test/resources/test_cctv_car_at_night.jpg" class TestImgRecognition(TestCase): @classmethod def setUpClass(cls) -> None: cls.classes_path = get_proj_file_path("coco_classes.txt") cls.model_path = get_proj_file_path("yolov3.h5") cls.recognizer = Recognizer(cls.model_path, read_classes(cls.classes_path), (416, 416)) def setUp(self) -> None: self.assertTrue(path.isfile(self.classes_path)) self.assertTrue(path.isfile(self.model_path)) def test_should_recognize_car_on_night_cctv_image(self): # given test_img_path = get_proj_file_path(TEST_IMG_RELATIVE_PATH) self.assertTrue(path.isfile(test_img_path)) # when results = self.recognizer.recognize(test_img_path) detected_classes = set([r.obj_class for r in results]) # then self.assertGreaterEqual(len(results), 1) self.assertIn("car", detected_classes)
python
package com.ybproject.diarymemo; import java.util.ArrayList; import android.app.Activity; import android.app.AlarmManager; import android.app.AlertDialog; import android.app.ListActivity; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.PaintDrawable; import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.View.OnClickListener; import android.view.View.OnTouchListener; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast; import com.ybproject.diarymemo.R; import com.ybproject.diarymemo.R.id; import com.ybproject.diarymemo.R.layout; import com.ybproject.diarymemo.R.string; import com.ybproject.diarymemo.background.DrawNoteNotification; import com.ybproject.diarymemo.provider.DrawNoteDB; import com.ybproject.diarymemo.provider.DrawNoteList_Row; public class DrawNoteList extends ListActivity implements OnClickListener{ private static DrawNoteDB dbCon; private ArrayList<DrawNoteList_Row> mTodoList; private ListAdapter mAdapter; private LinearLayout list_menu; private int selectedIndex; private int selectedNoti; private int selectedWidget; private String selectedNotiDate; private int selectedPosition; private boolean deleteFlag; private int tempPosition; private int tempIndex; private float x; //FIXME: 실제 단말에 넣을 때 저장 경로 sdcard로 변경 // private static final String PATH = "/data/data/com.ybproject.diarymemo/"; private static final String PATH = "/sdcard/DiaryNotepad/DrawNote/"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list_draw); findViewById(R.id.btn_add).setOnClickListener(this); list_menu = (LinearLayout) findViewById(R.id.list_menu); list_menu.setVisibility(View.GONE); findViewById(R.id.btn_edit).setOnClickListener(this); findViewById(R.id.btn_share).setOnClickListener(this); findViewById(R.id.btn_setting).setOnClickListener(this); findViewById(R.id.btn_check).setOnClickListener(this); findViewById(R.id.btn_delete).setOnClickListener(this); findViewById(R.id.btn_notemain).setOnClickListener(this); mTodoList = new ArrayList<DrawNoteList_Row>(); selectedPosition = -1; PaintDrawable d = new PaintDrawable(Color.TRANSPARENT); getListView().setSelector(d); //서비스 해제 AlarmManager am = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(DrawNoteList.this, DrawNoteNotification.class); PendingIntent pi = PendingIntent.getService(DrawNoteList.this, 0, intent, 0); am.cancel(pi); NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); nm.cancelAll(); } @Override protected void onRestart() { mTodoList = new ArrayList<DrawNoteList_Row>(); selectedPosition = -1; list_menu.setVisibility(View.GONE); super.onRestart(); } @Override protected void onResume() { dbCon = new DrawNoteDB(this); mTodoList = dbCon.select_todo(); // list_menu.setVisibility(View.GONE); mAdapter = new ListAdapter(this, R.layout.list_row, mTodoList); setListAdapter(mAdapter); super.onResume(); } @Override protected void onStop() { dbCon.closeTodo(); super.onStop(); } @Override protected void onDestroy() { super.onDestroy(); DrawNoteNotification.schedule(DrawNoteList.this); // 서비스 시작 Intent intent = new Intent("DRAWNOTE_END"); sendBroadcast(intent); } public void onClick(View v) { Intent intent; switch(v.getId()) { case R.id.btn_add: intent = new Intent(DrawNoteList.this, DrawNoteBoard.class); startActivity(intent); //finish(); break; case R.id.btn_edit: intent = new Intent(DrawNoteList.this, DrawNoteBoard.class); intent.putExtra("todoIndex", selectedIndex); intent.putExtra("widget", selectedWidget); intent.putExtra("noti", selectedNoti); intent.putExtra("notiDate", selectedNotiDate); startActivity(intent); //finish(); break; case R.id.btn_share: Intent i= new Intent(android.content.Intent.ACTION_SEND); i.setType("image/jpeg"); i.putExtra(android.content.Intent.EXTRA_STREAM, Uri.parse("file://" + PATH + selectedIndex + ".jpg")); startActivity(Intent.createChooser(i, "Send to")); break; case R.id.btn_setting: intent = new Intent(DrawNoteList.this, DrawNoteOptionDialog.class); intent.putExtra("todoIndex", selectedIndex); intent.putExtra("widget", selectedWidget); intent.putExtra("noti", selectedNoti); intent.putExtra("notiDate", selectedNotiDate); startActivity(intent); break; case R.id.btn_check: if (mTodoList.get(selectedPosition).getchecked() == 0) { //체크 dbCon.setChecked(selectedIndex, 1); mTodoList.get(selectedPosition).setchecked(1); setListAdapter(mAdapter); } else{ dbCon.setChecked(selectedIndex, 0); mTodoList.get(selectedPosition).setchecked(0); setListAdapter(mAdapter); } break; case R.id.btn_delete: deleteFlag = true; alertDialog(); break; //다시 메모장 으로 이동한다. case R.id.btn_notemain: Intent intent_home = new Intent(DrawNoteList.this, DiaryMemoList.class); startActivity(intent_home); finish(); break; } } public void alertDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(this.getResources().getText(R.string.delete_confirmation)) .setCancelable(false) .setPositiveButton(this.getResources().getText(R.string.dialog_confirm), new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { if(deleteFlag){ DrawNoteList_Row temp = new DrawNoteList_Row(mTodoList.get(selectedPosition)); selectedIndex = temp.gettodoIndex(); mTodoList.remove(selectedPosition); //가장 끝 리스트가 지워졌을 경우 if(selectedPosition == mTodoList.size()){ selectedPosition--; } //리스트가 더이상 없는경우 if(mTodoList.isEmpty()){ selectedPosition = -1; list_menu.setVisibility(View.GONE); } setListAdapter(mAdapter); dbCon.delete_todo(selectedIndex); } else{ mTodoList.remove(tempPosition); setListAdapter(mAdapter); dbCon.delete_todo(tempIndex); list_menu.setVisibility(View.GONE); } } }) .setNegativeButton(this.getResources().getText(R.string.dialog_cancel), new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); AlertDialog alert = builder.create(); alert.show(); } // //////////////////////////List Adapter///////////////////////// public class ListAdapter extends ArrayAdapter<DrawNoteList_Row> { private ArrayList<DrawNoteList_Row> items; public ListAdapter(Context context, int textViewResourceId, ArrayList<DrawNoteList_Row> objects) { super(context, textViewResourceId, objects); items = objects; } @Override public View getView(final int position, View convertView, ViewGroup parent) { View v = convertView; final ViewHolder vh; final DrawNoteList_Row temp; if (v == null) { LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.list_row, null); ImageView image = (ImageView) v.findViewById(R.id.image); ImageView check = (ImageView) v.findViewById(R.id.check); TextView date = (TextView) v.findViewById(R.id.date); ImageView widget = (ImageView) v.findViewById(R.id.widget); ImageView noti = (ImageView) v.findViewById(R.id.noti); ImageView check_back = (ImageView) v.findViewById(R.id.check_back); ImageView select_back = (ImageView) v.findViewById(R.id.select_back); vh = new ViewHolder(); vh.image = image; vh.checked = check; vh.notiDate = date; vh.widget = widget; vh.noti = noti; vh.check_back = check_back; vh.select_back = select_back; v.setTag(vh); } else { vh = (ViewHolder) v.getTag(); } temp = new DrawNoteList_Row(items.get(position)); vh.image.setImageBitmap(temp.getImage()); if (temp.getchecked() == 1) { vh.checked.setVisibility(View.VISIBLE); vh.check_back.setVisibility(View.VISIBLE); } else { vh.checked.setVisibility(View.INVISIBLE); vh.check_back.setVisibility(View.GONE); } if (temp.getWidget() == 1) { vh.widget.setVisibility(View.VISIBLE); } else { vh.widget.setVisibility(View.INVISIBLE); } if (temp.getNoti() == 1) { vh.noti.setVisibility(View.VISIBLE); String date = temp.getNotiDate(); date = date.substring(0, date.indexOf(" ")); vh.notiDate.setText(date); } else { vh.noti.setVisibility(View.INVISIBLE); vh.notiDate.setText(""); } if(selectedPosition == position){ vh.select_back.setVisibility(View.VISIBLE); list_menu.setVisibility(View.VISIBLE); } else{ vh.select_back.setVisibility(View.GONE); } v.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if(event.getAction() == event.ACTION_DOWN){ v.setBackgroundColor(Color.WHITE); x = event.getX(); } else if(event.getAction() == event.ACTION_UP){ if(event.getX()-x > 50){ if (mTodoList.get(position).getchecked() == 0) { //체크 mTodoList.get(position).setchecked(1); setListAdapter(mAdapter); dbCon.setChecked(temp.gettodoIndex(), 1); } else { //삭제 deleteFlag = false; tempPosition = position; tempIndex = temp.gettodoIndex(); alertDialog(); } } else if(event.getX()-x < -50){ if(mTodoList.get(position).getchecked() == 1){ //체크해제 mTodoList.get(position).setchecked(0); setListAdapter(mAdapter); dbCon.setChecked(temp.gettodoIndex(), 0); } } else{ // 리스트 클릭 리스너 if(list_menu.getVisibility() == View.GONE){ //리스트 처음선택 list_menu.setVisibility(View.VISIBLE); vh.select_back.setVisibility(View.VISIBLE); selectedIndex = temp.gettodoIndex(); selectedNoti = temp.getNoti(); selectedNotiDate = temp.getNotiDate(); selectedWidget = temp.getWidget(); selectedPosition = position; } else{ if(selectedPosition != position){ //리스트선택된 상태에서 다른리스트 선택 selectedIndex = temp.gettodoIndex(); selectedNoti = temp.getNoti(); selectedNotiDate = temp.getNotiDate(); selectedWidget = temp.getWidget(); selectedPosition = position; setListAdapter(mAdapter); }else{ //리스트 선택해제 list_menu.setVisibility(View.GONE); selectedPosition = -1; setListAdapter(mAdapter); } } } } return true; } }); return v; } } static class ViewHolder { ImageView image; ImageView checked; TextView notiDate; ImageView widget; ImageView noti; ImageView check_back; ImageView select_back; } }
java
CUET 2022: Here are some guidelines for the aspirants to improve their preparation through mock practice and master domain subject performances. By India Today Web Desk: The second phase of the CUET (UG) will commence on August 4. As CUET is the second biggest entrance exam in India, surpassing JEE registrations, there is anxiety among students over phase II of the exam. But some time is left to work on the preparation strategy to ace the upcoming exam. Here are some guidelines and guru mantras for the aspirants to improve their preparation through mock practice and master domain subject performances. CUET, like all competitive exams, is all about relative performance or percentile scores. In other words, if SRCC has 100 seats in B. Com (Hons), then only the top 100 students from a massive aspirant world of 2. 5 lakh students will make it to this course. Taking mocks in adequate numbers helps you build stamina for the exam on the computer and across multiple subjects and over a few hours at a stretch. This stamina building must not be underestimated. Also, performance analysis at the deeper level - me vs myself and me vs others - helps in building a better approach and temperament for you. MCQ is a new thing for a youngster like you in your career. Mocks helps you master MCQ through a variety of ways. Applying knowledge, using logical reasoning to shortlist, elimination of choices are all important ways to master MCQ. Mocks help you do it effectively. Many students make the mistake of taking mocks but don't analyse it enough to generate insights for their own strategy. Item-wise analysis, commonly found errors, patterns in your performance, time - accuracy analysis etc are all important things you will learn when you analyse your performance thoroughly. Your faculty will also help you with insight through personal feedback and input. Mocks help you develop a revision roadmap for the last couple of weeks. Your time is valuable and not much time is left. So, the laser beam revision strategy is crucial. There are always areas, topics, types of questions that could be your Achilles heel. Knowing these is important. Avoiding weak areas is as important a strategy as focusing and cracking your strong areas with focus. Mocks help you develop this approach with input from your mentor or teacher. CUET gives you five marks for a right answer and one negative mark for a wrong answer. Statistically, this means you must not leave any question unanswered. So, in questions where you are in a dilemma, you can eliminate choices and give it your best attempt from the shortlisted choices. The mock tests and analysis help you to develop this skill in the coming weeks. Winning in mind is the first step to winning on the field. Mocks helps you do helps through simulation of various aspects, including the paper format, the anxiety, the competition and the exam environment. Make sure you don't show up for the real CUET exam by doing half a dozen mocks with all seriousness. By Sujatha Kshirsagar, Faculty & Chief Business officer, Career Launcher.
english
<gh_stars>0 from setuptools import setup,find_packages setup( name = "Freenove_DHT", version = "V1.0.0", description = "Read DHT Sensor", author = "Freenove", url = "http://www.freenove.com", license = " ", packages = find_packages(), scripts = ["Freenove_DHT.py"], )
python
{ "id": 164768, "name": "Godot Docs Wide", "description": "Tiny tweak that makes Godot use the full width of the browser. Can be used with other themes.", "user": { "id": 311697, "name": "cwookdev", "email": "redacted", "paypal_email": null, "homepage": null, "about": null, "license": null }, "updated": "2020-04-23T04:21:08.000Z", "weekly_install_count": 0, "total_install_count": 5, "rating": null, "after_screenshot_name": "https://userstyles.org/style_screenshots/164768_after.png?r=1590566777", "obsoleting_style_id": null, "obsoleting_style_name": null, "obsolete": 0, "admin_delete_reason_id": null, "obsoletion_message": null, "screenshots": [ "https://userstyles.org/style_screenshots/164768_additional_31955.png?r=1590566777", "https://userstyles.org/style_screenshots/164768_additional_31956.png?r=1590566777" ], "license": "publicdomain", "created": "2018-10-07T02:56:53.000Z", "category": "site", "raw_subcategory": "godotengine", "subcategory": "godotengine", "additional_info": "April 22nd, 2020:\r\nFixed for new docs version. Also added support for https docs url.", "style_tags": [], "css": "@-moz-document url-prefix(\"http://docs.godotengine.org/\"), url-prefix(\"https://docs.godotengine.org/\") {\r\n.wy-nav-content {\r\n max-width: 100% !important;\r\n }\r\n\r\n.wy-body-for-nav {\r\n max-width: 100% !important;\r\n }\r\n}", "discussions": [], "discussionsCount": 0, "commentsCount": 0, "userjs_url": "/styles/userjs/164768/godot-docs-wide.user.js", "style_settings": [] }
json
The tussle within the Saifai clan has intensified since Mulayam’s niece Sandhya Yadav declared herself a BJP candidate for the district panchayat member’s post from Mainpuri on April 7. All is not well in the family of Samajwadi Party (SP) patriarch and former chief minister Mulayam Singh Yadav. This year, the Holi festival on March 29 made public the fissures in the family. For the first time, an unwell Mulayam Singh Yadav did not reach his native village Saifai in Etawah district to celebrate Holi. Mulayam’s son and SP national president Akhilesh Yadav was playing Holi with his supporters at his father’s haveli in Saifai. Meanwhile, Shivpal Singh Yadav, the patriarch’s younger brother, was celebrating with his supporters at the local SS College a short distance away. The big news was that the Yadav first family was celebrating Holi separately in Saifai. Mulayam’s family has been influential in the Lok Sabha seats of Etawah, Mainpuri, Firozabad and Kannauj for a long time. There are a total of 20 assembly seats in these four Lok Sabha constituencies. In the 2012 assembly election, the SP had won an unprecedented 17 of them. Senior advocate in Mainpuri Ajay Singh says, “The Mulayam Yadav family had split into the camps of Akhilesh and Shivpal before the 2017 assembly election and they had to bear the brunt of this. The SP, which formed the government by winning 224 seats in 2012, could manage just 47 in the 2017 election. ” Worse, on their home turf, the SP could win only six of the 20 seats, with the BJP taking the other 14. Even so, Mainpuri stayed true to the SP, the party won four of the five assembly seats there. After the Lok Sabha election, the BJP started focusing on Mainpuri even more. In August 2019, Ram Naresh Agnihotri, the BJP legislator from Bhogaon assembly seat in Mainpuri, was given a cabinet minister’s post with charge of the excise department in the Yogi Adityanath government. In October 2020, Geeta Shakya, a firebrand BJP leader in Mainpuri, got nominated to the Rajya Sabha. She has been very active in the Shakya community-dominated areas of Mainpuri. The BJP now has also got Ashu Diwakar, prominent local leader and a former district panchayat president of Mainpuri, on their side. Ashutosh Saxena, an associate professor in the political science department of Christ Church College in Kanpur, says, “Mulayam’s family is currently divided into three political camps, the Mulayam camp, the Akhilesh camp and the Shivpal camp. With Mulayam almost out of the game due to ill health, and the Akhilesh and Shivpal camp at loggerheads, the Yadav voters are confused on whom to support. The BJP could take political advantage of this. ” The 2022 assembly election will be a real test of the electoral standing of the Samajwadi Party and of rival claimants in the family to the party’s legacy.
english
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "StanwoodDebugger", "version": "1.3", "summary": "Stanwood debugger provide live view debugging", "description": "Live debugger for:\n 1. Analytics\n 2. Crashes\n 3. Logs\n 4. Networking\n 5. Errors", "homepage": "https://github.com/stanwood/Stanwood_Debugger_iOS", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "stanwood": "<EMAIL>" }, "source": { "git": "https://github.com/stanwood/Stanwood_Debugger_iOS.git", "tag": "1.3" }, "swift_versions": "5.0", "platforms": { "ios": "10.0" }, "source_files": [ "StanwoodDebugger/Controller/**/*", "StanwoodDebugger/Views/**/*", "StanwoodDebugger/Modules/**/*", "StanwoodDebugger/Model/**/*", "StanwoodDebugger/Protocols/**/*", "StanwoodDebugger/Extensions/**/*" ], "resource_bundles": { "StanwoodDebugger": [ "StanwoodDebugger/Assets/*", "StanwoodDebugger/Resources/*", "StanwoodDebugger/Views/**/*.xib", "StanwoodDebugger/Modules/**/*.xib" ] }, "dependencies": { "Pulsator": [ ], "StanwoodCore": [ ], "SourceModel": [ ], "Toast-Swift": [ "~> 4.0.1" ] }, "swift_version": "5.0" }
json
Right-handed batsman, KL Rahul made a comeback in the training camp of the India squad members for Asia Cup 2023 in Alur. The star wicketkeeper-batsman was out of the pitch after he picked up a thigh injury during an Indian Premier League (IPL) 2023 match between Lucknow Super Giants (LSG) and Royal Challengers Bangalore (RCB) while fielding. Following this, the player went through surgery and was in the rehabilitation process for months at the National Cricket Academy (NCA) in Bengaluru. According to Star Sports, on a good note, KL Rahul has already returned to the crease and started his net practice in Alur and is facing the quality bowlers who were roped by the team management for net practice. For the preparation of the Asia Cup 2023, the Men in Blues team management roped in high-quality bowlers to help the Indian batsmen in the net practice. Bowlers like Umran Malik, Kuldeep Sen, Tushar Deshpande, Yash Dayal, and spinners Sai Kishore and Rahul Chahar have already joined the squad to assist the 17-member squad. Ajit Agarkar-led India chief selection committee announced Asia Cup 2023’s 17-member squad on Monday (August 21st) and named Kl Rahul in the squad. However, in the press conference, Ajit Agarkar said that Kl Rahul picked a niggle during practice matches at NCA and confirmed that it is different from his thigh. Agarkar also gave a ray of hope to the fans and confirmed that he will return to the first eleven by the second or third match of the tournament and that is why Sanju Samson is been traveling as a backup player. “Shreyas Iyer has been declared completely fit. KL Rahul, in the last few days, not his original injury, but he has picked up a niggle. That’s why Sanju Samson is at the moment traveling with us. But the physios, I am sure, will get a report, at some stage, they are all expected to be fit. If not at the start of the Asia Cup, probably from the 2nd and 3rd game (Rahul to be fit). He is well on track. Shreyas Iyer has been passed fit. Two important teams for us. We don’t have to pick the World Cup team till September 5. That gives us more time,” Ajit Agarkar said during a press conference on Monday. Rohit Sharma-led India start their Asia Cup 2023 journey against Pakistan on Saturday (September 2nd). The match will be played at Pallekele International Cricket Stadium in Sri Lanka.
english
<reponame>typewig/bitwig-api-proxy import ApiProxy from './ApiProxy'; import DeviceChain from './DeviceChain'; import Device from './Device'; class DeviceBank extends ApiProxy { constructor(target) { super(target); this._extendMethodClassMap({ 'getDeviceChain': DeviceChain, 'getDevice': Device, }); } } /** * This interface is used for navigation of device chains in Bitwig Studio. * Instances are configured with a fixed number of devices and provide access to a excerpt * of the devices inside a device chain. Various methods are provided for scrolling to different sections * of the device chain. It basically acts like a window moving over the devices. * * To receive an instance of DeviceBank call {@link Track#createDeviceBank}. * * @see {@link Track#createDeviceBank} * @since Bitwig Studio 1.1 */ declare interface DeviceBank { /** * Returns the object that was used to instantiate this device bank. * Possible device chain instances are tracks, device layers, drums pads, or FX slots. * * @return {DeviceChain} the requested device chain object * @since Bitwig Studio 1.1 */ getDeviceChain(): DeviceChain; /** * Returns the device at the given index within the bank. * * @param {int} indexInBank the device index within this bank, not the position within the device chain. Must be in the range [0..sizeOfBank-1]. * @return {Device} the requested device object * @since Bitwig Studio 1.1 */ getDevice(indexInBank?: number): Device; /** * Scrolls the device window one page up. * * @since Bitwig Studio 1.1 */ scrollPageUp(): void; /** * Scrolls the device window one page down. * * @since Bitwig Studio 1.1 */ scrollPageDown(): void; /** * Scrolls the device window one device up. * * @since Bitwig Studio 1.1 */ scrollUp(): void; /** * Scrolls the device window one device down. * * @since Bitwig Studio 1.1 */ scrollDown(): void; /** * Makes the device with the given position visible in the track bank. * * @param {int} position the position of the device within the device chain * @since Bitwig Studio 1.1 */ scrollTo(position?: number): void; /** * Registers an observer that reports the current device scroll position. * * @param {function} callback a callback function that takes a single integer parameter * @param {int} valueWhenUnassigned the default value that gets reports when the device chain is not yet connected to a Bitwig Studio document * @since Bitwig Studio 1.1 */ addScrollPositionObserver(callback?: Function, valueWhenUnassigned?: number): void; /** * Registers an observer that reports if the device window can be scrolled further up. * * @param {function} callback a callback function that takes a single boolean parameter * @since Bitwig Studio 1.1 */ addCanScrollUpObserver(callback?: Function): void; /** * Registers an observer that reports if the device window can be scrolled further down. * * @param {function} callback a callback function that takes a single boolean parameter * @since Bitwig Studio 1.1 */ addCanScrollDownObserver(callback?: Function): void; /** * Registers an observer that reports the total device count of the device chain * (not the number of devices accessible through the bank window). * * @param {function} callback a callback function that receives a single integer parameter * @since Bitwig Studio 1.1 */ addDeviceCountObserver(callback?: Function): void; } export default DeviceBank;
typescript
<reponame>Ami-Solution/dex-widget<filename>packages/widget/src/components/Widget.tsx import BN from 'bn.js'; import * as React from 'react'; import { Subscription } from 'rxjs'; import { initWidget, WidgetState, WidgetStore } from '../model/widget-state'; import { closeNoWalletModal } from '../model/widget-state/actions'; import NoWalletModal from './NoWalletModal'; import screens from './screens'; import './Widget.css'; import WidgetLoader from './WidgetLoader'; export interface WidgetManagerState { widgetError: boolean; widgetState: null | WidgetState; } export interface WidgetProps { widgetId: string; operations: string | null; tokens: string | null; } const classes = require('./Widget.css'); function connectDevTools(widgetId: string) { if ((window as any).__REDUX_DEVTOOLS_EXTENSION__) { return (window as any).__REDUX_DEVTOOLS_EXTENSION__.connect({ name: widgetId, serialize: { replacer: (key: string, value: any) => { if (key === 'eth') { return '<<ETH>>'; } if ( value != null && typeof value === 'object' && value.constructor !== undefined && BN.isBN(value) ) { return (value as BN).toString(); } else { return value; } }, }, }); } return { send: () => { return; }, }; } class Widget extends React.Component<WidgetProps, WidgetManagerState> { private store: WidgetStore; private subscription: Subscription | null; private devTools: any = connectDevTools(this.props.widgetId); constructor(props: WidgetProps) { super(props); this.state = { widgetState: null, widgetError: false, }; } componentWillUnmount() { if (this.subscription) { this.subscription.unsubscribe(); } } async componentDidMount() { try { this.store = await initWidget(this.props.widgetId, this.props.operations, this.props.tokens); this.subscription = this.store.changes.subscribe({ next: change => { this.devTools.send(change.action, change.state); this.setState({ widgetState: change.state }); }, error: err => { console.error('store-error', err); this.setState({ widgetError: true }); }, }); } catch (err) { console.error('init-error:', err); this.setState({ widgetError: true }); } } refresh: React.MouseEventHandler<any> = e => { e.stopPropagation(); window.location.reload(true); }; closeNoWalletModal = () => { this.store.dispatch(closeNoWalletModal()); }; render() { if (this.state.widgetError) { return ( <div className={classes.widgetError}> <p>There was an error loading the app</p> <button className={classes.btn} onClick={this.refresh}> Click here to refresh </button> </div> ); } if (!this.state.widgetState) { return <WidgetLoader />; } const stage = this.state.widgetState.tradeExecution.stage; const ScreenRenderer = screens[stage].Screen; const screenMapper = screens[stage].mapper(this.store); if (this.state.widgetState.noWalletModalOpen) { return ( <> <ScreenRenderer {...screenMapper(this.state.widgetState)} /> <NoWalletModal closeModal={this.closeNoWalletModal} /> </> ); } else { return <ScreenRenderer {...screenMapper(this.state.widgetState)} />; } } } export default Widget;
typescript
<gh_stars>0 package org.zstack.sdk; public class SecurityMachineInventory { public java.lang.String uuid; public void setUuid(java.lang.String uuid) { this.uuid = uuid; } public java.lang.String getUuid() { return this.uuid; } public java.lang.String zoneUuid; public void setZoneUuid(java.lang.String zoneUuid) { this.zoneUuid = zoneUuid; } public java.lang.String getZoneUuid() { return this.zoneUuid; } public java.lang.String name; public void setName(java.lang.String name) { this.name = name; } public java.lang.String getName() { return this.name; } public java.lang.String secretResourcePoolUuid; public void setSecretResourcePoolUuid(java.lang.String secretResourcePoolUuid) { this.secretResourcePoolUuid = secretResourcePoolUuid; } public java.lang.String getSecretResourcePoolUuid() { return this.secretResourcePoolUuid; } public java.lang.String description; public void setDescription(java.lang.String description) { this.description = description; } public java.lang.String getDescription() { return this.description; } public java.lang.String managementIp; public void setManagementIp(java.lang.String managementIp) { this.managementIp = managementIp; } public java.lang.String getManagementIp() { return this.managementIp; } public java.lang.String type; public void setType(java.lang.String type) { this.type = type; } public java.lang.String getType() { return this.type; } public java.lang.String model; public void setModel(java.lang.String model) { this.model = model; } public java.lang.String getModel() { return this.model; } public java.lang.String state; public void setState(java.lang.String state) { this.state = state; } public java.lang.String getState() { return this.state; } public java.lang.String status; public void setStatus(java.lang.String status) { this.status = status; } public java.lang.String getStatus() { return this.status; } public java.sql.Timestamp createDate; public void setCreateDate(java.sql.Timestamp createDate) { this.createDate = createDate; } public java.sql.Timestamp getCreateDate() { return this.createDate; } public java.sql.Timestamp lastOpDate; public void setLastOpDate(java.sql.Timestamp lastOpDate) { this.lastOpDate = lastOpDate; } public java.sql.Timestamp getLastOpDate() { return this.lastOpDate; } }
java
Stephen A. Smith has never been shy about sharing his opinions. Especially when it comes to the NBA. He has taken many players to task for how they play or how they behave off the court. Today on ESPN’s 'First Take', Smith aimed his sights at LA Clippers star forward Kawhi Leonard. Smith has an issue with how many games Leonard tends to miss each NBA season. Smith, who was alongside NFL veteran Keyshawn Johnson for the segment, let everyone know how he felt about Kawhi’s lack of durability: "When we talk about a cat that is an absolute professional at missing games, Kawhi [Leonard], nobody beats him. ... Can we see you play please?" Stephen A. gave Leonard a pass for missing the 2021-22 NBA season as he was recovering from a torn ACL. Smith feels that Leonard doesn’t get enough criticism for intentionally missing games. The basketball media is quick to judge Anthony Davis for always being injured. But why does Kawhi Leonard get a pass? Smith asserts that it's because of Leonard's reputation as a fierce competitor on the court. He is a two-time NBA Champion and two-time NBA Finals MVP. Leonard is also one of the best two-way players in the league. Since entering the league in 2011, the most games Kawhi Leonard has ever played in a single season is 74. He did that back with the San Antonio Spurs during the 2016-2017 season. He has only passed the 70-game mark twice in his career. Since he has been with the LA Clippers, Leonard has failed to play at least 60 games in a season. During Leonard’s lone season with the Toronto Raptors in 2018/19, he only managed to play in 60 regular-season games. He was available in the playoffs when it mattered the most. Leonard averaged 30.9 points on 49.2% shooting, and 9.1 rebounds through 24 playoff games that year. The Raptors won their first-ever NBA championship, and Leonard was awarded the NBA Finals MVP. In 11 NBA seasons, Kawhi Leonard has played in 576 out of a possible 902 regular season games. That means he's played just 63.9% of the time throughout his career. It averages out to only 52 games in an 82-game season. That's simply not enough for a player of his caliber. Leonard is the poster for the NBA’s load management trend. There is an old saying in sports: "the best ability is availability." Unfortunately, that is not a strong suit for the 31-year old. Kawhi Leonard and the Clippers will open their 2022-23 season against the LA Lakers on October 20. Check out all NBA Trade Deadline 2024 deals here as big moves are made!
english
<reponame>illusive19/Torrent2GDrive { "type": "service_account", "project_id": "saf-1tqg334ujpwq-4l7nnxmfcanzx", "private_key_id": "a3c1752808996290e3817be31262baaf999c5df0", "private_key": "-----<KEY>", "client_email": "<EMAIL>", "client_id": "107675612713553388381", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/mfc-u5zmw97o4xthqb2x62sofyvwqu%40saf-1tqg334ujpwq-4l7nnxmfcanzx.iam.gserviceaccount.com" }
json
<reponame>aksel-blaise/git-to-the-point # 41AG79-Point1 Located on a knoll, the full extent of this site remains undetermined. During the 1995 survey, it was noted that the densest concentrations of lithic debris occurred on the easternmost area of the site, and was dominated by petrified wood and local cherts. In addition to the lithic debris, sandy paste sherds were also noted throughout the site; although sparse in number. It is unknown how much of this site remains intact, and testing was recommended for soils within the tree line to determine site boundaries. This site was occupied during both Late Archaic and Early Caddo periods, based on the recovery of temporally diagnostic artifacts from the site surface. The earlier component included a [Yarbrough dart point](../yarbrough/41AG79-Point1.md) made from a local reddish-brown chert. The Early Caddo period component included this reddish-brown silicified wood Alba arrow point. ![](../../../img/41AG79-Point2.png)
markdown
Reference (R) Jack Kerouac are a lover of all that is beautiful, whether it is a work of art, a pleasant landscape or a person of good appearance. Not only do Jack Kerouac value beauty as measured by the eye, but Jack Kerouac are attracted also by beauty in other forms. Good music appeals to Jack Kerouac, a good character possessed by an individual appeals to Jack Kerouac. Jack Kerouac are a connoisseur of everything that is above ordinary.Jack Kerouac have a gift for making other people happy. Jack Kerouac know how to comfort those who are troubled and Jack Kerouac know how to make them pleased with themselves. This is a rare gift and there are not enough people like Jack Kerouac in the world.Jack Kerouac are not as practical as some people, and in keeping appointments, Jack Kerouac are not too punctual.Jack Kerouac are somewhat over-sensitive and there are times when Jack Kerouac are put out needlessly. But Jack Kerouac's displeasure does not show itself in the form of a squabble. Disharmony is a thing Jack Kerouac avoid at all costs. May be, Jack Kerouac nurse a grievance, but this is something that others are never allowed to sense. Jack Kerouac keep it strictly to Jack Kerouac'sself. Jack Kerouac are a courageous person. Jack Kerouac are so impulsive, there is no time to worry or fear Jack Kerouac's actions. Jack Kerouac have periodic flashes of such insight that Jack Kerouac's intuition borders on genius. Many seek Jack Kerouac's company, for there is much excitement about Jack Kerouac. An excellent character reader, Jack Kerouac are often attracted to the occult, which gives Jack Kerouac a deeper understanding of life. Jack Kerouac's remarkable vision enables Jack Kerouac to forge ahead and be successful in understanding any difficulties that are preventing Jack Kerouac's growth.Jack Kerouac have the habit of being naturally intuitive. Jack Kerouac grasp things quite easily and swiftly and also manage to create Jack Kerouac's opinion about them. This speciality of Jack Kerouac'ss can take Jack Kerouac to the top. Because of Jack Kerouac's philosophies regarding life, Jack Kerouac can candidly live Jack Kerouac's life and center Jack Kerouac's focus to the necessary aspects. This is why Jack Kerouac have profound knowledge of more than one subject and Jack Kerouac will be interested in subjects which are associated with law and business. Jack Kerouac have captive powers, which will help Jack Kerouac in understanding the smallest of things and this will be applicable on Jack Kerouac's studies also. Jack Kerouac would like to observe rules and regulations while studying and may also find Jack Kerouac's name amongst great intellectuals. Jack Kerouac are more inward than most. If Jack Kerouac were to appear in front of a large group of people, Jack Kerouac would suffer from stage phobia. Jack Kerouac are best motivated when Jack Kerouac are alone to do whatever Jack Kerouac want to do, and at Jack Kerouac's own pace.
english
<filename>Apps/81329.json {"81329":{"success":true,"data":{"type":"movie","name":"Assassin's Creed Revelations Ancestors Char Pack Trailer","steam_appid":81329,"required_age":0,"is_free":false,"detailed_description":"","about_the_game":"","short_description":"","fullgame":{"appid":"201870","name":"Assassin's Creed\u00ae Revelations"},"header_image":"https:\/\/steamcdn-a.akamaihd.net\/steam\/apps\/81329\/header.jpg?t=1447355190","website":null,"pc_requirements":[],"mac_requirements":[],"linux_requirements":[],"developers":["Ubisoft Montreal"],"publishers":[""],"package_groups":[],"platforms":{"windows":true,"mac":false,"linux":false},"movies":[{"id":81329,"name":"Assassin's Creed Revelations Ancestors Char Pack Trailer","thumbnail":"https:\/\/steamcdn-a.akamaihd.net\/steam\/apps\/81329\/movie.293x165.jpg?t=1447355190","webm":{"480":"http:\/\/steamcdn-a.akamaihd.net\/steam\/apps\/81329\/movie480.webm?t=1447355190","max":"http:\/\/steamcdn-a.akamaihd.net\/steam\/apps\/81329\/movie_max.webm?t=1447355190"},"highlight":false}],"release_date":{"coming_soon":false,"date":"Jan 5, 2012"},"support_info":{"url":"","email":""},"background":""}}}
json
Facebook announced its ad network, Audience Network at F8 2014. With it, developers and publishers can serve targeted ads in their apps based on a user’s Facebook activity. For example, if you Like Game of Thrones on Facebook, expect to be served an HBO ad for the show in a partner app. While it’s extremely targeted to an individual, Facebook is not sharing personal information with third parties. Instead, it’s using the unique identifier on a mobile device. Here’s what happens when you load an app that’s using Audience Network to serve ads. When you sign into Facebook on a mobile device, that device shares the device’s unique identifier number (on an iOS device it’s called the IDFA while on Android it’s called the unique ID) That number is then associated with your Facebook account. When you launch an app that is part of the Audience Network on that same device, it pings Facebook with the device’s identifier number. Facebook sees that number and serves an ad to the app based on relevant information you’ve shared with Facebook. The ad appears in the app and personal information is never shared with the third-party. Advertisers get to extend the reach of their ads. Meanwhile users will get ads that are relevant to their interests. Get the most important tech news in your inbox each week.
english
<gh_stars>0 html, body { height: 100%; } body { margin: 0px; padding: 0px; font-family: 'Open Sans', sans-serif; font-size: 10pt; color: #000000; } h1, h2, h3 { margin: 0; padding: 0; } p, ol, ul { margin-top: 0px; } p { line-height: 200%; } strong { } a { color: #0000FF; } a:hover { text-decoration: none; } a img { border: none; } .image { display: inline-block; } .image img { display: block; width: 100%; } .image-full { display: block; width: 100%; margin: 0 0 2em 0; } .image-left { float: left; margin: 0 2em 2em 0; } .image-centered { display: block; margin: 0 0 2em 0; } .image-centered img { margin: 0 auto; width: auto; } img.border { } img.alignleft { float: left; } img.alignright { float: right; } img.aligncenter { margin: 0px auto; } hr { display: none; } .button-style { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #99CCBB; border-radius: 5px; box-shadow: 0px 0px 0px 5px rgba(255,255,255,0.1); border: 1px solid #8EBEAE; line-height: normal; text-align: center; text-decoration: none; text-transform: uppercase; text-shadow: 0px 1px 0px rgba(0,0,0,.2); font-size: 1em; font-weight: 400; color: #FFF !important; } .button-style a { text-decoration: none; color: #FFF !important; } ul.style3 { margin: 0; padding: 0; overflow: hidden; list-style: none; color: #6c6c6c } ul.style3 li { padding: 0px 0px 5px 0px; margin: 0 0 1em 0; } ul.style3 p { margin: 0; } ul.style3 a { display: block; text-decoration: none; color: #6c6c6c; } ul.style3 a:hover { text-decoration: underline; } ul.style3 h3 { padding: 8px 0em 5px 0em; text-transform: uppercase; font-size: 1.1em; font-weight: 700; color: #606060; } ul.style3-alt h3 { color: #FFFFFF; } ul.style3 .first { padding-top: 0px; background: none; } ul.style3 .date { float: left; position: relative; width: 150px; height: 35px; margin: 0em 0em 0em 0em; padding: 8px 0em 0em 0em; background: #99CCBB; border-radius: 1px; box-shadow: 0px 0px 0px 5px rgba(255,255,255,0.1); border: 1px solid #8EBEAE; line-height: normal; text-align: center; text-transform: uppercase; text-shadow: 0px 1px 0px rgba(0,0,0,.2); font-size: 2em; font-weight: 800; color: #FFF; } ul.style3 .date:after { content: ''; display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 6px; } ul.style3 .date b { margin: 0; padding: 0; display: block; margin-top: -5px; font-size: 1.8em; font-weight: 700; color: #FFFFFF; } ul.style3 .date a { color: #FFFFFF !important; } ul.style3 .date a:hover { text-decoration: none; } ul.style5 { margin: 0; padding: 0; list-style: none; } ul.style5 li { clear: both; border-top: 1px solid #8EBEAE; } ul.style5 span { padding: 1em 0em; line-height: 1.75em; } ul.style5 .address { float: left; width: 80px; display: inline-block; font-weight: 600; } ul.style5 .address-01 { float: left; display: inline-block; } ul.style5 .mail { float: left; width: 80px; display: inline-block; font-weight: 600; } ul.style5 .mail-01 { display: inline-block; } ul.style5 .phone { float: left; width: 80px; display: inline-block; font-weight: 600; } ul.style5 .phone-01 { float: left; display: inline-block; } ul.style5 .first { padding-top: 0em !important!; border-top: none; } /** WRAPPER */ #wrapper-bg { overflow: hidden; background: url(images/bg01.jpg) repeat; } #wrapper { margin-top: 30px; padding-bottom: 50px; background: #FFF; box-shadow: 0px 10px 0px rgba(0,0,0,0.03), 0px -10px 0px rgba(0,0,0,0.03); } .container { width: 1200px; margin: 0px auto; } .clearfix { clear: both; } /** HEADER */ #header { overflow: hidden; border-bottom: 1px solid #E7E7E7; } /** LOGO */ #logo { float: left; width: 300; } #logo h1 a { display: block; line-height: 100px; text-transform: uppercase; text-decoration: none; font-family: 'Archivo Narrow', sans-serif; font-size: 1.3em; color: #3E3E3E; } #logo span { color: #8EBEAE; } /** MENU */ #menu { float: right; width: 900px; } #menu ul { float: right; margin: 0px; padding: 30px 0px 0px 0px; list-style: none; line-height: normal; } #menu li { float: left; border-left: 1px solid #E7E7E7; } #menu a { display: block; padding: 10px 20px; margin: 0em 1em; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; font-family: 'Archivo Narrow', sans-serif; font-size: 1.10em; font-weight: 600; color: #99CCBB; } #menu .active a { background: #99CCBB; border-radius: 5px; box-shadow: 0px 0px 0px 5px rgba(255,255,255,0.1); border: 1px solid #8EBEAE; color: #FFFFFF; } #menu .active a:hover { background-color: #94C5B5; } #menu .active a:active { background-color: #8EBEAE; } #menu a:hover { text-decoration: none; } /** PAGE */ #page { } /** CONTENT */ #content { } /** SIDEBAR */ #sidebar { } /* Footer */ #footer-content { overflow: hidden; padding: 70px 0px 50px 0px; color: #515151; } #footer-content a { color: #515151; } #footer-content h2 { margin-bottom: 30px; text-transform: uppercase; color: #515151; } #footer-content #fbox1 { float: left; width: 384px; margin-right: 24px; } #footer-content #fbox2 { float: left; width: 446px; padding: 0px 20px; } #footer-content #fbox3 { float: right; width: 282px; } #footer { overflow: hidden; padding: 30px 0px; box-shadow: 0px -10px 0px rgba(0,0,0,0.03); } #footer p { text-align: center; color: #767676; } #footer a { color: #5f5f5f; } #banner { padding: 30px 0px; } /* Three Column Content */ #three-column { overflow: hidden; padding-top: 30px; } #three-column header { letter-spacing: -1px; text-transform: uppercase; margin-bottom: 2em; font-size: 1.5em; } #three-column .tbox1 h2, #three-column .tbox2 h2, #three-column .tbox3 h2 { margin-bottom: 1em; text-transform: uppercase; color: #515151; } #three-column .tbox1 { float: left; width: 384px; margin-right: 24px; } #three-column .tbox2 { float: left; width: 384px; } #three-column .tbox3 { float: right; width: 384px; } #welcome { font-size:20px; }
css
import { QueryType } from "../../Common/Enum"; import { DbContext } from "../../Data/DbContext"; import { Queryable } from "../../Queryable/Queryable"; import { QueryExpression } from "../../Queryable/QueryExpression/QueryExpression"; import { IQueryResult } from "../IQueryResult"; import { IQueryResultsParser } from "../IQueryResultsParser"; import { IQueryVisitor } from "../IQueryVisitor"; import { DQLDeferredQuery } from "./DQLDeferredQuery"; export class ToArrayDeferredQuery<T> extends DQLDeferredQuery<T[]> { constructor(queryable: Queryable<T>) { super(queryable); } protected getResultParser(queryExp: QueryExpression<T>): IQueryResultsParser<T[]> { const parser = this.dbContext.getQueryResultParser(queryExp, this.dbContext.queryBuilder); return (result: IQueryResult[], queries, dbContext: DbContext) => { let i = 0; result = result.where(() => queries[i++].type === QueryType.DQL).toArray(); return parser.parse(result, dbContext); }; } protected buildQuery(visitor: IQueryVisitor): QueryExpression { return this.queryable.buildQuery(visitor); } }
typescript
<filename>src/chat/functions/sendTextMessage.ts /*! * Copyright 2021 WPPConnect Team * * 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. */ import { defaultSendMessageOptions, LinkPreviewOptions, MessageButtonsOptions, RawMessage, SendMessageOptions, SendMessageReturn, } from '..'; import { prepareLinkPreview, prepareMessageButtons, sendRawMessage } from '.'; export type TextMessageOptions = SendMessageOptions & MessageButtonsOptions & LinkPreviewOptions; /** * Send a text message * * @category Message */ export async function sendTextMessage( chatId: any, content: any, options: TextMessageOptions = {} ): Promise<SendMessageReturn> { options = { ...defaultSendMessageOptions, ...options, }; let rawMessage: RawMessage = { body: content, type: 'chat', subtype: null, urlText: null, urlNumber: null, }; rawMessage = prepareMessageButtons(rawMessage, options); rawMessage = await prepareLinkPreview(rawMessage, options); return await sendRawMessage(chatId, rawMessage, options); }
typescript
#include "localdiscoveryservice.h" #include "automation_global.h" #include <qmsgpack/msgpack.h> #include <QUdpSocket> #include <QTimer> LocalDiscoveryService::LocalDiscoveryService(QObject *parent) : DiscoveryServiceBase(parent), m_udp(0), m_multicastGroup(QHostAddress(DEFAULT_MCAST_GROUP)), m_multicastPort(DEFAULT_MCAST_PORT) { m_timer = new QTimer(this); m_timer->setInterval(DEFAULT_LOCAL_DISCOVERY_INTERVAL); m_timer->setSingleShot(false); connect(m_timer, &QTimer::timeout, this, &LocalDiscoveryService::sendNotify); m_udp = new QUdpSocket(this); connect(m_udp, SIGNAL(readyRead()), this, SLOT(receiveDatagrams())); m_udp_tx = new QUdpSocket(this); } void LocalDiscoveryService::setNodeInfo(const QString &nodeName, const QStringList &nodeGroups, const QString &nodeAddress) { QVariantMap info; m_ourName = nodeName; info["name"] = m_ourName; info["groups"] = nodeGroups; info["address"] = nodeAddress; m_nodeInfo = MsgPack::pack(info); } bool LocalDiscoveryService::start() { if (m_udp->state() == QUdpSocket::BoundState) { m_error = "alredy started"; return false; } if (!m_udp->bind(QHostAddress::AnyIPv4, m_multicastPort, QUdpSocket::ShareAddress)) { m_error = "bind failed:" + m_udp->errorString(); return false; } //m_udp->setSocketOption(QAbstractSocket::MulticastLoopbackOption, true); if (!m_udp->joinMulticastGroup(m_multicastGroup)) { m_error = "can't join multicast group:" + m_udp->errorString(); return false; } m_timer->start(); return true; } bool LocalDiscoveryService::stop() { if (m_udp->state() != QUdpSocket::BoundState) { m_error = "already stopped"; return false; } m_udp->abort(); return true; } void LocalDiscoveryService::setMulticastGroup(const QHostAddress &group) { m_multicastGroup = group; } void LocalDiscoveryService::setMulticastPort(quint16 port) { m_multicastPort = port; } void LocalDiscoveryService::setNotifyInterval(int interval) { m_timer->setInterval(interval); } QString LocalDiscoveryService::errorString() const { return m_error; } void LocalDiscoveryService::sendNotify() { m_udp_tx->writeDatagram(m_nodeInfo, m_multicastGroup, m_multicastPort); } void LocalDiscoveryService::receiveDatagrams() { int size; QByteArray datagram; while (m_udp->hasPendingDatagrams()) { size = m_udp->pendingDatagramSize(); datagram.resize(size); quint16 port; m_udp->readDatagram(datagram.data(), size, 0, &port); QVariant notify = MsgPack::unpack(datagram); if (notify.isValid() && (QMetaType::Type)notify.type() == QMetaType::QVariantMap) { QVariantMap info = notify.toMap(); if (info["name"] != m_ourName) emit nodeFound(info["name"].toString(), info["groups"].toStringList(), info["address"].toString()); } } }
cpp
<reponame>Safal08/Hacktoberfest-1 { "word": "Usher", "definitions": [ "A person who shows people to their seats, especially in a cinema or theatre or at a wedding.", "An official in a law court whose duties include swearing in jurors and witnesses and keeping order.", "A person employed to walk before a person of high rank on special occasions.", "An assistant teacher." ], "parts-of-speech": "Noun" }
json
<filename>tests/provisioner-tests/test/provisioner/e2e_test.go package provisioner import ( "fmt" "strings" "sync" "testing" "github.com/google/uuid" "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/kyma-incubator/compass/components/director/pkg/graphql" "github.com/kyma-project/control-plane/components/provisioner/pkg/gqlschema" "github.com/kyma-project/control-plane/tests/provisioner-tests/test/testkit" "github.com/kyma-project/control-plane/tests/provisioner-tests/test/testkit/assertions" ) // TODO: Consider fetching logs from Provisioner on error (or from created Runtime) func Test_E2E_Gardener(t *testing.T) { t.Parallel() globalLog := logrus.WithField("TestID", testSuite.TestID) globalLog.Infof("Starting Kyma Control Plane Runtime Provisioner tests on Gardener") wg := &sync.WaitGroup{} for _, provider := range testSuite.gardenerProviders { wg.Add(1) go func(provider string) { defer wg.Done() defer testSuite.Recover() t.Run(provider, func(t *testing.T) { log := testkit.NewLogger(t, logrus.Fields{ "Provider": provider, "TestType": "end-to-end", }) // Provisioning runtime // Create provisioning input provisioningInput, err := testkit.CreateGardenerProvisioningInput(&testSuite.config, testSuite.config.Kyma.Version, provider) assertions.RequireNoError(t, err) runtimeName := fmt.Sprintf("provisioner-test-%s-%s", strings.ToLower(provider), uuid.New().String()[:4]) provisioningInput.RuntimeInput.Name = runtimeName // Provision runtime log.Log("Starting provisioning...") provisioningOperationID, runtimeID, err := testSuite.ProvisionerClient.ProvisionRuntime(provisioningInput) assertions.RequireNoError(t, err, "Error while starting Runtime provisioning") defer ensureClusterIsDeprovisioned(runtimeID, log) log.WithField("RuntimeID", runtimeID) log.WithField("ProvisioningOperationID", provisioningOperationID) // Get provisioning Operation Status log.Log("Getting operation status...") provisioningOperationStatus, err := testSuite.ProvisionerClient.RuntimeOperationStatus(provisioningOperationID) assertions.RequireNoError(t, err, "Error while getting operation id") assertions.AssertOperationInProgress(t, gqlschema.OperationTypeProvision, runtimeID, provisioningOperationStatus) // Wait for provisioning to finish log.Log("Waiting for provisioning to finish...") provisioningOperationStatus, err = testSuite.WaitUntilOperationIsFinished(ProvisioningTimeout, provisioningOperationID, log) assertions.RequireNoError(t, err) assertions.AssertOperationSucceed(t, gqlschema.OperationTypeProvision, runtimeID, provisioningOperationStatus) log.Log("Provisioning finished.") // Fetch Runtime Status log.Log("Getting Runtime status...") runtimeStatus, err := testSuite.ProvisionerClient.RuntimeStatus(runtimeID) assertions.RequireNoError(t, err) // Asserting Gardener Configuration log.Log("Verifying configuration...") assertGardenerRuntimeConfiguration(t, provisioningInput, runtimeStatus) // Check Runtime labels and status in Director log.Log("Checking Runtime labels and status in Director...") runtime, err := testSuite.DirectorClient.GetRuntime(runtimeID) assertions.RequireNoError(t, err) assertRuntimeFromDirector(t, runtime) log.Log("Preparing K8s client...") k8sClient := testSuite.KubernetesClientFromRawConfig(t, *runtimeStatus.RuntimeConfiguration.Kubeconfig) log.Log("Accessing API Server on provisioned cluster...") _, err = k8sClient.ServerVersion() assertions.RequireNoError(t, err) // TODO: Consider running E2E Runtime tests // Deprovisioning runtime log.Log("Starting Runtime deprovisioning...") deprovisioningOperationID, err := testSuite.ProvisionerClient.DeprovisionRuntime(runtimeID) assertions.RequireNoError(t, err) log.WithField("DeprovisioningOperationID", deprovisioningOperationID) // Get provisioning Operation Status deprovisioningOperationStatus, err := testSuite.ProvisionerClient.RuntimeOperationStatus(deprovisioningOperationID) assertions.RequireNoError(t, err) assertions.AssertOperationInProgress(t, gqlschema.OperationTypeDeprovision, runtimeID, deprovisioningOperationStatus) log.Log("Waiting for deprovisioning to finish...") deprovisioningOperationStatus, err = testSuite.WaitUntilOperationIsFinished(DeprovisioningTimeout, deprovisioningOperationID, log) assertions.RequireNoError(t, err) assertions.AssertOperationSucceed(t, gqlschema.OperationTypeDeprovision, runtimeID, deprovisioningOperationStatus) log.Log("Deprovisioning finished.") }) }(provider) } wg.Wait() } func ensureClusterIsDeprovisioned(runtimeId string, log *testkit.Logger) { log.Logf("Ensuring the cluster is deprovisioned...") deprovisioningOperationId, err := testSuite.ProvisionerClient.DeprovisionRuntime(runtimeId) if err != nil { log.Errorf("Ensuring the cluster is deprovisioned failed, cluster might have already been deprovisioned: %s", err.Error()) return } log.Logf("Deprovisioning operation id: %s", deprovisioningOperationId) deprovisioningOperationStatus, err := testSuite.WaitUntilOperationIsFinished(DeprovisioningTimeout, deprovisioningOperationId, log) if err != nil { log.Errorf("Error while waiting for deprovisioning operation to finish: %s", err.Error()) return } if deprovisioningOperationStatus.State != gqlschema.OperationStateSucceeded { log.Errorf("Ensuring the cluster is deprovisioned failed with operation status %s with message %s", deprovisioningOperationStatus.State, unwrapString(deprovisioningOperationStatus.Message)) } } func assertGardenerRuntimeConfiguration(t *testing.T, input gqlschema.ProvisionRuntimeInput, status gqlschema.RuntimeStatus) { assert.NotEmpty(t, status) assertRuntimeConfiguration(t, status) gardenerConfig := status.RuntimeConfiguration.ClusterConfig assertions.AssertNotNilAndNotEmptyString(t, gardenerConfig.Name) assertions.AssertNotNilAndNotEmptyString(t, gardenerConfig.Seed) assertions.AssertNotNilAndEqualString(t, input.ClusterConfig.GardenerConfig.Region, gardenerConfig.Region) assertions.AssertNotNilAndEqualString(t, input.ClusterConfig.GardenerConfig.KubernetesVersion, gardenerConfig.KubernetesVersion) assertions.AssertNotNilAndEqualInt(t, input.ClusterConfig.GardenerConfig.VolumeSizeGb, gardenerConfig.VolumeSizeGb) assertions.AssertNotNilAndEqualString(t, input.ClusterConfig.GardenerConfig.MachineType, gardenerConfig.MachineType) assertions.AssertNotNilAndEqualString(t, input.ClusterConfig.GardenerConfig.DiskType, gardenerConfig.DiskType) assertions.AssertNotNilAndEqualString(t, input.ClusterConfig.GardenerConfig.Provider, gardenerConfig.Provider) assertions.AssertNotNilAndEqualString(t, input.ClusterConfig.GardenerConfig.WorkerCidr, gardenerConfig.WorkerCidr) assertions.AssertNotNilAndEqualInt(t, input.ClusterConfig.GardenerConfig.MaxUnavailable, gardenerConfig.MaxUnavailable) assertions.AssertNotNilAndEqualInt(t, input.ClusterConfig.GardenerConfig.AutoScalerMin, gardenerConfig.AutoScalerMin) assertions.AssertNotNilAndEqualInt(t, input.ClusterConfig.GardenerConfig.AutoScalerMax, gardenerConfig.AutoScalerMax) assertions.AssertNotNilAndEqualInt(t, input.ClusterConfig.GardenerConfig.MaxSurge, gardenerConfig.MaxSurge) shouldPrivilegedContainersBeAllowed, err := testkit.IsTillerPresent(testSuite.HttpClient, testSuite.config.Kyma.Version) assertions.RequireNoError(t, err) assertions.AssertNotNilAndEqualBool(t, shouldPrivilegedContainersBeAllowed, gardenerConfig.AllowPrivilegedContainers) require.NotNil(t, input.ClusterConfig.GardenerConfig.Purpose) assertions.AssertNotNilAndEqualString(t, *input.ClusterConfig.GardenerConfig.Purpose, gardenerConfig.Purpose) require.NotNil(t, input.ClusterConfig.GardenerConfig.EnableKubernetesVersionAutoUpdate) assertions.AssertNotNilAndEqualBool(t, *input.ClusterConfig.GardenerConfig.EnableKubernetesVersionAutoUpdate, gardenerConfig.EnableKubernetesVersionAutoUpdate) require.NotNil(t, input.ClusterConfig.GardenerConfig.EnableMachineImageVersionAutoUpdate) assertions.AssertNotNilAndEqualBool(t, *input.ClusterConfig.GardenerConfig.EnableMachineImageVersionAutoUpdate, gardenerConfig.EnableMachineImageVersionAutoUpdate) verifyProviderConfig(t, *input.ClusterConfig.GardenerConfig.ProviderSpecificConfig, status.RuntimeConfiguration.ClusterConfig) } func assertRuntimeConfiguration(t *testing.T, status gqlschema.RuntimeStatus) { require.NotNil(t, status.RuntimeConfiguration) require.NotNil(t, status.RuntimeConfiguration.ClusterConfig) require.NotNil(t, status.RuntimeConfiguration.Kubeconfig) require.NotNil(t, status.RuntimeConfiguration.KymaConfig) require.NotNil(t, status.LastOperationStatus) //require.NotNil(t, status.RuntimeConnectionStatus) // TODO - uncomment when implemented } func verifyProviderConfig(t *testing.T, input gqlschema.ProviderSpecificInput, config interface{}) { gardenerConfig, ok := config.(*gqlschema.GardenerConfig) require.True(t, ok) providerSpecificConfig := gardenerConfig.ProviderSpecificConfig if input.AzureConfig != nil { azureConfig, ok := providerSpecificConfig.(*gqlschema.AzureProviderConfig) require.True(t, ok) assertions.AssertNotNilAndEqualString(t, input.AzureConfig.VnetCidr, azureConfig.VnetCidr) assert.ElementsMatch(t, input.AzureConfig.Zones, azureConfig.Zones) } if input.AwsConfig != nil { awsConfig, ok := providerSpecificConfig.(*gqlschema.AWSProviderConfig) require.True(t, ok) assertions.AssertNotNilAndEqualString(t, input.AwsConfig.VpcCidr, awsConfig.VpcCidr) assertions.AssertNotNilAndEqualString(t, input.AwsConfig.Zone, awsConfig.Zone) assertions.AssertNotNilAndEqualString(t, input.AwsConfig.InternalCidr, awsConfig.InternalCidr) assertions.AssertNotNilAndEqualString(t, input.AwsConfig.PublicCidr, awsConfig.PublicCidr) } if input.GcpConfig != nil { gcpConfig, ok := providerSpecificConfig.(*gqlschema.GCPProviderConfig) require.True(t, ok) assert.ElementsMatch(t, input.GcpConfig.Zones, gcpConfig.Zones) } } func assertRuntimeFromDirector(t *testing.T, runtime graphql.RuntimeExt) { assert.NotEmpty(t, runtime) require.NotNil(t, runtime.Status) assert.Equal(t, graphql.RuntimeStatusConditionConnected, runtime.Status.Condition) require.NotNil(t, runtime.Labels) gardenerName, ok := runtime.Labels["gardenerClusterName"] require.True(t, ok) assert.NotEmpty(t, gardenerName) gardenerDomain, ok := runtime.Labels["gardenerClusterDomain"] require.True(t, ok) assert.NotEmpty(t, gardenerDomain) } func unwrapString(str *string) string { if str != nil { return *str } return "" }
go
No, unlike the very first assumption you jumped to, I haven’t lost my mind. But maybe people in general have. Because how else do you explain this new-found trend to name insects and reptiles and other subjects of the animal kingdom after your exes to make oneself feel better during Valentine’s Day? I kid you not, the shit is real. When you’re in love, you want to name stars and craters on the Moon after the love of your life. But when that same heart is broken, the pain can be pretty cosmic. It all started when El Paso zoo in Texas put out a rather tempting invite for such broken hearts. Their campaign ‘Quit Bugging Me’ will let people name cockroaches after their exes. Now if you think this is a little too extreme for your tastes, believe it or not, there are other options. And some of them even have a beautiful, charitable silver lining to them. Wild Life Sydney Zoo anticipated how a lot of people might think their exes to be venomous jerks who ruined their lives. And so it came up with a bloody brilliant plan. In this case, you can name a brown snake—one of the most venomous snakes in the world—after your former amour. You’ll need to donate some 55 pence (INR 25) to the Wildlife Conservation Fund to get this party going, but hey, small price to pay for sweet, sweet poisonous vengeance, no? Besides, you’ll finally have something good come out of that disastrous relationship—wildlife conservation. Go you! There are indeed plenty of fish in the sea. And at one point, your current ex was the fish you were just too happy to have caught. If you’ve had to let that fish back into the sea after a bad breakup, then this another option might be perfect for you. Wildlife Images Rehabilitation Centre in Oregon wants to help you deal by naming salmons after your exes and then feeding them to brown bears, Kodi and Yaki. You’ll also have a certificate with the pictures of these two bears chomping on your salmon-ex so you can rub it in someone’s face, all for a decent $20 donation. Kodi and Yaki get yummy dinner. You get petty revenge. If you ask me, that’s a win-win. Now, us Indians are a bargaining bunch. We’ll probably not be willing to pay even 50 paise for something like this. We’ve got cockroaches and snakes roaming in plenty around our residential compounds, and we could do this ourselves, thank you very much. But you cannot deny that this sounds like a pretty brutal way to make poor animals and insects suffer just so that we can feel better. I mean, your love life sucked. Maybe that poor cockroach’s doesn’t? Why would you condemn it to such a fate? Does that dratted ex even deserve that much attention and time? We’d never ever succumb to such crap. Okay, so here’s how you figure out whether your ex is a cringe-y vermin cockroach who deserves to be eaten or a snake who spewed venom in your life and needs to be reminded of that for the rest of his life. (Yeah couldn’t resist, we’re petty AF.) Oh and we’re throwing in a salmon classification too, for those exes who are not really evil but the one that got away. Hope this ready reckoner helps. If your ex doesn’t fall in any of the above categories of exes, you can go ahead and feed the ex itself to a bear. Oh and if you’re trying to look for some deep logic in the classification, there isn’t any. Just like there wasn’t any in your stupid ex. So chill, have fun and move on!
english
<gh_stars>0 { "name": "chatterbot-corpus", "version": "1.1.4", "description": "A multilingual dialog corpus.", "main": "index.js", "directories": { "test": "tests" }, "scripts": { "test": "mocha tests" }, "repository": { "type": "git", "url": "git+https://github.com/gunthercox/chatterbot-corpus.git" }, "keywords": [ "chatterbot", "corpus", "dialog" ], "author": "<NAME> (https://github.com/gunthercox/)", "license": "BSD-3-Clause", "bugs": { "url": "https://github.com/gunthercox/chatterbot-corpus/issues" }, "homepage": "https://github.com/gunthercox/chatterbot-corpus#readme", "devDependencies": { "mocha": "^3.4.2" } }
json
import * as fs from 'fs'; import { Storage, ADAPTERS } from '../../src'; const dbFile = './tests_results/tmp.txt'; let storage: Storage; describe('Test FileAdapter', () => { beforeEach(() => { storage = new Storage('', new ADAPTERS.FileAdapter(dbFile)); }); afterEach(() => { fs.unlinkSync(dbFile); }); it('create db file', () => { expect(fs.existsSync(dbFile)).toBeTruthy(); }); it('store strings', async () => { expect(await storage.get('x')).toBeNull(); await storage.set('x', 'y'); expect(await storage.get('x')).toEqual('y'); }); it('store objects', async () => { await storage.set('x', { a: 'b' }); expect(await storage.get('x')).toEqual({ a: 'b' }); }); it('remove items', async () => { await storage.set('x', 'y'); expect(await storage.get('x')).toEqual('y'); await storage.remove('x'); expect(await storage.get('x')).toBeNull(); }); it('do not remove existing db file', async () => { await storage.set('x', 'y'); const storage2 = new Storage('', new ADAPTERS.FileAdapter(dbFile)); expect(await storage2.get('x')).toEqual('y'); }); });
typescript
Call of Duty Warzone's new 'Night Terror' skin has brought back the infamous invisibility glitch in the Warzone once again. While fans were already worried that the new skin might become another "Roze," a new glitch was added to it. When the skin was first introduced, fans immediately thought that it would be a nuisance with all the extra dark texture. Like the Roze, the new 'Night Terror' skin might become hard to spot in dark areas. However, the recent glitch has made it more overpowered than fans expected it to be. The skin went live with Warzone's last update on June 30. The skin comes with the Violent Stealth Pack and costs around $20. Players started calling out Warzone immediately after they noticed the glitch, saying the game has become more pay-to-win than ever before. Here are all the details about the new glitch and how it is bothering the community for the time being. A YouTuber named Mr Fishy McFish experienced the glitch in the game. In the video, his teammate was using the 'Night Terror' skin. At a distance of around 50-60 meters, the skin went invisible by itself and he was unable to see the character wearing the skin. However, the situation is not as bad as the Awoken Francis skin back in Season 1, as it used to be completely invisible past 30-40 meters. This time, the invisibility goes back and forth. However, with all the concerns the community already has with the skin, the new glitch is not making the Warzone experience better. After the clip went viral, fans started calling out Activision again. According to Twitter @stephenbrader: Another user named @ElvisCOD posted a video on his account, where an opposing player ran in front of another who was using Roze skin. Due to the glitch, the first player didn't see the one wearing the target skin, and thus got shot in the back quite harshly. Some fans are calling out Activision by saying that they deliberately released this skin to make the game pay-to-win. Players will eventually get frustrated and buy the skin to get an unfair in-game advantage. Here is what he had to say regarding the issue. While the new map Fortune's Keep has received quite the appreciation from the community, some of the game-breaking glitches are back. Players are exploiting them to gain an unfair advantage over others. Those hiding behind the walls or under the surface are back with Fortune's Keep in Season 4. It is not surprising that fans are disappointed and frustrated that with all the glitches that haven't been fixed yet, a new glitch has arrived with a paid skin. Fans will now have to wait and see when Raven will address all the issues and fix the game-breaking glitches with the new patch.
english
package tk.sciwhiz12.basedefense.datagen; import net.minecraft.data.DataGenerator; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.forge.event.lifecycle.GatherDataEvent; import org.apache.logging.log4j.Marker; import org.apache.logging.log4j.MarkerManager; import static tk.sciwhiz12.basedefense.BaseDefense.LOG; import static tk.sciwhiz12.basedefense.Reference.MODID; @EventBusSubscriber(modid = MODID, bus = Bus.MOD) public class DataGen { public static final Marker DATAGEN = MarkerManager.getMarker("DATAGEN"); @SubscribeEvent static void onGatherData(GatherDataEvent event) { LOG.debug(DATAGEN, "Gathering data for data generation"); DataGenerator gen = event.getGenerator(); if (event.includeClient()) { LOG.debug(DATAGEN, "Adding data providers for client assets"); gen.addProvider(new Languages(gen)); gen.addProvider(new BlockStates(gen, event.getExistingFileHelper())); gen.addProvider(new ItemModels(gen, event.getExistingFileHelper())); } if (event.includeServer()) { LOG.debug(DATAGEN, "Adding data providers for server data"); gen.addProvider(new LootTables(gen)); gen.addProvider(new Recipes(gen)); } } }
java
<filename>grafannotate/cli.py import sys import click import logging import time from grafannotate.annotation import Annotation CURRENT_TIMESTAMP = int(time.time()) @click.command() @click.option('-u', '--uri', 'annotate_uri', default='http://localhost:3000/api/annotations', help='URI to send annotation to. Default: "http://localhost:3000/api/annotations".') @click.option('-k', '--api-key', 'api_key', default=None, help='Grafana API key to pass in Authorisation header') @click.option('-T', '--title', 'title', default='event', help='Event title. Default: "event".') @click.option('-t', '--tag', 'tags', multiple=True, help='Event tags (can be used multiple times).') @click.option('-d', '--description', 'description', help='Event description body. Optional.') @click.option('-s', '--start', 'start_time', default=CURRENT_TIMESTAMP, help='Start timestamp (unix secs). Default: current timestamp.') @click.option('-e', '--end', 'end_time', default=CURRENT_TIMESTAMP, help='End timestamp (unix secs). Optional.') @click.option('--debug/--no-debug', default=False, help='Set debug logging on') def main(annotate_uri, api_key, title, tags, description, start_time, end_time, debug): """ Send Grafana annotations to various endpoints """ log_level = logging.INFO if debug: log_level = logging.DEBUG logging.basicConfig(format=' [%(levelname)s] %(message)s', level=log_level) try: if description is None: if not sys.stdin.isatty(): description = "".join([line for line in iter(sys.stdin.readline, '')]) else: description = "" this_annotation = Annotation(title, tags, description, start_time, end_time) result = this_annotation.send(annotate_uri, api_key) if result['event_data']: logging.debug(result['event_data']) if result['message']: logging.info(result['message']) except Exception as e: logging.exception(e) """ We could exit 1 here but we really don't want to cause a job to fail just because we couldn't send an event. """ sys.exit(0)
python
{ "name": "reverse-tree", "version": "1.0.0", "description": "Convert a tree-type entry into an object.", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/juliandavidmr/Reverse-Tree.git" }, "keywords": [ "tree", "object", "convert", "struct", "directory", "files" ], "author": "@juliandavidmr", "license": "MIT", "bugs": { "url": "https://github.com/juliandavidmr/Reverse-Tree/issues" }, "homepage": "https://github.com/juliandavidmr/Reverse-Tree#readme" }
json
<reponame>erikvullings/capability-assessment-tool<filename>package.json { "name": "capability-assessment-tool", "version": "0.0.1", "private": "true", "description": "SPA for a capability-assessment-tool dashboard", "main": "index.js", "scripts": { "clean": "pnpm recursive run cleanup", "start": "pnpm recursive run dev", "update": "pnpm recursive run update", "build": "pnpm recursive run build" }, "repository": { "type": "git", "url": "https://github.com/erikvullings/capability-assessment-tool.git" }, "bugs": { "url": "https://github.com/erikvullings/capability-assessment-tool/issues" }, "homepage": "https://github.com/erikvullings/capability-assessment-tool#readme", "author": "<NAME> <<EMAIL>> (http://www.tno.nl)", "keywords": [ "TNO", "capability development", "capability assessment", "roadmap" ], "license": "MIT", "devDependencies": { "pnpm": "^6.4.0" } }
json
<gh_stars>0 package Data; import java.util.LinkedList; /** * Symboltable * * @author Kr3b5 */ public class SymbolTable { LinkedList<STObject> objects; SymbolTable enclose; public SymbolTable() { this.objects = new LinkedList<>(); } public SymbolTable(SymbolTable enclose) { this.objects = new LinkedList<>(); this.enclose = enclose; } public LinkedList<STObject> getObjects() { return objects; } public SymbolTable getEnclose() { return enclose; } public Boolean insert(STObject obj) { if(objects.contains(obj)){ return false; } objects.add(obj); return true; } public STObject find(String name){ for (STObject object: objects) { if(object.getName().equals(name) ){ return object; } } return null; } }
java
<reponame>cescoffier/vertx-examples-it { "name": "web-template-jade", "tags": ["web", "template", "jade"], "executions": { "java" : { "directory" : "${base}/src/main/java/io/vertx/example/web/templating/jade", "command" : "vertx run io.vertx.example.web.templating.jade.Server -cp ${base}/target/classes:." } // "js" : { // "directory" : "${base}/src/main/js/io/vertx/example/web/templating/jade", // "command" : "vertx run server.js -cp ${base}/target/classes:." // }, // // "groovy": { // "directory" : "${base}/src/main/groovy/io/vertx/example/web/templating/jade", // "command" : "vertx run server.groovy -cp ${base}/target/classes:." // }, // // "ruby": { // "directory" : "${base}/src/main/ruby/io/vertx/example/web/templating/jade", // "command" : "vertx run server.rb -cp ${base}/target/classes:." // } }, "grace-text": "Succeeded in deploying verticle", "client-check": "web-template-jade-check.groovy" }
json
<filename>MovieTracker/src/me/ci/NewMovieWindow.java package me.ci; import java.awt.Color; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.SwingConstants; import javax.swing.WindowConstants; import javax.swing.border.BevelBorder; public class NewMovieWindow extends JFrame{ private JTextField textField; private ImagePanel movieCover; private JTextArea textArea; private JLabel lblDescription; private JLabel lblAdditionalTags; private JLabel lblGenre; private JComboBox comboBox; private JTextArea textArea_1; private JButton btnSelectImage; private JButton btnOk; private JButton btnCancel; private JLabel lblRating; private JComboBox comboBox_1; private GoogleImageList imageList; public NewMovieWindow(){ getContentPane().setBackground(Color.DARK_GRAY); init(); addComponent(); setVisible(true); } private void init(){ setTitle("New Movie Entry"); setSize(637, 513); setResizable(false); setLocationRelativeTo(null); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); } private void addComponent(){ GridBagLayout gridBagLayout = new GridBagLayout(); gridBagLayout.columnWidths = new int[]{75, 100, 1, 50, 50, 1, 300, 0}; gridBagLayout.rowHeights = new int[]{13, 0, 10, 0, 40, 40, 50, 0, 0, 0, 0, 0, 0, 0}; gridBagLayout.columnWeights = new double[]{0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, Double.MIN_VALUE}; gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, Double.MIN_VALUE}; getContentPane().setLayout(gridBagLayout); JLabel lblMovieName = new JLabel("Movie Name:"); lblMovieName.setForeground(Color.WHITE); GridBagConstraints gbc_lblMovieName = new GridBagConstraints(); gbc_lblMovieName.gridwidth = 2; gbc_lblMovieName.insets = new Insets(5, 5, 5, 5); gbc_lblMovieName.gridx = 0; gbc_lblMovieName.gridy = 0; getContentPane().add(lblMovieName, gbc_lblMovieName); movieCover = new ImagePanel(Movie.defaultCover); GridBagConstraints gbc_panel = new GridBagConstraints(); gbc_panel.gridwidth = 4; gbc_panel.insets = new Insets(5, 5, 5, 5); gbc_panel.gridheight = 7; gbc_panel.fill = GridBagConstraints.BOTH; gbc_panel.gridx = 2; gbc_panel.gridy = 0; getContentPane().add(movieCover, gbc_panel); imageList = new GoogleImageList(new GoogleImageListListener(){ public void selectMovieImage(BufferedImage image){ movieCover.setImage(image); } }); imageList.setBackground(Color.GRAY); imageList.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null)); GridBagConstraints gbc_imageList = new GridBagConstraints(); gbc_imageList.gridheight = 13; gbc_imageList.insets = new Insets(5, 5, 5, 5); gbc_imageList.fill = GridBagConstraints.BOTH; gbc_imageList.gridx = 6; gbc_imageList.gridy = 0; getContentPane().add(imageList, gbc_imageList); textField = new JTextField(); textField.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null)); GridBagConstraints gbc_textField = new GridBagConstraints(); gbc_textField.gridwidth = 2; gbc_textField.fill = GridBagConstraints.BOTH; gbc_textField.insets = new Insets(5, 5, 5, 5); gbc_textField.gridx = 0; gbc_textField.gridy = 1; getContentPane().add(textField, gbc_textField); textField.setColumns(10); lblDescription = new JLabel("Description:"); lblDescription.setForeground(Color.WHITE); GridBagConstraints gbc_lblDescription = new GridBagConstraints(); gbc_lblDescription.gridwidth = 2; gbc_lblDescription.insets = new Insets(5, 5, 5, 5); gbc_lblDescription.gridx = 0; gbc_lblDescription.gridy = 3; getContentPane().add(lblDescription, gbc_lblDescription); textArea = new JTextArea(); textArea.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null)); textArea.setTabSize(4); textArea.setLineWrap(true); GridBagConstraints gbc_textArea = new GridBagConstraints(); gbc_textArea.gridwidth = 2; gbc_textArea.gridheight = 4; gbc_textArea.insets = new Insets(5, 5, 5, 5); gbc_textArea.fill = GridBagConstraints.BOTH; gbc_textArea.gridx = 0; gbc_textArea.gridy = 4; getContentPane().add(textArea, gbc_textArea); btnSelectImage = new JButton("Select Image"); btnSelectImage.setBackground(Color.LIGHT_GRAY); btnSelectImage.setForeground(Color.DARK_GRAY); btnSelectImage.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ imageList.updateList(textField.getText()+" box art"); } }); GridBagConstraints gbc_btnSelectImage = new GridBagConstraints(); gbc_btnSelectImage.gridwidth = 2; gbc_btnSelectImage.insets = new Insets(0, 5, 5, 5); gbc_btnSelectImage.gridx = 3; gbc_btnSelectImage.gridy = 7; getContentPane().add(btnSelectImage, gbc_btnSelectImage); lblGenre = new JLabel("Genre:"); lblGenre.setForeground(Color.WHITE); lblGenre.setHorizontalAlignment(SwingConstants.CENTER); GridBagConstraints gbc_lblGenre = new GridBagConstraints(); gbc_lblGenre.insets = new Insets(5, 5, 5, 5); gbc_lblGenre.gridx = 0; gbc_lblGenre.gridy = 8; getContentPane().add(lblGenre, gbc_lblGenre); comboBox = new JComboBox(); comboBox.setForeground(Color.BLACK); comboBox.setBackground(Color.WHITE); comboBox.setModel(new DefaultComboBoxModel(Genre.values())); GridBagConstraints gbc_comboBox = new GridBagConstraints(); gbc_comboBox.gridwidth = 4; gbc_comboBox.insets = new Insets(5, 0, 5, 5); gbc_comboBox.fill = GridBagConstraints.HORIZONTAL; gbc_comboBox.gridx = 1; gbc_comboBox.gridy = 8; getContentPane().add(comboBox, gbc_comboBox); lblRating = new JLabel("Rating:"); lblRating.setHorizontalAlignment(SwingConstants.CENTER); lblRating.setForeground(Color.WHITE); GridBagConstraints gbc_lblRating = new GridBagConstraints(); gbc_lblRating.insets = new Insets(5, 5, 5, 5); gbc_lblRating.gridx = 0; gbc_lblRating.gridy = 9; getContentPane().add(lblRating, gbc_lblRating); comboBox_1 = new JComboBox(); comboBox_1.setBackground(Color.WHITE); comboBox_1.setModel(new DefaultComboBoxModel(Rating.values())); GridBagConstraints gbc_comboBox_1 = new GridBagConstraints(); gbc_comboBox_1.gridwidth = 4; gbc_comboBox_1.insets = new Insets(5, 0, 5, 5); gbc_comboBox_1.fill = GridBagConstraints.HORIZONTAL; gbc_comboBox_1.gridx = 1; gbc_comboBox_1.gridy = 9; getContentPane().add(comboBox_1, gbc_comboBox_1); lblAdditionalTags = new JLabel("Additional Tags:"); lblAdditionalTags.setForeground(Color.WHITE); GridBagConstraints gbc_lblAdditionalTags = new GridBagConstraints(); gbc_lblAdditionalTags.gridwidth = 6; gbc_lblAdditionalTags.insets = new Insets(5, 5, 5, 5); gbc_lblAdditionalTags.gridx = 0; gbc_lblAdditionalTags.gridy = 10; getContentPane().add(lblAdditionalTags, gbc_lblAdditionalTags); textArea_1 = new JTextArea(); textArea_1.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null)); textArea_1.setTabSize(4); textArea_1.setLineWrap(true); GridBagConstraints gbc_textArea_1 = new GridBagConstraints(); gbc_textArea_1.gridwidth = 6; gbc_textArea_1.insets = new Insets(5, 5, 5, 5); gbc_textArea_1.fill = GridBagConstraints.BOTH; gbc_textArea_1.gridx = 0; gbc_textArea_1.gridy = 11; getContentPane().add(textArea_1, gbc_textArea_1); btnOk = new JButton("Ok"); btnOk.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ Movie m = new Movie(textField.getText()); m.genre = (Genre)comboBox.getSelectedItem(); m.coverImage = movieCover.getImage(); m.description = textArea.getText(); m.additionalTags = textArea_1.getText(); m.rating = (Rating)comboBox_1.getSelectedItem(); m.updateSearchBar(); MovieExplorer.INSTANCE.insertMovie(m); dispose(); SaveSystem.save(); try{ ImageIO.write(movieCover.getImage(), "PNG", new File(Movie.imageFolder, m.title+".png")); }catch(Exception exception){ exception.printStackTrace(); } } }); btnOk.setForeground(Color.DARK_GRAY); btnOk.setBackground(Color.LIGHT_GRAY); GridBagConstraints gbc_btnOk = new GridBagConstraints(); gbc_btnOk.insets = new Insets(5, 5, 5, 5); gbc_btnOk.gridx = 3; gbc_btnOk.gridy = 12; getContentPane().add(btnOk, gbc_btnOk); btnCancel = new JButton("Cancel"); btnCancel.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ dispose(); } }); btnCancel.setForeground(Color.DARK_GRAY); btnCancel.setBackground(Color.LIGHT_GRAY); GridBagConstraints gbc_btnCancel = new GridBagConstraints(); gbc_btnCancel.insets = new Insets(5, 5, 5, 5); gbc_btnCancel.gridx = 4; gbc_btnCancel.gridy = 12; getContentPane().add(btnCancel, gbc_btnCancel); } }
java
{ "ROOFS.defaultOpen": "기본 열린 지붕 불투명도", "ROOFS.defaultOpenHint": "새 지붕의 열린 상태에 대해 설정된 기본 불투명도이다.", "ROOFS.defaultClosed": "기본 닫힌 지붕 불투명도", "ROOFS.defaultClosedHint": "새 지붕의 닫힌 상태에 대해 설정된 기본 불투명도이다.", "ROOFS.quickPeek": "GM 슬쩍 보기 활성화", "ROOFS.quickPeekHint": "활성화될 경우 타일 레이어가 활성화된 동안 지붕에 커서를 올리면 일시적으로 내부를 보여준다.", "ROOFS.autoHide": "토큰 자동 숨김 활성화", "ROOFS.autoHideHint": "활성화될 경우 닫힌 지붕 아래의 토큰은 자동으로 숨겨진다.", "ROOFS.sendToRoof": "지붕으로 설정", "ROOFS.sendToFloor": "바닥으로 설정", "ROOFS.toggleMode": "지붕 모드 토글(자동/열림/닫힘)" }
json
<reponame>dlabaj/syndesis-react-poc<gh_stars>0 import { WithExtension, WithExtensionHelpers } from '@syndesis/api'; import { Action, Extension, Integration } from '@syndesis/models'; import { Breadcrumb, ExtensionDetail, ExtensionOverview, ExtensionSupports, IAction, Loader, } from '@syndesis/ui'; import { WithLoader, WithRouteData } from '@syndesis/utils'; import * as React from 'react'; import { Translation } from 'react-i18next'; import { Link } from 'react-router-dom'; import i18n from '../../../i18n'; import resolvers from '../../resolvers'; import ExtensionIntegrations from '../shared/ExtensionIntegrations'; /** * @param extensionId - the ID of the extension whose details are being shown by this page. */ export interface IExtensionDetailRouteParams { extensionId: string; } /** * @param extension - the extension whose details are being shown by this page. If * exists, it must equal to the [extensionId]{@link IExtensionDetailRouteParams#extensionId}. * This is used to immediately show the details to the user, without * any loader; the backend will be called nonetheless to ensure that we are * working with the latest data available. This will be used when navigating from the * [ExtensionPage]{@link ExtensionsPage}. */ export interface IExtensionDetailRouteState { extension?: Extension; } export default class ExtensionDetailsPage extends React.Component { public getTypeMessage(type: string): string { if ('Steps' === type) { return i18n.t('customizations:extension.StepExtension'); } if ('Connectors' === type) { return i18n.t('customizations:extension.ConnectorExtension'); } if ('Libraries' === type) { return i18n.t('customizations:extension.LibraryExtension'); } return i18n.t('customizations:extension.unknownExtensionType'); } public render() { return ( <WithRouteData<IExtensionDetailRouteParams, IExtensionDetailRouteState>> {({ extensionId }, { extension }, { history }) => { const handleSelectIntegration = (selectedIntegrationId: string) => { // redirect to the integration detail page history.push( resolvers.integrations.integration.details({ integration: { id: selectedIntegrationId, } as Integration, }) ); }; return ( <WithExtensionHelpers> {({ deleteExtension }) => { const handleDelete = async () => { await deleteExtension(extensionId); // TODO: post toast notification // display extensions list page history.push(resolvers.customizations.extensions.list()); }; return ( <WithExtension extensionId={extensionId} initialValue={extension} > {({ data, hasData, error }) => ( <WithLoader error={error} loading={!hasData} loaderChildren={<Loader />} errorChildren={<div>TODO</div>} > {() => ( <Translation ns={['customizations', 'shared']}> {t => ( <> <Breadcrumb> <Link to={resolvers.dashboard.root()}> {t('shared:Home')} </Link> <Link to={resolvers.customizations.root()}> {t('shared:Customizations')} </Link> <Link to={resolvers.customizations.extensions.list()} > {t('shared:Extensions')} </Link> <span> {t('extension.extensionDetailPageTitle')} </span> </Breadcrumb> <ExtensionDetail extensionName={data.name} // TODO: Schema is currently wrong as it has 'uses` as an OptionalInt. Remove cast when schema is fixed. extensionUses={data.uses as number} i18nCancelText={t('shared:Cancel')} i18nDelete={t('shared:Delete')} i18nDeleteModalMessage={t( 'extension.deleteModalMessage', { name: data.name } )} i18nDeleteModalTitle={t( 'extension.deleteModalTitle' )} i18nDeleteTip={t( 'extension.deleteExtensionTip' )} i18nIdMessage={t('extension.idMessage', { id: data.extensionId!, })} i18nOverviewSectionTitle={t( 'extension.overviewSectionTitle' )} i18nSupportsSectionTitle={ data.extensionType === 'Steps' ? t( 'extension.supportedStepsSectionTitle' ) : data.extensionType === 'Connectors' ? t( 'extension.supportedConnectorsSectionTitle' ) : t( 'extension.supportedLibrariesSectionTitle' ) } i18nUpdate={t('shared:Update')} i18nUpdateTip={t( 'extension.updateExtensionTip' )} i18nUsageSectionTitle={t( 'extension.usageSectionTitle' )} integrationsSection={ <ExtensionIntegrations extensionId={data.id!} uses={ // TODO: Schema is currently wrong as it has 'uses` as an OptionalInt. Remove cast when schema is fixed. data.uses as number } onSelectIntegration={ handleSelectIntegration } /> } linkUpdateExtension={resolvers.customizations.extensions.extension.update( { extension: data } )} onDelete={handleDelete} overviewSection={ <ExtensionOverview extensionDescription={data.description} extensionName={data.name} i18nDescription={t('shared:Description')} i18nLastUpdate={t('extension.LastUpdate')} i18nLastUpdateDate={ data.lastUpdated ? new Date( data.lastUpdated ).toLocaleString() : '' } i18nName={t('shared:Name')} i18nType={t('shared:Type')} i18nTypeMessage={this.getTypeMessage( data.extensionType )} /> } supportsSection={ <ExtensionSupports extensionActions={data.actions.map( (action: Action) => ({ description: action.description, name: action.name, } as IAction) )} /> } /> </> )} </Translation> )} </WithLoader> )} </WithExtension> ); }} </WithExtensionHelpers> ); }} </WithRouteData> ); } }
typescript
Taiwanese carriers have forecast that Apple’s latest iPhone 12 series will have stronger sales than the iPhone 6 and iPhone 6 Plus. According to Economic Daily News, Apple suppliers Foxconn and Pegatron are offering workers on the assembly line increased bonuses in order to keep up with the strong demand for devices, following pre-orders for the iPhone 12 and iPhone 12 Pro. “Earlier this week, Taiwanese carriers reportedly sold out of iPhone 12 pre-orders in 45 minutes, though it is unclear if there was limited stock,” the report mentioned. Introduced in 2014, the iPhone 6 and iPhone 6 Plus were extremely popular thanks to their larger 4.7-inch and 5.5-inch displays, helping Apple sell a record 135.6 million iPhones in the two quarters after the devices launched. Apple has launched four new iPhone 12 models with 5G capability. The tech giant is expected to witness 15 percent iPhone growth next fiscal year and the primary wave of Apple 5G telephones has placed the ball in carriers and builders’ court, research-driven the US venture capital firm Loup Ventures has to forecast. According to a report in DigiTimes, Apple iPhone 12 series shipments are expected to reach as many as 80 million units by the end of the year owing to a more affordable pricing strategy. Foxconn remains Apple’s main iPhone assembler and has secured the bulk of orders for the new iPhone 12 series through the first quarter of 2021.
english
<gh_stars>0 /* * 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. */ /* * This code was generated by https://code.google.com/p/google-apis-client-generator/ * (build: 2013-09-16 16:01:30 UTC) * on 2013-09-30 at 22:19:22 UTC * Modify at your own risk. */ package com.appspot.your_app_id.helloworld; /** * Service definition for Helloworld (v1). * * <p> * This is an API * </p> * * <p> * For more information about this service, see the * <a href="" target="_blank">API Documentation</a> * </p> * * <p> * This service uses {@link HelloworldRequestInitializer} to initialize global parameters via its * {@link Builder}. * </p> * * @since 1.3 * @author Google, Inc. */ @SuppressWarnings("javadoc") public class Helloworld extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { // Note: Leave this static initializer at the top of the file. static { com.google.api.client.util.Preconditions.checkState( com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 15, "You are currently running with version %s of google-api-client. " + "You need at least version 1.15 of google-api-client to run version " + "1.17.0-rc of the helloworld library.", com.google.api.client.googleapis.GoogleUtils.VERSION); } /** * The default encoded root URL of the service. This is determined when the library is generated * and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_ROOT_URL = "https://3-dot-playchat-53073.appspot.com/_ah/api/";//work ok! // public static final String DEFAULT_ROOT_URL = "http://10.44.6.19:8080/_ah/api/";//tested ok! /** * The default encoded service path of the service. This is determined when the library is * generated and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_SERVICE_PATH = "helloworld/v1/"; /** * The default encoded base URL of the service. This is determined when the library is generated * and normally should not be changed. */ public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; /** * Constructor. * * <p> * Use {@link Builder} if you need to specify any of the optional parameters. * </p> * * @param transport HTTP transport, which should normally be: * <ul> * <li>Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li> * <li>Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li> * <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} * </li> * </ul> * @param jsonFactory JSON factory, which may be: * <ul> * <li>Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}</li> * <li>Google GSON: {@code com.google.api.client.json.gson.GsonFactory}</li> * <li>Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}</li> * </ul> * @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public Helloworld(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { this(new Builder(transport, jsonFactory, httpRequestInitializer)); } /** * @param builder builder */ Helloworld(Builder builder) { super(builder); } @Override protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws java.io.IOException { super.initialize(httpClientRequest); } /** * An accessor for creating requests from the Greetings collection. * * <p>The typical use is:</p> * <pre> * {@code Helloworld helloworld = new Helloworld(...);} * {@code Helloworld.Greetings.List request = helloworld.greetings().list(parameters ...)} * </pre> * * @return the resource collection */ public Greetings greetings() { return new Greetings(); } /** * The "greetings" collection of methods. */ public class Greetings { /** * Create a request for the method "greetings.authed". * * This request holds the parameters needed by the helloworld server. After setting any optional * parameters, call the {@link Authed#execute()} method to invoke the remote operation. * * @return the request */ public Authed authed() throws java.io.IOException { Authed result = new Authed(); initialize(result); return result; } public class Authed extends HelloworldRequest<com.appspot.your_app_id.helloworld.model.HelloGreeting> { private static final String REST_PATH = "hellogreeting/authed"; /** * Create a request for the method "greetings.authed". * * This request holds the parameters needed by the the helloworld server. After setting any * optional parameters, call the {@link Authed#execute()} method to invoke the remote operation. * <p> {@link * Authed#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor. </p> * * @since 1.13 */ protected Authed() { super(Helloworld.this, "POST", REST_PATH, null, com.appspot.your_app_id.helloworld.model.HelloGreeting.class); } @Override public Authed setAlt(java.lang.String alt) { return (Authed) super.setAlt(alt); } @Override public Authed setFields(java.lang.String fields) { return (Authed) super.setFields(fields); } @Override public Authed setKey(java.lang.String key) { return (Authed) super.setKey(key); } @Override public Authed setOauthToken(java.lang.String oauthToken) { return (Authed) super.setOauthToken(oauthToken); } @Override public Authed setPrettyPrint(java.lang.Boolean prettyPrint) { return (Authed) super.setPrettyPrint(prettyPrint); } @Override public Authed setQuotaUser(java.lang.String quotaUser) { return (Authed) super.setQuotaUser(quotaUser); } @Override public Authed setUserIp(java.lang.String userIp) { return (Authed) super.setUserIp(userIp); } @Override public Authed set(String parameterName, Object value) { return (Authed) super.set(parameterName, value); } } /** * Create a request for the method "greetings.getGreeting". * * This request holds the parameters needed by the helloworld server. After setting any optional * parameters, call the {@link GetGreeting#execute()} method to invoke the remote operation. * * @param id * @return the request */ public GetGreeting getGreeting(java.lang.Integer id) throws java.io.IOException { GetGreeting result = new GetGreeting(id); initialize(result); return result; } public class GetGreeting extends HelloworldRequest<com.appspot.your_app_id.helloworld.model.HelloGreeting> { private static final String REST_PATH = "hellogreeting/{id}"; /** * Create a request for the method "greetings.getGreeting". * * This request holds the parameters needed by the the helloworld server. After setting any * optional parameters, call the {@link GetGreeting#execute()} method to invoke the remote * operation. <p> {@link * GetGreeting#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor. </p> * * @param id * @since 1.13 */ protected GetGreeting(java.lang.Integer id) { super(Helloworld.this, "GET", REST_PATH, null, com.appspot.your_app_id.helloworld.model.HelloGreeting.class); this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public GetGreeting setAlt(java.lang.String alt) { return (GetGreeting) super.setAlt(alt); } @Override public GetGreeting setFields(java.lang.String fields) { return (GetGreeting) super.setFields(fields); } @Override public GetGreeting setKey(java.lang.String key) { return (GetGreeting) super.setKey(key); } @Override public GetGreeting setOauthToken(java.lang.String oauthToken) { return (GetGreeting) super.setOauthToken(oauthToken); } @Override public GetGreeting setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetGreeting) super.setPrettyPrint(prettyPrint); } @Override public GetGreeting setQuotaUser(java.lang.String quotaUser) { return (GetGreeting) super.setQuotaUser(quotaUser); } @Override public GetGreeting setUserIp(java.lang.String userIp) { return (GetGreeting) super.setUserIp(userIp); } @com.google.api.client.util.Key private java.lang.Integer id; /** */ public java.lang.Integer getId() { return id; } public GetGreeting setId(java.lang.Integer id) { this.id = id; return this; } @Override public GetGreeting set(String parameterName, Object value) { return (GetGreeting) super.set(parameterName, value); } } /** * Create a request for the method "greetings.listGreeting". * * This request holds the parameters needed by the helloworld server. After setting any optional * parameters, call the {@link ListGreeting#execute()} method to invoke the remote operation. * * @return the request */ public ListGreeting listGreeting() throws java.io.IOException { ListGreeting result = new ListGreeting(); initialize(result); return result; } public class ListGreeting extends HelloworldRequest<com.appspot.your_app_id.helloworld.model.HelloGreetingCollection> { private static final String REST_PATH = "hellogreeting"; /** * Create a request for the method "greetings.listGreeting". * * This request holds the parameters needed by the the helloworld server. After setting any * optional parameters, call the {@link ListGreeting#execute()} method to invoke the remote * operation. <p> {@link * ListGreeting#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor. </p> * * @since 1.13 */ protected ListGreeting() { super(Helloworld.this, "GET", REST_PATH, null, com.appspot.your_app_id.helloworld.model.HelloGreetingCollection.class); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public ListGreeting setAlt(java.lang.String alt) { return (ListGreeting) super.setAlt(alt); } @Override public ListGreeting setFields(java.lang.String fields) { return (ListGreeting) super.setFields(fields); } @Override public ListGreeting setKey(java.lang.String key) { return (ListGreeting) super.setKey(key); } @Override public ListGreeting setOauthToken(java.lang.String oauthToken) { return (ListGreeting) super.setOauthToken(oauthToken); } @Override public ListGreeting setPrettyPrint(java.lang.Boolean prettyPrint) { return (ListGreeting) super.setPrettyPrint(prettyPrint); } @Override public ListGreeting setQuotaUser(java.lang.String quotaUser) { return (ListGreeting) super.setQuotaUser(quotaUser); } @Override public ListGreeting setUserIp(java.lang.String userIp) { return (ListGreeting) super.setUserIp(userIp); } @Override public ListGreeting set(String parameterName, Object value) { return (ListGreeting) super.set(parameterName, value); } } /** * Create a request for the method "greetings.multiply". * * This request holds the parameters needed by the helloworld server. After setting any optional * parameters, call the {@link Multiply#execute()} method to invoke the remote operation. * * @param times * @param content the {@link com.appspot.your_app_id.helloworld.model.HelloGreeting} * @return the request */ public Multiply multiply(java.lang.Integer times, com.appspot.your_app_id.helloworld.model.HelloGreeting content) throws java.io.IOException { Multiply result = new Multiply(times, content); initialize(result); return result; } public class Multiply extends HelloworldRequest<com.appspot.your_app_id.helloworld.model.HelloGreeting> { private static final String REST_PATH = "hellogreeting/{times}"; /** * Create a request for the method "greetings.multiply". * * This request holds the parameters needed by the the helloworld server. After setting any * optional parameters, call the {@link Multiply#execute()} method to invoke the remote operation. * <p> {@link * Multiply#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor. </p> * * @param times * @param content the {@link com.appspot.your_app_id.helloworld.model.HelloGreeting} * @since 1.13 */ protected Multiply(java.lang.Integer times, com.appspot.your_app_id.helloworld.model.HelloGreeting content) { super(Helloworld.this, "POST", REST_PATH, content, com.appspot.your_app_id.helloworld.model.HelloGreeting.class); this.times = com.google.api.client.util.Preconditions.checkNotNull(times, "Required parameter times must be specified."); } @Override public Multiply setAlt(java.lang.String alt) { return (Multiply) super.setAlt(alt); } @Override public Multiply setFields(java.lang.String fields) { return (Multiply) super.setFields(fields); } @Override public Multiply setKey(java.lang.String key) { return (Multiply) super.setKey(key); } @Override public Multiply setOauthToken(java.lang.String oauthToken) { return (Multiply) super.setOauthToken(oauthToken); } @Override public Multiply setPrettyPrint(java.lang.Boolean prettyPrint) { return (Multiply) super.setPrettyPrint(prettyPrint); } @Override public Multiply setQuotaUser(java.lang.String quotaUser) { return (Multiply) super.setQuotaUser(quotaUser); } @Override public Multiply setUserIp(java.lang.String userIp) { return (Multiply) super.setUserIp(userIp); } @com.google.api.client.util.Key private java.lang.Integer times; /** */ public java.lang.Integer getTimes() { return times; } public Multiply setTimes(java.lang.Integer times) { this.times = times; return this; } @Override public Multiply set(String parameterName, Object value) { return (Multiply) super.set(parameterName, value); } } } /** * Builder for {@link Helloworld}. * * <p> * Implementation is not thread-safe. * </p> * * @since 1.3.0 */ public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { /** * Returns an instance of a new builder. * * @param transport HTTP transport, which should normally be: * <ul> * <li>Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li> * <li>Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li> * <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} * </li> * </ul> * @param jsonFactory JSON factory, which may be: * <ul> * <li>Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}</li> * <li>Google GSON: {@code com.google.api.client.json.gson.GsonFactory}</li> * <li>Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}</li> * </ul> * @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { super( transport, jsonFactory, DEFAULT_ROOT_URL, DEFAULT_SERVICE_PATH, httpRequestInitializer, false); } /** Builds a new instance of {@link Helloworld}. */ @Override public Helloworld build() { return new Helloworld(this); } @Override public Builder setRootUrl(String rootUrl) { return (Builder) super.setRootUrl(rootUrl); } @Override public Builder setServicePath(String servicePath) { return (Builder) super.setServicePath(servicePath); } @Override public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); } @Override public Builder setApplicationName(String applicationName) { return (Builder) super.setApplicationName(applicationName); } @Override public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); } @Override public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); } @Override public Builder setSuppressAllChecks(boolean suppressAllChecks) { return (Builder) super.setSuppressAllChecks(suppressAllChecks); } /** * Set the {@link HelloworldRequestInitializer}. * * @since 1.12 */ public Builder setHelloworldRequestInitializer( HelloworldRequestInitializer helloworldRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(helloworldRequestInitializer); } @Override public Builder setGoogleClientRequestInitializer( com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); } } }
java
26 Now the boy Samuel (A)continued to grow both in stature and in favor with the Lord and also with man. 52 And Jesus (A)increased in wisdom and in stature[a] and in (B)favor with God and man. 18 Whoever thus serves Christ is (A)acceptable to God and approved by men. The Holy Bible, English Standard Version. ESV® Text Edition: 2016. Copyright © 2001 by Crossway Bibles, a publishing ministry of Good News Publishers.
english
<reponame>DavHau/Riner<gh_stars>1-10 // // #include "Registry.h" #include <src/algorithm/ethash/AlgoEthashCL.h> #include <src/algorithm/grin/AlgoCuckatoo31Cl.h> #include <src/algorithm/dummy/AlgoDummy.h> #include <src/pool/PoolEthash.h> #include <src/pool/PoolGrin.h> #include <src/pool/PoolDummy.h> #include <src/gpu_api/AmdgpuApi.h> namespace riner { //add new AlgoImpls/PoolImpls or GpuApis in the member functions below void Registry::registerAllAlgoImpls() { // <AlgoImpl class>(ConfigName, PowType) addAlgoImpl<AlgoEthashCL>("EthashCL", "ethash"); addAlgoImpl<AlgoCuckatoo31Cl>("Cuckatoo31Cl", "cuckatoo31"); addAlgoImpl<AlgoDummy>("AlgoDummy", "dummy"); } void Registry::registerAllPoolImpls() { // <PoolImpl class>(ConfigName, PowType) addPoolImpl<PoolEthashStratum>("EthashStratum2", "ethash", "stratum2"); addPoolImpl<PoolGrinStratum>("Cuckatoo31Stratum", "cuckatoo31", "stratum"); // TODO: make it possible to assign multiple pow_types to one PoolImpl // addPoolImpl<PoolGrinStratum>("Cuckaroo29Stratum", "cuckaroo29", "stratum"); addPoolImpl<PoolDummy>("PoolDummy", "dummy", "stratum2"); } void Registry::registerAllGpuApis() { // <GpuApi class>(SettingsName) addGpuApi<AmdgpuApi>("AmdgpuApi"); } //see RegistryImpl.cpp for other member implementations of Registry }
cpp
The 80th martyrdom anniversary of Adivasi freedom figther Komaram Bheem will be observed on Saturday. The local authorities have made all the arrangements at the Komaram Bheem memorial at Jodeghat village in Kerameri mandal of Komaram Bheem Asifabad district. Tribals will perform pujas according to their traditions today. Local leaders and officials will hold cultural programs at the memorial after paying tributes to the Adivasi leader. Large numbers of Adivasis from Maharashtra, Chhattisgarh, Madhya Pradesh and Uttar Pradesh will visit the memorial every year. The 'Tribal Darbar' which served as a platform for Adivasis to explain their problems to the higher authorities is not going to take place this time in the wake of the coronavirus pandemic. Only public representatives and officials from Adilabad district will attend the event. After the formation of Telangana state, the government has been officially conducting the martyrdom anniversary of Bheem every year.
english
from datetime import date, datetime from jsonschema import validate, FormatChecker from flask_philo import utils from .exceptions import SerializerError import uuid # uuid uuid_schema = { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" # noqa } class BaseSerializer(object): """ Base serializer """ _schema = {} _json = {} __model__ = None def __init__(self, request=None, model=None, data=None): """ A serializer object can be built from a request object or a model object """ if 'properties' not in self._schema: raise SerializerError( 'Can not build a serializer without a schema associated') else: self._properties = self._schema['properties'] if request: self._initialize_from_dict(request.json) elif model: self._initialize_from_model(model) elif data: self._initialize_from_dict(data) else: raise SerializerError( 'Can not build a serializer without an' 'http request or model associated') def _validate(self): # avoid extra values not defined in the schema if 'additionalProperties' not in self._schema: self._schema['additionalProperties'] = False validate( self._json, self._schema, format_checker=FormatChecker()) def _initialize_from_dict(self, data): """ Loads serializer from a request object """ self._json = data self._validate() for name, value in self._json.items(): if name in self._properties: # applying proper formatting when required if 'format' in self._properties[name]: format = self._properties[name]['format'] if 'date-time' == format: value = utils.string_to_datetime(value) elif 'date' == format: value = utils.string_to_date(value) setattr(self, name, value) def _initialize_from_model(self, model): """ Loads a model from """ for name, value in model.__dict__.items(): if name in self._properties: setattr(self, name, value) def update(self): """ Finds record and update it based in serializer values """ obj = self.__model__.objects.get_for_update(id=self.id) for name, value in self.__dict__.items(): if name in self._properties: setattr(obj, name, value) obj.update() return obj def to_json(self): """ Returns a json representation """ data = {} for k, v in self.__dict__.items(): if not k.startswith('_'): # values not serializable, should be converted to strings if isinstance(v, datetime): v = utils.datetime_to_string(v) elif isinstance(v, date): v = utils.date_to_string(v) elif isinstance(v, uuid.UUID): v = str(v) data[k] = v return data
python
After the 2021 edition of the Indian Premier League(IPL) was suspended in the wake of Covid's impact, the Board of Control for Cricket in India (BCCI) has shifted its focus to the much-awaited England series and final of the World Test Championship against New Zealand. Now media reports are abuzz that Andhra Pradesh player KS Bharat was also included in the squad that will fly to England for the UK tour. It is said that Bharat was named as a cover for Wriddhiman Saha. To the unversed, Wriddhiman Saha had tested positive for the virus and had managed to recover from the virus and tested negative for the disease. The BCCI added Bharat to the team as the board doesn't want to take any risk with the Wicket-Keeper slot. The Indian squad will leave for the United Kingdom on June 2 from Mumbai on a charter flight. The final of the World Test Championship will be played between India and New Zealand. Southampton will host the final between June 18-22. After the Test Championship, India will lock horns with the English team for a five-match Test series from August 5th to September 10. It's very rare to see players from the Telugu States play for the national cricket team, that too as a wicket-keeper. Hanuma Vihari is also a Telugu player, but he is a batsman. Let us wait and see if Bharat can make it to the final squad. India's Squad: Rohit Sharma, Shubman Gill, Mayank Agarwal, Cheteshwar Pujara, Virat Kohli (Captain), Ajinkya Rahane (vice-captain), Hanuma Vihari, Rishabh Pant (wicket-keeper), R. Ashwin, Ravindra Jadeja, Axar Patel, Washington Sundar, Jasprit Bumrah, Ishant Sharma, Mohd. Shami, Md. Siraj, Shardul Thakur, Umesh Yadav. KL Rahul and Wriddhiman Saha were also named in the squad. But the chances of the duo playing for India depends highly on their fitness. If the players get fit, they might be added to the playing eleven.
english
<reponame>carlo007/AI-Pygame #models.py #Models import time import math import pygame import physics import environment pygame.init() BLACK = (0, 0, 0) WHITE = (255, 255, 255) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) class Signature(): def __init__(self, construct): self.spawn_time = time.clock() if construct is not None: self.instance_of = construct[0] self.id = construct[1] else: self.instance_of = 'Actor' self.id = ['Basic', None] class Stats(): def __init__(self, actor_class=None, w=1.0): print w if actor_class is None: self.hp = 1 self.attack = 1 self.defense = 0 self.speed = 1 if actor_class == "HERO": self.hp = 100 self.attack = 15 self.defense = 0 self.speed = 2 if actor_class == "TANK": self.hp = 15 + w self.attack = 5 + math.sqrt(w) self.defense = 5 + w*math.log(w) self.speed = 1 + math.log(w/10 + 5) if actor_class == "SWARM": self.hp = 5 + math.sqrt(w) self.attack = 1 + math.log(w) self.defense = 1 + math.log(w) self.speed = 3 + math.sqrt(w)/3 if actor_class == "NORMAL": self.hp = 10 + 2*math.sqrt(w) self.attack = 1 + math.sqrt(w) self.defense = 1 + math.sqrt(w) self.speed = 2 + math.log(w) if actor_class == "BOSS": self.hp = 50 + w*math.log(w) self.attack = 10 + math.sqrt(w)*math.log(w) self.defense = 10 + math.sqrt(w)*math.log(w) self.speed = 2 + math.log(w) if actor_class == "SCATTER": self.hp = 3 + math.log(w) self.attack = 3 + math.sqrt(w) self.defense = 2 + math.sqrt(w)*math.log(w) self.speed = 2 + math.sqrt(w)/20 if actor_class == "SPEED": self.hp = 10 + math.log(w) self.attack = 5 + math.sqrt(w) self.defense = 2 + math.log(w) self.speed = 5 + math.sqrt(w)/math.log(w+1) if actor_class == "GHOST": self.hp = 2 + math.log(w) self.attack = 10 + math.sqrt(w) self.defense = 10 + math.sqrt(w) self.speed = 3 + math.log(w)*math.sqrt(w)/20 """ if actor_class == "SPEED": self.hp = 10 + math.log(w) self.attack = 5 + math.sqrt(w) self.defense = 2 + math.log(w) self.speed = 5 + math.sqrt(w) """ if actor_class == "MIMIC": self.hp = 100 + math.sqrt(w) self.attack = 5 + 2*math.sqrt(w) self.defense = 1 + math.log(w) self.speed = 3 + 2*math.log(w) self.current_hp = self.hp class Bar(pygame.Rect): def __init__(self, stats=None, actor=None): pygame.Rect.__init__(self, [0,0,0,0]) if stats is None: self.color = RED self.centerx = environment.WINDOW_WIDTH - 400 self.centery = environment.WINDOW_HEIGHT - 40 else: self.height = 20 self.width = (212.0*stats.current_hp)/stats.hp if actor.sign.id[0] == "HERO": self.color = GREEN self.centerx = 145 self.centery = 15 else: self.color = RED self.centerx = environment.WINDOW_WIDTH - 400 self.centery = environment.WINDOW_HEIGHT - 40 self.stats = stats self.visible = True def update(self, stats): self.height = 20 self.width = (212.0*stats.current_hp)/stats.hp print "width", self.width def reset(self, stats): if stats == self.stats: self.width = 0 self.height = 0 class Enemy_Bar(pygame.Rect): def __init__(self, parents_stats, parent_pos): pygame.Rect.__init__(self, parent_pos[0], parent_pos[1], parents_stats.hp/5, 5) self.color = RED self.visible = False def update(self, parent_stats, parent_pos, parent_size): self.centerx = parent_pos[0] self.centery = parent_pos[1] + parent_size[1]/2 self.width = parent_stats.current_hp/5 def set_visible(self): self.visible = True # Everything in the game that can be seen is an Actor. This is the master class for all the models to be implemented. class Actor(pygame.Rect): def __init__(self, rect, sign=None): pygame.Rect.__init__(self, rect) self.sign = Signature(sign) self.base_speed = 6 self.dir_x = 0 self.dir_y = 0 self.direction = (0, 0) def change_direction(self, direction): self.dir_x = direction[0] self.dir_y = direction[1] def update_direction(self, direction): self.direction = physics.normalize(direction) def update_pos(self): self.x += self.dir_x * self.base_speed self.y += self.dir_y * self.base_speed #-Subclasses of Actor----------------------- # Every type of projectile in the game such as a laser or bullet will be a subclass of this. class Projectile(Actor): def __init__(self, proj_rect, sign=None, parent_stats=None): Actor.__init__(self, proj_rect, sign) self.parent_stats = parent_stats def move(self): self.left += self.base_speed # Every type of pickup, such as rupees, power-ups, or items will be a subclass of this. class Pickup(Actor): def __init__(self, pickup_rect, sign=None): Actor.__init__(self, pickup_rect, sign) def move(self): self.left -= self.base_speed # Every type of living or sentient being in the game will be a subclass of Entity, such as Enemy, Hero, etc class Entity(Actor): def __init__(self, entity_rect, sign=None, w=1): Actor.__init__(self, entity_rect, sign) if sign is None: self.stats = Stats(None, w) else: self.stats = Stats(self.sign.id[0], w) self.alive = True self.vulnerable = True self.vulnerability_time = -1 def get_hit_by(self, projectile): if self.vulnerable: possible_damage = projectile.parent_stats.attack - self.stats.defense self.stats.defense -= 1 if possible_damage > 0: self.stats.current_hp -= possible_damage if self.stats.current_hp <= 0: self.alive = False def give_immunity(self): self.vulnerable = False self.vulnerability_time = time.clock() def take_immunity(self): self.vulnerable = True self.vulnerability_time = -1
python
<gh_stars>0 { "TeamMentor_Article": { "$": { "Metadata_Hash": "1842027215", "Content_Hash": "-1580234409" }, "Metadata": [ { "Id": [ "6c6eb0f4-bb71-4795-b596-599f6553a293" ], "Library_Id": [ "47a10a30-15ad-4cfd-bf82-00e9bb2037f6" ], "Title": [ "Off-site Backups Are Tracked" ], "Category": [ "Physical Security" ], "Phase": [ "Deployment" ], "Technology": [ "Technology Independent" ], "Type": [ "Checklist Item" ], "DirectLink": [ "Off-site Backups Are Tracked" ], "Tag": [ "" ], "Security_Demand": [ "" ] } ], "Content": [ { "$": { "Sanitized": "true", "DataType": "Html" }, "Data": [ "<h1>Applies to</h1>\r\n <ul>\r\n <li>PCI DSS Requirement 9.8</li>\r\n </ul>\r\n <h1>What to Check For</h1>\r\n <p>Check that off-site backups&nbsp;are be tracked. Ensure that tracking information and management authorization&nbsp;are logged.\r\n</p>\r\n <h1>Why</h1>\r\n <p>Off-site backups should be tracked so that their location is known in the event they are needed. Tracking details and management authorization should be logged to help with a possible audit.</p>\r\n <h1>How to Check</h1>\r\n <p>Examine the off-site backup tracking logs to verify that they include tracking information and management authorization.</p>\r\n <h1>How to Fix</h1>\r\n <p>Log off-site backup activity. When logging off-site backup activity, record the following information:</p>\r\n <ul>\r\n <li>Item name </li>\r\n <li>Item inventory number </li>\r\n <li>Date and&nbsp;time </li>\r\n <li>Name of the person performing the action </li>\r\n <li>Type of action </li>\r\n <li>Destination </li>\r\n <li>Signature of the person performing the action </li>\r\n <li>Name of the person authorizing the action </li>\r\n <li>Signature of the person authorizing the action</li>\r\n </ul>" ] } ] } }
json
Telugu Comedy Jokes: ఆయన నా మాట జవదాటరు! Vengalappa Jokes: ఆయన నా మాట జవదాటరు! శ్రీలక్ష్మి వాళ్లింటికి బంధువులొచ్చారు.. అయితే ఆమె భర్త వెంగళప్ప ఒక్కడే వంటలు చేస్తున్నాడు.. శ్రీలక్ష్మి : వదినా.. కాస్త అన్నయ్య గారిని పంపిస్తారా.. చుట్టాలకు మా ఆయన ఒక్కరే వంటలు చేయలేక ఇబ్బందులు పడుతున్నారు.. సూర్యకాంతం : తప్పకుండా పంపిస్తా వదినా.. నా మాటను మా ఆయన జవదాటరని నీకు ప్రత్యేకంగా చెప్పాలా..! We use cookies and other tracking technologies to provide services in line with the preferences you reveal while browsing the Website to show personalize content and targeted ads, analyze site traffic, and understand where our audience is coming from in order to improve your browsing experience on our Website. By continuing to browse this Website, you consent to the use of these cookies. If you wish to object such processing, please read the instructions described in our privacy policy/cookie policy.
english
# subtitle-translate-tmt 使用[腾讯机器翻译](https://cloud.tencent.com/product/tmt) API 为 PotPlayer 翻译实时字幕. ## 必要条件 * PotPlayer 版本 >= 1.7.20977 * [开通腾讯云 机器翻译API](https://console.cloud.tencent.com/tmt)(需实名认证) * [创建腾讯云 SecretId & SecretKey](https://console.cloud.tencent.com/cam/capi) ## 安装 1. [下载](https://github.com/BlackGlory/subtitle-translate-tmt/archive/master.zip) 2. 解压缩 3. 复制文件 `SubtitleTranslate - tmt.as` 和 `SubtitleTranslate - tmt.ico` 到 `C:\Program Files\DAUM\PotPlayer\Extention\Subtitle\Translate` 文件夹 4. 运行/重启 PotPlayer 5. 菜单->字幕->实时字幕翻译->实时字幕翻译设置->腾讯机器翻译->帐户设置, 填写你的 SecretId 和 SecretKey 6. 配置 PotPlayer 关于实时字幕翻译设置的其他选项, 播放带有字幕文本的视频, 测试效果
markdown
Collins Learning, Mattel and the Scrabble Association of India today announced the launch of the National School Scrabble™ Championship 2022 for students under 18 years of age. Collins Learning, Mattel and the Scrabble Association of India today announced the launch of the National School Scrabble™ Championship 2022 for students under 18 years of age. A traditional favourite, Scrabble™ has sold more than 150 million sets worldwide since its debut more than 70 years ago. It is a game that helps in building language skills, dictionary skills, mathematical skills, general knowledge, attention span, time management, and peer-to-peer learning to name a few. Most importantly, it is enjoyable. The National School Scrabble™ Championship 2022 consists of three rounds: Aditi Ravichandar, Head of Marketing, Mattel India, said, "A family game, a competitive game and an educational tool are a few ways of defining the original Scrabble™ Board Game. Scrabble™ is a fun and engaging way to build on one's English vocabulary and even Math skills. With the 2022 School Scrabble Championship, we are very excited to bring the game to a new generation of players across India. " Sudhir Kamath, Tournament Director for the School Scrabble™ Championship and former President of the Scrabble Association of India, spoke about the rising popularity of the game. He said, "Indian competitive Scrabble™ is on an upswing - our players finished #4 in the World Scrabble™ Championships for adults and #2 in the World Youth Scrabble™ Championship last year. I'm sure that the School Scrabble™ Championship will help us unearth the next generation of stars! Looking forward to an exciting competition. " Rageshree Niyogi, Head - Product and Marketing, Collins Learning India, said, "Collins Learning focuses on making learning joyful for students across age groups. To this end, we engage students through play-based learning, mind sports and other meaningful activities that cultivate their cognitive and co-scholastic skills. Scrabble™ is a versatile game. Collins Scrabble™ Words is one of most used word lists in English-language Scrabble™ tournament, and it feels great to collaborate with Mattel India and the Scrabble Association of India to conduct a national championship. Our previous editions have been immensely popular among students and we hope to encourage more students to take up mind sports such as Scrabble™ . " Mattel is a leading global toy company and owner of one of the strongest portfolios of children's and family entertainment franchises in the world. Their mission is to create innovative products and experiences that inspire, entertain, and develop children through play. Scrabble™ is a registered trademark. All intellectual property rights in and to the game are owned by Mattel throughout the world, except in the U. S. A and Canada where it is a trademark of Hasbro Inc. Scrabble Association of India (SAI) is the apex body that coordinates Scrabble™ tournaments in India, maintains player ratings, interacts with overseas Scrabble organisations as the country representative and selects players to represent India in international tournaments. Some of the other objectives of SAI are promotion of the game of Scrabble™, developing a tournament circuit, enhancing the quality of Scrabble™ players at all levels. Collins Learning has a rich history of publishing educational and informative books for over 200 years and has maintained an impressive record in creating market-leading products across various sectors. As the educational publishing division of HarperCollins Publishers, Collins Learning strives to promote holistic development of children of all ages. As one of the fastest growing companies in the K12 segment in India, Collins Learning's educational publishing continues to deliver up-to-date and engaging student resources and exceptional teacher support to help schools tackle new initiatives and utilise the latest technology. Schools and students can visit for more details. This story is provided by PRNewswire. will not be responsible in any way for the content of this article. (ANI/PRNewswire) ( With inputs from ANI )
english
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # standard modules import logging # extra modules dependencies_missing = False try: import requests except ImportError: dependencies_missing = True from metasploit import module metadata = { 'name': 'Python Module Example', 'description': ''' Python communication with msfconsole. ''', 'authors': [ '<NAME>' ], 'date': '2018-03-22', 'license': 'MSF_LICENSE', 'references': [ {'type': 'url', 'ref': 'https://www.rapid7.com/blog/post/2017/12/28/regifting-python-in-metasploit/'}, {'type': 'aka', 'ref': 'Coldstone'} ], 'type': 'remote_exploit_cmd_stager', 'targets': [ {'platform':'linux', 'arch': 'x86'} ], 'payload': { 'command_stager_flavor': 'curl', }, 'options': { 'targeturi': {'type': 'string', 'description': 'The base path', 'required': True, 'default': '/'}, 'rhost': {'type': 'address', 'description': 'Target address', 'required': True, 'default': None}, 'command': {'type': 'string', 'description': 'The command to execute via the q GET parameter', 'required': True} } } def run(args): module.LogHandler.setup(msg_prefix='{} - '.format(args['rhost'])) if dependencies_missing: logging.error('Module dependency (requests) is missing, cannot continue') return # Your code here try: # args['command'] is where the command stager command lives r = requests.get('https://{}/{}/?q={}'.format(args['rhost'], args['targeturi'], args['command']), verify=False) except requests.exceptions.RequestException as e: logging.error('{}'.format(e)) return logging.info('{}...'.format(r.text[0:50])) if __name__ == '__main__': module.run(metadata, run)
python
<filename>application/third_party/discussions/265677.json<gh_stars>0 [ { "Id": "644143", "ThreadId": "265677", "Html": "\r\n<p>Hello,</p>\r\n<p>I write data with PHPExcel into an Excelsheet. If it is a date I'm formatting it as described behind those links:</p>\r\n<p><a rel=\"nofollow\" href=\"244227\" target=\"_blank\">http://phpexcel.codeplex.com/discussions/244227</a><br>\r\n<a rel=\"nofollow\" href=\"http://stackoverflow.com/questions/3267545/custom-phpexcel-cell-format-only-shown-after-double-click\" target=\"_blank\">http://stackoverflow.com/questions/3...r-double-click</a></p>\r\n<p>This way the date will be written into cell in correct format.<br>\r\nBut if I right click the cell in Excel and choose &quot;cell format&quot;, there is &quot;user defined&quot; highlighted and not &quot;date&quot;.</p>\r\n<p>How to set the formatting to date?</p>\r\n<p>PS: I'm using a german MS Office 2003 .</p>\r\n<p>&nbsp;</p>\r\n<p>thx</p>\r\n", "PostedDate": "2011-07-19T00:09:00.23-07:00", "UserRole": null, "MarkedAsAnswerDate": null } ]
json
{ "Update": "2020-03-23 15:28:16", "answer": [ "C" ], "category": "saa", "choices": [ "A.Elastic Load Balancing request routing", "B.An Amazon Route 53 weighted routing policy", "C.Elastic Load Balancing cross-zone load balancing", "D.An Amazon Route 53 latency routing policy " ], "detail": "Which of the following features ensures even distribution of traffic to Amazon EC2 instances in multiple Availability Zones registered with a load balancer?", "explanation": [ "Correct answer is C", "Refer AWS documentation - ELB Cross Zone Load Balancing", "Cross-zone load balancing reduces the need to maintain equivalent numbers of instances in each enabled Availability Zone, and improves your application's ability to handle the loss of one or more instances. However, we still recommend that you maintain approximately equivalent numbers of instances in each enabled Availability Zone for higher fault tolerance.", "Option B & D are wrong as Route 53 routing policy can help route traffic to ELB or instances on the basis of latency or weight." ], "id": 315, "saved_answer": null, "type": "Multiple Choice" }
json
.katex-fibo { margin: 0 auto; margin-top: 3px; } .katex .base { background-color: darkslategray; border: 3px solid darkgray; }
css
India’s current COVID crisis has got the world’s attention and many eminent names have come up to help raise funds for medical aid to the people suffering from Coronavirus. Priyanka Chopra and Jay Shetty were the first to start a fundraiser to contribute to the medical resources of the country. Joining in the cause, Will Smith, Jada Smith, Shawn Mendes, Camila Cabello and more made donations to the fundraiser and urged more people to help out. Now, X-Men actor James MCavoy has shared a video asking everyone to help out and contribute to India’s fight against the pandemic. In the video he talks about the Daivik Foundation that is helping arrange oxygen for the country, He further talks of how every effort counts and if not money, people should help the foundation spread the word and get donations for the oxygen supplies. We applaud the actor for his effort and leave you with the details of the foundation in this video below.
english
<reponame>daisuke-fujita/monsaca-analytics_20181107 #!/usr/bin/env python # Copyright (c) 2016 Hewlett Packard Enterprise Development Company, L.P. # # 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. import abc import logging from monasca_analytics.component import base logger = logging.getLogger(__name__) class BaseIngestor(base.BaseComponent): """Base class for all the Ingestor modules""" def __init__(self, _id, _config): """Constructor with ID and configuration :type _id: str :param _id: ID assigned to this component :type _config: dict :param _config: configuration of this component """ self._features = None super(BaseIngestor, self).__init__(_id, _config) @abc.abstractmethod def map_dstream(self, dstream): """Transforms the data provided by a dstream to another dstream Abstract method to be implemented by BaseIngestor children. The processed dstream should be returned. :type dstream: pyspark.streaming.DStream :param dstream: stream of data before being processed :rtype: pyspark.streaming.DStream :returns: stream of data after being processed """ pass def set_feature_list(self, features): """Set the list of features :type features: list[str] :param features: List of features names (when extracted from the data) """ self._features = features
python
--- title: "IMetaDataTables::GetNextBlob Method" ms.date: "03/30/2017" api_name: - "IMetaDataTables.GetNextBlob" api_location: - "mscoree.dll" api_type: - "COM" f1_keywords: - "IMetaDataTables::GetNextBlob" helpviewer_keywords: - "IMetaDataTables::GetNextBlob method [.NET Framework metadata]" - "GetNextBlob method [.NET Framework metadata]" ms.assetid: 017c8ab4-4c09-4754-9935-5b0b49cabecb topic_type: - "apiref" --- # IMetaDataTables::GetNextBlob Method Gets the index of the next binary large object (BLOB) in the table. ## Syntax ```cpp HRESULT GetNextBlob ( [in] ULONG ixBlob, [out] ULONG *pNext ); ``` ## Parameters `ixBlob` [in] The index, as returned from a column of BLOBs. `pNext` [out] A pointer to the index of the next BLOB. ## Requirements **Platforms:** See [System Requirements](../../../../docs/framework/get-started/system-requirements.md). **Header:** Cor.h **Library:** Used as a resource in MsCorEE.dll **.NET Framework Versions:** [!INCLUDE[net_current_v20plus](../../../../includes/net-current-v20plus-md.md)] ## See also - [IMetaDataTables Interface](../../../../docs/framework/unmanaged-api/metadata/imetadatatables-interface.md) - [IMetaDataTables2 Interface](../../../../docs/framework/unmanaged-api/metadata/imetadatatables2-interface.md)
markdown
<!DOCTYPE html> <html> <head> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-76296508-1', 'auto'); ga('send', 'pageview'); </script> <meta charset="utf-8"> <title>Is Coding Bootcamp Right for You? Week 13 in The Life of a Coding Bootcamper. Finale</title> <meta name="description" content="Hey you! You made it. You made the journey with me to the last final week of class and the big Project 4 finale. It's been a long road and now it's almost time to say goodbye. This week, our instructors provided two elective classes, an Instructor AMA (Ask Me Anything, famous from Reddit) and Project 4 Presentations were due. On the very last day of class, we reflected with our classmates, pop champagne and discussed life after WDI with the Outcomes team. Let's go!"> <meta name="author" content="<NAME>"> <!-- Enable responsive viewport --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le styles --> <link href="/assets/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="/assets/resources/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <link href="/assets/resources/syntax/syntax.css" rel="stylesheet"> <link href="/assets/css/style.css" rel="stylesheet"> <!-- Le fav and touch icons --> <!-- Update these with your own images <link rel="shortcut icon" href="images/favicon.ico"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> --> <link rel="alternate" type="application/rss+xml" title="" href="/feed.xml"> </head> <body> <nav class="navbar navbar-default visible-xs" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a type="button" class="navbar-toggle nav-link" href="http://github.com/LWatsonlm"> <i class="fa fa-github"></i> </a> <a type="button" class="navbar-toggle nav-link" href="http://twitter.com/lmwatsonn"> <i class="fa fa-twitter"></i> </a> <a type="button" class="navbar-toggle nav-link" href="mailto:<EMAIL>"> <i class="fa fa-envelope"></i> </a> <a class="navbar-brand" href="/"> <img src="http://www.knowyourapps.com/wp-content/uploads/2012/08/ICON_TeToTe.png" id="navbar-brand" class="img-circle" /> Tech Eats: Stories of Tech and Food </a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a href="/">Home</a></li> <li><a href="/categories.html">Categories</a></li> <li><a href="/tags.html">Tags</a></li> </ul> </div><!-- /.navbar-collapse --> </nav> <!-- nav-menu-dropdown --> <div class="btn-group hidden-xs" id="nav-menu"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-bars"></i> </button> <ul class="dropdown-menu" role="menu"> <li><a href="/"><i class="fa fa-home"></i>Home</a></li> <li><a href="/categories.html"><i class="fa fa-folder"></i>Categories</a></li> <li><a href="/tags.html"><i class="fa fa-tags"></i>Tags</a></li> <li class="divider"></li> <li><a href="#"><i class="fa fa-arrow-up"></i>Top of Page</a></li> </ul> </div> <div class="col-sm-3 sidebar hidden-xs" style=""> <!-- sidebar.html --> <header class="sidebar-header" role="banner"> <a href="/"> <img src="/img/latoyawatson.jpg" class="img-circle" id="latoya"> </a> <h3 class="title"> <a href="/">Tech Eats: Stories of Tech and Food</a> </h3> </header> <div id="bio" class="text-center"> Blogging about Tech and Food Stuff from Washington, D.C. </div> <div id="contact-list" class="text-center"> <ul class="list-unstyled list-inline"> <li> <a class="btn btn-default btn-sm" href="https://github.com/LWatsonlm"> <i class="fa fa-github-alt fa-lg"></i> </a> </li> <li> <a class="btn btn-default btn-sm" href="https://twitter.com/lmwatsonn"> <i class="fa fa-twitter fa-lg"></i> </a> </li> <li> <a class="btn btn-default btn-sm" href="mailto:<EMAIL>"> <i class="fa fa-envelope fa-lg"></i> </a> </li> </ul> <ul id="contact-list-secondary" class="list-unstyled list-inline"> <li> <a class="btn btn-default btn-sm" href="https://linkedin.com/in/watsonlm"> <i class="fa fa-linkedin fa-lg"></i> </a> </li> <li> <a class="btn btn-default btn-sm" href="/feed.xml"> <i class="fa fa-rss fa-lg"></i> </a> </li> </ul> </div> <!-- sidebar.html end --> </div> <div class="col-sm-9 col-sm-offset-3"> <div class="page-header"> <h1>Is Coding Bootcamp Right for You? Week 13 in The Life of a Coding Bootcamper. Finale </h1> </div> <article> <div class="col-sm-10"> <span class="post-date"> December 4th, 2016 - 9 mins Read. </span> <div class="article_body"> <p>Hey you! You made it. You made the journey with me to the last final week of class and the big Project 4 finale. It’s been a long road and now it’s almost time to say goodbye. This week, our instructors provided two elective classes, an Instructor AMA (Ask Me Anything, famous from Reddit) and Project 4 Presentations were due. On the very last day of class, we reflected with our classmates, pop champagne and discussed life after WDI with the Outcomes team. Let’s go!</p> <h1 id="day-1-one-on-ones-and-independent-project-work">Day 1: One on Ones and Independent Project Work</h1> <p>Today, we didn’t have anything else to do but work, work, work, work, work. An instructor was available to answer any questions from 1:30pm - 2:30pm, exactly one hour of the day. Otherwise, all questions were to be submitted as Github Issues on the general project repo.</p> <h1 id="day-2-project-work-and-intro-to-react-native">Day 2: Project Work and Intro to React Native</h1> <p>Again, an instructor was available for one hour of the day. All issues or questions were to be submitted through Github as an issue. Luckily, the instructors were very quick to respond to issues and provide help online. Also, as a class, we helped each other a lot through difficult bugs. It’s really impressive to see how far everyone has come in their journey of learning to programming. I was truly lucky to have such an amazing cohort, full of bright, helpful and eager individuals.</p> <p>Okay, enough of the sappy talk.</p> <h2 id="intro-to-react-native-25-hours">Intro to React Native: 2.5 Hours</h2> <p><img src="/img/react-native.png" alt="React Native" /></p> <p>React Native is a framework for building cross-platform apps. React Native is like React, but it uses native components instead of web components as building blocks. This lesson only covered iOS development, that once learned, can be ported into creating an Android app very quickly.</p> <p>Unfortunately, I did not attend this elective. I didn’t think my brain could handle any more new information and I was too focused on my project to even get up and take a bathroom break. But I’ll share with you the learning objectives.</p> <h2 id="learning-objectives">Learning Objectives:</h2> <ul> <li>Explain the problem React Native solves and its approach to solving it</li> <li>Build an iOS app with React Native</li> <li>Utilize <code class="highlighter-rouge">Text</code>, <code class="highlighter-rouge">View</code>, <code class="highlighter-rouge">ListView</code>, <code class="highlighter-rouge">Image</code> and <code class="highlighter-rouge">TextInput</code> components to construct native screens</li> <li>Explain how to style components in a React Native application</li> </ul> <h1 id="day-3-project-work-and-custom-deployment">Day 3: Project Work and Custom Deployment</h1> <p>All morning was all work and barely any play. In the afternoon, our official last class was available as an elective: Custom Deployment.</p> <h2 id="custom-deployment-25-hours">Custom Deployment: 2.5 Hours</h2> <p>Today, I was feeling good about the progress I’ve made in my project so I decided to give myself a break and learn about custom deployments! So far in class, we’ve deployed our apps using Heroku, Github Pages and Firebase. Today, we learned how to deploy our apps using Digital Ocean.</p> <p><img src="/img/IMG_20161130_144513.jpg" alt="Digital Ocean Picture" /></p> <h2 id="learning-objectives-1">Learning Objectives:</h2> <ul> <li>Create a Digital Ocean droplet</li> <li>Log into a server via SSH</li> <li>Install dependencies on a server</li> <li>Install a webserver</li> <li>Clone an application to a Virtual Private Server (VPS)</li> <li>Set up a domain and proxy server</li> <li>Configure a reverse proxy</li> </ul> <p>So, if you’re like me, you might be asking yourself, “Heroku worked just fine… why learn something new?”. With Heroku, deploying to Heroku requires a very specific configuration and customization is very limited. With Digital Ocean, you have customization, you can install whatever dependencies you want - whether it’s gems, npm modules, etc. So, it’s worth getting an understanding for when we start building bigger apps, with more dependencies and need the flexibility.</p> <p>So as a class, we registered for a Digital Ocean account and walked through the learning objectives together.</p> <p>One notable thing, it was my first time actually using <code class="highlighter-rouge">nginx</code>. I’ve seen that word before but today I found out it’s a web server. Most popular for being fast with low memory usage and that it can act as a reverse proxy server. You can easily install it using the command line:</p> <p><code class="highlighter-rouge">$ sudo apt-get install nginx</code></p> <p>You’ll know nginx is up and running if you see something like this…</p> <p><img src="/img/nginx.png" alt="nginx" /></p> <p>Cool.</p> <h1 id="day-4-instructors-ama">Day 4: Instructors AMA</h1> <p>So it’s the last day before graduation and yes there’s still work to be done! However, there was no way I was missing an instructor AMA, aka, ASK ME ANYTHING! Made famous from Reddit, AMA is when famous people or someone with an interesting role or story opens up a forum and you can ask them anything. Literally, anything you want!</p> <p>This was a lot of fun because we really got to know our instructors more… questions ranged from “How hard is it to code in real life with real humans?” to “What do you think is the meaning of life?”</p> <p><img src="/img/AMA.JPG" alt="Shot of AMA" /></p> <center>How amazing is this shot? Looks like an album cover. Kudos to my classmate <NAME> for the pic!</center> <h1 id="day-5-presentations-graduation-and-reflections">Day 5: Presentations, Graduation and Reflections</h1> <p>It’s the BIG day, folks! Time to talk about the project.</p> <h2 id="project-overview">Project Overview</h2> <p>We’ve come a long way, and it’s time to show it. This will be the most advanced project to date, and if you put creativity into it, it’ll hopefully be the thing you want to show off most prominently in your portfolio.</p> <p>We get to call the shots and invent our own idea, choosing a framework &amp; tools that are appropriate for what we want to build. Pull from everything we’ve learned so far, and tackle something that’ll push us a little outside of our comfort zone.</p> <p>Make sure to review the project proposal with an instructor so we can make sure it’s something that can be accomplish in the limited time we have, and make sure it’s something that’ll be impressive visually. Sometimes people do judge a book by its cover – or an app by its design.</p> <h2 id="technical-suggestions">Technical Suggestions</h2> <h3 id="your-app-must">Your app must:</h3> <ul> <li>Be a complete product, which most likely means multiple relationships and CRUD functionality for at least a couple models</li> <li>Implement thoughtful user stories that are significant enough to help you know which features to build and which to scrap</li> <li>Be deployed online so it’s publicly accessible</li> </ul> <h2 id="what-did-i-do">What Did I Do?</h2> <h2 id="background-story">Background Story</h2> <p>Going out on a budget is hard. After spending 14 weeks unemployed while attending General Assembly, going out is almost impossible without busting your budget for the week.</p> <p>Every night, my friends and I researched bars with the best drink specials. The number one question in mind… where are all of the drink specials? And <strong>$ip</strong> was born.</p> <p><strong>$ip</strong> will only show you bottomless drink specials that are under $15. In most cases, the drink special is FREE!</p> <p><img src="/img/$ip.png" alt="$ip Screenshot" /></p> <center>Screenshot of main page for $ip</center> <p><br /></p> <p><img src="/img/collage-sip.jpg" alt="$ip Collage" /></p> <center>Collage of screenshots</center> <h2 id="technologies-used">Technologies Used</h2> <p>$ip is a full CRUD, MEAN Application with a Google Maps API. It’s built with:</p> <ul> <li>AngualarJS</li> <li>MongoDB</li> <li>Mongoose</li> <li>Express</li> <li>Nodejs</li> <li>Google Maps API for Plotting Data on the Map</li> </ul> <p>I created my own API that you can <a href="https://sip-dc.herokuapp.com/api/drinks">view/use here</a></p> <h2 id="live-demo">Live Demo</h2> <p>So you can check out my app, $ip, right now by visiting it’s <a href="https://sip-dc.herokuapp.com/">live demo link</a></p> <p>If interested, you can check out <a href="https://github.com/LWatsonlm/Sip">my Github</a></p> <p>Here’s how to run the app from Github:</p> <p><code class="highlighter-rouge">$ npm install</code></p> <p><code class="highlighter-rouge">$ mongod</code></p> <p><code class="highlighter-rouge">$ nodemon index.js</code></p> <h2 id="upcoming-features">Upcoming Features</h2> <ol> <li>Remove the show view and corresponding show router and use modals instead, making it a true SPA.</li> <li>When you click on a marker on the map, details appear regarding the location.</li> <li>Adding Google Places API, so users can search inside the Google Map for locations.</li> </ol> <h2 id="presentations">Presentations</h2> <p>We had presentations in the same style of project one… science fair style. Remember that? It’s when everyone stands up at their individual spots in the room and show off your project to anyone who walks to you. Definitely much more preferred than standing up in front of the room and presenting.</p> <p>One of the best feelings in the world is watching people light up when their interacting with something you built. I loved being able to be proud of my work and show off it’s beauty. It helps that it’s an app focusing on drinking deals because who doesn’t love a good deal on alcohol?!</p> <p><img src="/img/classmates.jpg" alt="classmates viewing my app" /> <br /> <img src="/img/classmates2.jpg" alt="classmates viewing my app2" /></p> <center>Classmates interacting with $ip! Love it!</center> <h1 id="day-5-graduation-and-reflections">Day 5: Graduation and Reflections</h1> <p>After everyone had a chance to present their project, it was time to reflect on everything we’ve learned and how much we’ve grown.</p> <p>We were told to grab a piece of paper and a piece of tape and turn to the left and tape that paper on our neighbor’s back. Remember those days in grade school where you would wear a white shirt and let people write notes with markers on it? Or how our year books had blank pages towards the end so your friends could write messages saying “stay true”… “never change!” … this was that type of party.</p> <p>Since I actually like these people, today wasn’t as painful as middle school.</p> <p><img src="/img/reflections.jpg" alt="reflecting" /> <br /> <img src="/img/refelections2.jpg" alt="reflecting" /> <br /> <img src="/img/reflections3.jpg" alt="reflecting" /></p> <center>You write on my back, I'll write on yours!</center> <p><br /></p> <p>Here’s what I got back from … my back: <img src="/img/my-back.jpg" alt="What my classmates think about me" /></p> <p>After this, we popped champagne (no really! We had 6 bottles of champagne!) and cheers to our victory. Then we took a super awkward group picture haha.</p> <p><img src="/img/bad-class-pic.JPG" alt="Group Picture" /></p> <center>lol</center> <p><br /></p> <p>And that was that. Another chapter closed in my life.</p> <p>Next post I’ll chat about what’s been up since ending this journey into coding. Spoiler alert: It has been a lot of networking, public speaking, and just getting my face out there!</p> <p>Until next time, friends.</p> </div> <ul class="tag_box list-unstyled list-inline"> <li><i class="fa fa-folder-open"></i></li> <li><a href="/categories.html#coding-bootcamp-ref"> coding-bootcamp <span>(19)</span> </a></li> </ul> <ul class="list-inline"> <li><i class="fa fa-tags"></i></li> <li> <a href="/tags.html#angular-ref"> angular <span>(8)</span> , </a> </li> <li> <a href="/tags.html#express-ref"> express <span>(5)</span> , </a> </li> <li> <a href="/tags.html#node-ref"> node <span>(4)</span> , </a> </li> <li> <a href="/tags.html#mongoose-ref"> mongoose <span>(5)</span> , </a> </li> <li> <a href="/tags.html#project-week-ref"> project-week <span>(9)</span> </a> </li> </ul> <hr> <div> <section class="share col-sm-6"> <h4 class="section-title">Share Post</h4> <a class="btn btn-default btn-sm twitter" href="http://twitter.com/share?text=Is Coding Bootcamp Right for You? Week 13 in The Life of a Coding Bootcamper. Finale&via=lmwatsonn" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> <i class="fa fa-twitter fa-lg"></i> Twitter </a> <a class="btn btn-default btn-sm facebook" href="https://www.facebook.com/sharer/sharer.php" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"> <i class="fa fa-facebook fa-lg"></i> Facebook </a> <a class="btn btn-default btn-sm gplus" onclick="window.open('https://plus.google.com/share?url='+window.location.href, 'google-plus-share', 'width=490,height=530');return false;"> <i class="fa fa-google-plus fa-lg"></i> Google+ </a> </section> <section class="col-sm-6 author"> <img src="/img/latoyawatson.jpg" class="img-rounded author-image" id="smaller-latoya" /> <h4 class="section-title author-name"><NAME></h4> <p class="author-bio">Blogging about Tech and Food Stuff from Washington, D.C.</p> </section> </div> <div class="clearfix"></div> <ul class="pager"> <li class="previous"><a href="/coding-bootcamp/2016/12/04/week13.html" title="Is Coding Bootcamp Right for You? Week 13 in The Life of a Coding Bootcamper. Finale">&larr; Previous</a></li> <li class="next disabled"><a>Next &rarr;</a> </ul> <hr> </div> <div class="col-sm-2 sidebar-2"> </div> </article> <div class="clearfix"></div> <div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES * * */ var disqus_shortname = 'lwatsonlm-github-io-tech-eats'; /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> <footer> <hr/> <p> &copy; 2017 <NAME> with <a href="http://jekyllrb.com/">Jekyll</a>. </p> </footer> </div> <script type="text/javascript" src="/assets/resources/jquery/jquery.min.js"></script> <script type="text/javascript" src="/assets/resources/bootstrap/js/bootstrap.min.js"></script> <script type="text/javascript" src="/assets/js/app.js"></script> </body> </html> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-76296508-1', 'auto'); ga('send', 'pageview'); </script>
html
Break above $1880 prices may edge further higher. Else, there are chances of choppy with corrective selling. Expect a choppy trade inside $25. 50-23 levels expected initially. Breaking any of the sides would suggest fresh direction for the day. Immediate support is seen at $77. Break of which would extend selling pressure. Else, a turnaround is possible. Prices continue to be choppy with mild positive as long as it hold the support of 48600. A close below 47800 is a weak signal. Inability to move past Rs 67500 there are chances of corrective selling. A direct break of which would continue fresh rallies. Break below 5850 would extend selling pressure. Immediate turnaround point is seen at 5980. Expect a choppy trading initially. However, a direct dip below 345 is a sign of weakness. Selling pressure likely to continue while prices stay below 725. Further rallies are seen only a break of 742. Upticks may continue while Rs 1485 hold the downside. Consistent trades below the same is a weak signal. If the support of 262 remain hold the downside, expect recovery upticks. Else, weak bias would extend in the counter. A direct break below Rs 186 would trigger major liquidation. Else, turnaround in prices are likely. A direct drop below 200 is a sign of another round of liquidation pressure. Otherwise, chances of recovery upticks are in the cards.
english
Ever wondered just why Apple issued those Powerbook battery recalls? Giant explosions, as reader Kevin submitted, via his "sister's friend:" > Just a warning to everyone: we woke up this morning at 6am because the apartment was filled with smoke and our laptop was on fire. It wasn't plugged in, and it had been put to 'sleep' over night. It's only a year old, so the lesson is: DON'T LEAVE YOUR LAPTOP ON UNATTENDED! Ouch. Stay safe, kids. And look at more horror here.
english
{ "editor.codeLens": true, "csharp.referencesCodeLens.enabled": false, "editor.detectIndentation": false, "editor.formatOnSave": true, "editor.insertSpaces": false, "editor.minimap.enabled": false, "editor.renderIndentGuides": false, "editor.tabSize": 4, "files.hotExit": "off", "telemetry.enableTelemetry": false, "telemetry.enableCrashReporter": false, "go.formatTool": "goimports", "go.gopath": "/Users/Metalnem/Go", "window.zoomLevel": 0, "editor.wordWrap": "on", "extensions.autoUpdate": true, "files.exclude": { "**/.git": true, "**/.hg": true, "**/.DS_Store": true, "**/bin": true, "**/obj": true }, "workbench.iconTheme": "vs-seti", "workbench.startupEditor": "newUntitledFile", "explorer.confirmDelete": false, "explorer.confirmDragAndDrop": false, "omnisharp.path": "latest", "docker.languageserver.diagnostics.instructionWorkdirRelative": "ignore", "html.format.wrapLineLength": 0, "html.format.wrapAttributes": "preserve-aligned" }
json
<reponame>zycgit/hasor-website<filename>website-core/src/main/java/net/hasor/website/manager/EnvironmentConfig.java /* * Copyright 2008-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.hasor.website.manager; import net.hasor.core.Inject; import net.hasor.core.InjectSettings; import net.hasor.core.Singleton; import net.hasor.core.Type; import net.hasor.website.core.Service; import net.hasor.website.domain.beans.AppConstant; import java.util.Date; /** * * @version : 2016年1月10日 * @author 赵永春 (<EMAIL>) */ @Singleton @Service("env") public class EnvironmentConfig { @InjectSettings("appExample.curentVersion") private String curentVersion; @InjectSettings("appExample.envType") private String envType; @InjectSettings("appExample.hostName") private String hostName; @InjectSettings("appExample.recoveryTime") private int recoveryTime; @InjectSettings("uploader.maxSize") private int maxSize; @Inject(value = AppConstant.VAR_CONTEXT_PATH, byType = Type.ByName) private String contextPath; // /**当前软件最近版本*/ public String getCurentVersion() { return this.curentVersion; } // /**当前所属环境*/ public String getEnvType() { return this.envType; } // /**是否为日常开发环境*/ public boolean isDaily() { return "daily".equalsIgnoreCase(this.envType); } // /**主机地址*/ public String getHostName() { return this.hostName; } // /**获取静态文件host地址*/ public String getStaticFilesHost() { if (this.isDaily()) { return "//files.hasor.net"; } else { return "//files.hasor.net"; } } // /**文件上传最大大小*/ public int getMaxSize() { return this.maxSize; } /** 在给定的时间上加上一个回收期限 */ public Date getRecoveryTime(Date date) { long addMore = AppConstant.OneHourTime * this.recoveryTime; return new Date(date.getTime() + addMore); } }
java
<div class="title" id="thig5.3:0.1"> <a href="https://suttacentral.net/thig5.3/en/sujato#thig5.3:0.1">Thig5.3:0.1</a> <div class="root_titles" lang="pli"> <h1>Therīgāthā</h1> <h2>Pañcakanipāta</h2> <h3>3. Sīhātherīgāthā</h3> </div> <div class="translation_titles" lang="en"> <h1>Verses of the Senior Nuns</h1> <h2>The Book of the Fives</h2> <h3>5.3. Sīhā</h3> </div> </div> <div class="verse" id="thig5.3:1.1"> <a href="https://suttacentral.net/thig5.3/en/sujato#thig5.3:1.1">Thig5.3:1.1</a> <p class="pali_verse_paragraph" lang="pi" translate="no"> “Ayoniso manasikārā,<br/> kāmarāgena aṭṭitā;<br/> Ahosiṁ uddhatā pubbe,<br/> citte avasavattinī. </p> <p class="translation_verse_paragraph" lang="en"> Due to improper attention,<br/> I was racked by desire for pleasures of the senses.<br/> I was restless in the past,<br/> lacking control over my mind. </p> </div> <div class="verse" id="thig5.3:2.1"> <a href="https://suttacentral.net/thig5.3/en/sujato#thig5.3:2.1">Thig5.3:2.1</a> <p class="pali_verse_paragraph" lang="pi" translate="no"> Pariyuṭṭhitā klesehi,<br/> subhasaññānuvattinī;<br/> Samaṁ cittassa na labhiṁ,<br/> rāgacittavasānugā. </p> <p class="translation_verse_paragraph" lang="en"> Overcome by corruptions,<br/> pursuing perceptions of the beautiful,<br/> I gained no peace of mind.<br/> Under the sway of lustful thoughts, </p> </div> <div class="verse" id="thig5.3:3.1"> <a href="https://suttacentral.net/thig5.3/en/sujato#thig5.3:3.1">Thig5.3:3.1</a> <p class="pali_verse_paragraph" lang="pi" translate="no"> Kisā paṇḍu vivaṇṇā ca,<br/> satta vassāni cārihaṁ;<br/> Nāhaṁ divā vā rattiṁ vā,<br/> sukhaṁ vindiṁ sudukkhitā. </p> <p class="translation_verse_paragraph" lang="en"> thin, pale, and wan,<br/> for seven years I wandered,<br/> full of pain,<br/> finding no happiness by day or night. </p> </div> <div class="verse" id="thig5.3:4.1"> <a href="https://suttacentral.net/thig5.3/en/sujato#thig5.3:4.1">Thig5.3:4.1</a> <p class="pali_verse_paragraph" lang="pi" translate="no"> Tato rajjuṁ gahetvāna,<br/> pāvisiṁ vanamantaraṁ;<br/> Varaṁ me idha ubbandhaṁ,<br/> yañca hīnaṁ punācare. </p> <p class="translation_verse_paragraph" lang="en"> Taking a rope<br/> I entered deep into the forest, thinking:<br/> “It’s better that I hang myself<br/> than I return to a lesser life.” </p> </div> <div class="verse" id="thig5.3:5.1"> <a href="https://suttacentral.net/thig5.3/en/sujato#thig5.3:5.1">Thig5.3:5.1</a> <p class="pali_verse_paragraph" lang="pi" translate="no"> Daḷhapāsaṁ karitvāna,<br/> rukkhasākhāya bandhiya;<br/> Pakkhipiṁ pāsaṁ gīvāyaṁ,<br/> atha cittaṁ vimucci me”ti. </p> <p class="translation_verse_paragraph" lang="en"> I made a strong noose<br/> and tied it to the branch of a tree.<br/> Casting it round my neck,<br/> my mind was freed. </p> </div> <div class="verse" id="thig5.3:6.1"> <a href="https://suttacentral.net/thig5.3/en/sujato#thig5.3:6.1">Thig5.3:6.1</a> <p class="pali_verse_paragraph" lang="pi" translate="no"> … Sīhā therī …. </p> </div>
html
<filename>api/gbID/LKA-ADM0-54457186/index.json {"boundaryID": "LKA-ADM0-54457186", "boundaryName": "<NAME>", "boundaryISO": "LKA", "boundaryYearRepresented": "2017.0", "boundaryType": "ADM0", "boundaryCanonical": "Unknown", "boundarySource-1": "OpenStreetMap", "boundarySource-2": "Wambacher", "boundaryLicense": "Open Data Commons Open Database License 1.0", "licenseDetail": "Open Data Commons Open Database License 1.0", "licenseSource": "www.openstreetmap.org/copyright", "boundarySourceURL": "wambachers-osm.website/boundaries/", "sourceDataUpdateDate": "Sep 25, 2020", "buildUpdateDate": "Aug 27, 2021", "Continent": "Asia", "UNSDG-region": "Central and Southern Asia", "UNSDG-subregion": "Southern Asia", "worldBankIncomeGroup": "Lower-middle-income Countries", "apiURL": "https://www.geoboundaries.org/api/gbID/LKA-ADM0-54457186", "admUnitCount": "1", "meanVertices": "13855.0", "minVertices": "13855", "maxVertices": "13855", "meanPerimeterLengthKM": "2293.529351967981", "minPerimeterLengthKM": "2293.529351967981", "maxPerimeterLengthKM": "2293.529351967981", "meanAreaSqKM": "66068.90316845848", "minAreaSqKM": "66068.90316845848", "maxAreaSqKM": "66068.90316845848", "downloadURL": "https://github.com/wmgeolab/geoBoundaries/raw/1e48b21f4e81630828c77ef7517cc0072e60aba7/releaseData/gbOpen/LKA/ADM0/geoBoundaries-LKA-ADM0-all.zip", "gjDownloadURL": "https://github.com/wmgeolab/geoBoundaries/raw/1e48b21f4e81630828c77ef7517cc0072e60aba7/releaseData/gbOpen/LKA/ADM0/geoBoundaries-LKA-ADM0.geojson", "tjDownloadURL": "https://github.com/wmgeolab/geoBoundaries/raw/1e48b21f4e81630828c77ef7517cc0072e60aba7/releaseData/gbOpen/LKA/ADM0/geoBoundaries-LKA-ADM0.topojson", "imagePreview": "https://github.com/wmgeolab/geoBoundaries/raw/1e48b21f4e81630828c77ef7517cc0072e60aba7/releaseData/gbOpen/LKA/ADM0/geoBoundaries-LKA-ADM0-PREVIEW.png", "simplifiedGeometryGeoJSON": "https://github.com/wmgeolab/geoBoundaries/raw/1e48b21f4e81630828c77ef7517cc0072e60aba7/releaseData/gbOpen/LKA/ADM0/geoBoundaries-LKA-ADM0_simplified.geojson", "gbAuthoritative": {"boundaryID": "LKA-ADM0-43222587", "boundaryName": "Sri Lanka", "boundaryISO": "LKA", "boundaryYearRepresented": "2005.0", "boundaryType": "ADM0", "boundaryCanonical": "Country", "boundarySource-1": "From SALB Data, United Nations", "boundarySource-2": "Survey Department of Sri Lanka", "boundaryLicense": "UN SALB Data License", "licenseDetail": "METADATA ERROR", "licenseSource": "METADATA ERROR", "boundarySourceURL": "www.unsalb.org/data/lka", "sourceDataUpdateDate": "Sep 16, 2021", "buildUpdateDate": "Oct 06, 2021", "Continent": "Asia", "UNSDG-region": "Central and Southern Asia", "UNSDG-subregion": "Southern Asia", "worldBankIncomeGroup": "Lower-middle-income Countries", "apiURL": "https://www.geoboundaries.org/api/gbID/LKA-ADM0-43222587", "admUnitCount": "1", "meanVertices": "38363.0", "minVertices": "38363", "maxVertices": "38363", "meanPerimeterLengthKM": "2432.938073692047", "minPerimeterLengthKM": "2432.938073692047", "maxPerimeterLengthKM": "2432.938073692047", "meanAreaSqKM": "66181.99201634289", "minAreaSqKM": "66181.99201634289", "maxAreaSqKM": "66181.99201634289", "downloadURL": "https://github.com/wmgeolab/geoBoundaries/raw/489136af190904c79243ea4b28ba2c7826d34bb1/releaseData/gbAuthoritative/LKA/ADM0/geoBoundaries-LKA-ADM0-all.zip", "gjDownloadURL": "https://github.com/wmgeolab/geoBoundaries/raw/489136af190904c79243ea4b28ba2c7826d34bb1/releaseData/gbAuthoritative/LKA/ADM0/geoBoundaries-LKA-ADM0.geojson", "tjDownloadURL": "https://github.com/wmgeolab/geoBoundaries/raw/489136af190904c79243ea4b28ba2c7826d34bb1/releaseData/gbAuthoritative/LKA/ADM0/geoBoundaries-LKA-ADM0.topojson", "imagePreview": "https://github.com/wmgeolab/geoBoundaries/raw/489136af190904c79243ea4b28ba2c7826d34bb1/releaseData/gbAuthoritative/LKA/ADM0/geoBoundaries-LKA-ADM0-PREVIEW.png", "simplifiedGeometryGeoJSON": "https://github.com/wmgeolab/geoBoundaries/raw/489136af190904c79243ea4b28ba2c7826d34bb1/releaseData/gbAuthoritative/LKA/ADM0/geoBoundaries-LKA-ADM0_simplified.geojson"}}
json
// Pattern borrowed from https://github.com/the-pudding/eu-regions/blob/master/src/js/entry.js import './styles/main.scss'; import { select } from 'd3'; import debounce from 'lodash.debounce'; import graphic from './graphic'; const $body = select('body'); let previous_width = 0; function resize() { const width = $body.node().offsetWidth; if (previous_width !== width) { previous_width = width; graphic.resize(); } } function init() { window.addEventListener('resize', debounce(resize, 150)); graphic.init(); } init();
javascript
{ "name": "key2union-example", "version": "1.0.0", "scripts": { "start": "node ../build/bin/index.js" }, "dependencies": { "commander": "link:../node_moddules/commander", "mkdirp": "link:../node_moddules/mkdirp", "typescript": "link:../node_moddules/typescript" }, "key2union": { "model": ["./model","./pages","./jsontest/jsontest.json","./jstest"], "outputDir": "./typings/", "emitModelKey": true, "unionType": "TKeys" } }
json
<reponame>Meluiscruz/Mis_notas_de_Golang package main import "fmt" func main() { baseRectangulo := 20 alturaRectangulo := 10 areaRectangulo := baseRectangulo * alturaRectangulo fmt.Println("El Area del Rectángulo es :", areaRectangulo) // Circulo : AreaCirculo = pi por radio al cudrado const PI float64 = 3.1416 // Constant var radioCirculo float64 = 10 areaCirculo := PI * radioCirculo * radioCirculo fmt.Println("El Area del Circulo es :", areaCirculo) // Trapecio var baseUno float64 = 6 var baseDos float64 = 15 var alturaTrapecio float64 = 25 areaTrapecio := ((baseUno + baseDos) * alturaTrapecio) / 2 fmt.Println("El Área del Trapecio es :", areaTrapecio) }
go
<reponame>liurongqing/phaser3-align-plugin<filename>package.json { "name": "phaser3-align-plugin", "version": "1.2.3", "main": "dist/index.js", "keywords": [ "phaser3", "phaser3-align-plugin" ], "types": "./types/IAlignPlugin.d.ts", "repository": "<EMAIL>:liurongqing/phaser3-align-plugin.git", "author": "liurongqing <<EMAIL>>", "license": "MIT", "devDependencies": { "typescript": "^4.0.2" } }
json
<gh_stars>1-10 # @essex/shellrunner
markdown
Ronda Rousey is arguably the toughest superstar in the women’s division. However, she was taken down by a 28-year-old superstar at a WWE live event not too long ago. Rousey hasn’t been seen since WrestleMania 39, where she teamed up with Shayna Baszler to win a Women's Showcase match. Fans expected the two superstars to get in the race for the WWE Women’s Tag Team Championship following their win. The two women were also part of the tag title scene in September 2022. During that time, Aliyah and Raquel Rodriguez held the gold for a short reign. In a WWE Live event on September 10, 2022, Aliyah and Raquel put their titles on the line against the teams of Ronda Rousey & Shayna Baszler and Xia Li & Shotzi. During the contest, 28-year-old Aliyah took down The Baddest Woman on the Planet with a Spear out of nowhere. It turned out to be a highlight of the match, and a video of the same was recently posted by a fan on Twitter. Many fans were thrilled to see Aliyah take down someone like Ronda with the finisher. While most appreciated the 28-year-old’s effort, others were critical of how she pulled off the move. Aliyah disappeared from television two days after the match. She and Raquel Rodriguez lost the WWE Women’s Tag Team Championship to Dakota Kai and IYO SKY on the September 12, 2022, episode of RAW. As of this writing, she hasn’t competed in a match in 213 days. Fans expected Ronda Rousey and Shayna Baszler to step up to Lita and Becky Lynch for the Women’s Tag Team Championship after WrestleMania 39. However, the two have been missing since their win at The Show of Shows. WWE allowed Liv Morgan and Raquel Rodriguez to dethrone the tag team champions. It now looks like either Ronda Rousey or Shayna Baszler is out with an injury. The Baddest Woman on the Planet had sustained an injury before Wrestlemania 39. She revealed that her elbow was dislocated: "Well, after thousands of dislocations [I thought not tapping out to armbars and tearing ligaments was cool in my teens] my elbow finally fractured simply by slapping the mat in Rockford, Illinois- right before Wrestlemania," Ronda Rousey said. Meanwhile, many fans think that The Queen of Spades may be the one out with an injury, which could be why they weren’t injected into the title scene. While there is no concrete reason for their absence, Liv and Raquel will constantly need to watch their backs for the two superstars’ returns. Do you want to see Aliyah return to get back in the title scene again? Share your thoughts in the comments section below.
english
A fatalafaataana lagasai aanabeꞌ a fataxapiak ina mu buuk taara xalie pana mu Lagasai Roxo. Na Jon a vubuk rao i taa ferawai pana malasuf ina maana mo xapiak aava na Yesus fo vile e fo kuusane. A lamonan sina, naak a malaan: layaan a rabuna ri taa texaas faroxo sena maana mo aanabeꞌ ri taa masam tuuna o na Yesus a Natuna Piran, a mataa ina fakaaxupan. A maana mo na Yesus fo vile ri fakalimaan a gutan ina vepen sina. A mu fefeng sina ri pife masam faroxo sena ferawaian sina e sena mu vilaana sina paamua, taasaxa lumui a Vovau Xaradak a famatavas faroxoi a lamonan siri e ri masam tuuna bak o na Yesus ve naseꞌ. Vulai na Jon fuuna lo lalamon faaxaves paaliu pana Piran aava vesan a maana mo xapiak taasaxa sivimaan xe la xavala e lam lana vipin ina mataa e a taagul la palou itaara mu rabuna. 1 Layaan a maana mo xapiak ri tangpat, na Ferawaian fo waan. Na Ferawaian a taagul xuvul pana Piran e narie, na Ferawaian e a Piran, re saxa. 2 Nane taxa waan xuvul pana Piran ti la tangpat. 3-4 Nane fasavat a maana mo xapiak e piau ta saxa mo aava fo savat, a savatmaan ti lana xasa salan, piau! Nane a fufuna toyan ina maana mo xapiak aava fo waan, nane sang mon. E a toyan sina ve a malang xana mu rabuna. 5 E a malang aave a lang lana bina suk taasaxa suk pife fexaxaas i taa xasliue. 6 A toxan a saxa mataa aava Piran a fenge, a isina na Jon. 7 Nane filimaan malaan sena xasa mataa ina kuus xakaavang. Nane maa kuusan fasavat a lagasai sena malang talo pana kuus xakaavangan sina, a maana rabuna ri taa namkai sena malang aave. 8 Nane xa pife malang aave taasaxa nane maa savat xena kuus xakaavang sena malang. 9 A malang tuuna naang aava famalang a maana rabuna xapiak, i taxa filimaan xena sangas xolai la xavala. 10 Pevoxo, nane savat la xavala taasaxa naapalaan nane fo vesan a xavala e maana mo xapiak, a maana rabuna ri pife taraxalie. 11 Nane fo savat xe sina maana rabuna sina, taasaxa ri pife fesuaiane. 12 Taasaxa saxano rabuna xo, ri fesuaiane e nari aava ri namkai sena isina, nane turoxoian nari, ri taa savat rafulak sina Piran, 13 a rafulak malaan seꞌ ri fo luxan taasaxa pife sena matatuuna o a vubuxanan sina mataa o sena tamaian, piau! A fufuna savatan siri ve a vubuxanan sina Piran. 14 Na Ferawaian xo, fesavat mataa e taagul la palou itaara e taara fo xalum a malangan sina, a malangan sina saxa fatak sina Piran, na Tamana. Nane a bas pana xakaavangan xatam e ferawaian tuuna. 15 A kuusan si Jon sena a malaan. Nane xukulai faagut, “Nabeꞌ ve, a mataa ne fo ferawai sena layaan ne kuus: ‘Nane aava savat lamiak, i taa xasliuau senaso nane fo waan paamuin nenia.” 16 Ti lana xakaavangan xatam sina, nane fo tavai netaara pana maana mo roxo; saxa mo roxo xuluna saxa mo roxo fulaa maan. 17 Na Moses a lisanmaan a vuputkai sina Piran taasaxa na Yesus Krais a lisan a xakaavangan xatam e ferawaian tuuna. 18 Piau ta mataa fo xalum a Piran taasaxa, a Saxa aava fuuna waan faasilak se Tamataara, nane ve a Piran e Lak Fatak Mon e fo waan la xasing ina. Nane fo faxalit a Piran xe sitaara. 19-20 Saxa yaan xo, a mu matalava sina mu Juda pe Jerusalem ri feng a saxanu priis e saxanu rabuna lana pabung si Livai xe si Jon rao ri taa fine, “Nano naseꞌ?” Ri vil malaane e na Jon a xuus nari malaan, “Nenia, ne pife Krais, a Mataa Failai.” Nane kuus famatavas e pife bit nari. 28 A maana vilaana aanabeꞌ a savat faasilak la bina Betani aava waan la xasing ina Raarum Jordan, layaan na Jon taxa fasuf a mu rabuna pave. 39 Nane sui nare, “Filimaan e me taa xalume.” E rutul paan e rutul fe savat la lifu aava nane mamatef lana e re waan xuvul pana la vung aave senaso a yaan ve faasilak 4 oklok la leaaf. 40 E saxa ire aava fo langai a kuusan si Jon e mui a usi na Yesus, isina na Endru, na ti Saimon Pita. 41 Nane fe tingin na tina, na Saimon, e xuus malaane, “Maame fo tingin a Mataa Failai, na Messia.”* Layaan no taa puk a isin Messia lana pok Griik i taa savat ‘na Krais.’ 42 E nane lisan ete xe si Yesus. Na Yesus a xalume e kuus, “Nano, no Saimon, a lak si Jon taasaxa ri taa xali nano pa Sifas.” (Layaan no taa puk a isin aanabeꞌ i taa fe savat ‘Pita’ e voxo taara xalie pa Saimon Pita)
english
Veteran Indian pacer Ishant Sharma praised the exceptional performances of Ravichandran Ashwin and Ravindra Jadeja in the first Test against the West Indies. Ishant Sharma highlighted that the West Indies team was bowled out in just one and a half sessions in the series opener in Dominica. Indian spinners picked up nine wickets to bowl out the opposition for 130 runs in their second innings. Ravichandran Ashwin impressed with a seven-wicket haul, while Ravindra Jadeja contributed two wickets. The visitors won the match by an innings and 141 runs to take a 1-0 lead in the series. During a discussion on JioCinema, Ishant Sharma pointed out that Ashwin and Jadeja will become unplayable for the opposition batters on turning tracks. “No one expected that a team could get out in one-and-a-half sessions but we all know Ravichandran (Ashwin) and Jaddu’s (Ravindra Jadeja) quality,” Ishant told Jio Cinema. “When they have picked up wickets on flat pitches where the ball doesn’t turn much, this wicket had a lot of turn and help for them and they showed why they are the best spinners in the world,” he added. Ishant Sharma highlighted that the Dukes ball doesn’t become soft, making it difficult for the batters to survive against spinners. “Absolutely, when we saw Rahkeem Cornwall and their left-arm spinner bowling, the way dust was flying from the wicket and this is not an Indian wicket, which is slow, and the ball doesn’t get soft here. It’s the Dukes ball, it remains hard. You get bounce along with turn here. So it becomes very difficult,” he continued. The 34-year-old described Ravichandran Ashwin as a great spinner and one of the best in the world. Ishant credited Ashwin’s success to his hard work and preparation in the nets. “Ashwin, no doubt, is a great spinner – one of the best in the world and is ranked No. 1 in Tests because of that. It is very difficult for a bowler to pick up 10 wickets, whether you are a spinner or a fast bowler, you need to bowl a lot of overs and you need to prepare for that in the nets. So he got the fruits of his effort,” he concluded. Ashwin ended the match with figures of 12/131. The 36-year-old picked up his eighth 10-wicket haul, equaling the record of Anil Kumble. He took 486 wickets in 93 matches in the longer format of the game.
english
<reponame>Oscaner/exam-questions { "Update": "2022-04-06 16:00:52", "answer": [ "A", "C", "F" ], "category": "sap", "choices": [ "A. Use Amazon EC2 instance profiles with an IAM role. A.使用具有IAM角色的Amazon EC2实例配置文件。", "B. Use AWS Secrets Manager to store access keys and secret access keys. B.使用AWS Secrets Manager来存储访问密钥和秘密访问密钥。", "C. Use AWS Systems Manager Parameter Store to store database credentials C.使用AWS Systems Manager参数存储来存储数据库凭证", "D. Use a secure fleet of Amazon EC2 bastion hosts for remote access. D.使用安全的Amazon EC2堡垒主机群进行远程访问。", "E. Use AWS KMS to store database credentials. E.使用AWS KMS存储数据库凭证。", "F. Use AWS Systems Manager Session Manager for remote access . F.使用AWS Systems Manager会话管理器进行远程访问。" ], "detail": "Q318.A company's AWS architecture currently uses access keys and secret access keys stored on each instance to access AWS services.Database credentials are hard-coded on each instance. SSH keys for command-line remote access are stored in a secured Amazon S3 bucket. The company has asked its solutions architect to improve the security posture of the architecture without adding operational complexity.Which combination of steps should the solutions architect take to accomplish this? (Select THREE )公司的AWS架构当前使用存储在每个实例上的访问密钥和秘密访问密钥来访问AWS服务.数据库凭证在每个实例上都进行了硬编码。 用于命令行远程访问的SSH密钥存储在安全的Amazon S3存储桶中。 该公司已要求其解决方案架构师在不增加操作复杂性的情况下改善架构的安全性。解决方案架构师应采取哪些步骤组合来完成此任务? (选择三个)", "explanation": [ "The correct answer(s): A, C, F" ], "id": 574, "saved_answer": null, "type": "Multiple Answer" }
json
SL vs AUS 1st T20: SL vs AUS Live Updates – Australia have won the toss and have opted to field: Sri Lanka will battle it out against Australia in a three-match T20 series starting on Tuesday (June 7). This series is pivotal for both teams as the matches will give a fair idea about the preparation for both teams ahead of the upcoming ICC T20 World Cup set to be held in Australia later in 2022. Check how viewers can watch Live Stream of Sri Lanka vs Australia in India. Follow SL vs AUS 1st T20 Live Updates with InsideSport.IN. Sri Lanka team are rebuilding and they have quite a new players in the squad. They have also added ‘baby Malinga’ Matheesha Pathirana to the squad. Meanwhile, Australia have gone with the experienced squad with the likes of Finch, Josh Hazlewood, Matthew Wade, and Steve Smith in it. How to watch SL vs AUS 1st T20 in India? Viewers can watch SL vs AUS T20 series on Sony Sports Network. The Live Streaming of the match will be available on the SonyLIV app. When will the 1st T20 between SL vs AUS take place? The 1st T20 between SL vs AUS will take place on Tuesday (June 7) What Time SL vs AUS 1st T20 take place? What is the venue of SL vs AUS 1st T20 match? Sri Lanka too have announced their Playing XI. Follow InsideSport on GOOGLE NEWS /Follow SL vs AUS Live Updates with InsideSport.IN.
english
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.core.template; import org.elasticsearch.xcontent.NamedXContentRegistry; import org.elasticsearch.xcontent.ParseField; import org.elasticsearch.xpack.core.ilm.DeleteAction; import org.elasticsearch.xpack.core.ilm.ForceMergeAction; import org.elasticsearch.xpack.core.ilm.LifecycleAction; import org.elasticsearch.xpack.core.ilm.LifecyclePolicy; import org.elasticsearch.xpack.core.ilm.LifecyclePolicyUtils; import org.elasticsearch.xpack.core.ilm.LifecycleType; import org.elasticsearch.xpack.core.ilm.RolloverAction; import org.elasticsearch.xpack.core.ilm.ShrinkAction; import org.elasticsearch.xpack.core.ilm.TimeseriesLifecycleType; import java.util.List; /** * Describes an index lifecycle policy to be loaded from a resource file for use with an {@link IndexTemplateRegistry}. */ public class LifecyclePolicyConfig { public static final NamedXContentRegistry DEFAULT_X_CONTENT_REGISTRY = new NamedXContentRegistry( List.of( new NamedXContentRegistry.Entry( LifecycleType.class, new ParseField(TimeseriesLifecycleType.TYPE), (p) -> TimeseriesLifecycleType.INSTANCE ), new NamedXContentRegistry.Entry(LifecycleAction.class, new ParseField(RolloverAction.NAME), RolloverAction::parse), new NamedXContentRegistry.Entry(LifecycleAction.class, new ParseField(ForceMergeAction.NAME), ForceMergeAction::parse), new NamedXContentRegistry.Entry(LifecycleAction.class, new ParseField(ShrinkAction.NAME), ShrinkAction::parse), new NamedXContentRegistry.Entry(LifecycleAction.class, new ParseField(DeleteAction.NAME), DeleteAction::parse) ) ); private final String policyName; private final String fileName; /** * Describes a lifecycle policy definition to be loaded from a resource file. * * @param policyName The name that will be used for the policy. * @param fileName The filename the policy definition should be loaded from. Literal, should include leading {@literal /} and * extension if necessary. */ public LifecyclePolicyConfig(String policyName, String fileName) { this.policyName = policyName; this.fileName = fileName; } public String getPolicyName() { return policyName; } public String getFileName() { return fileName; } public LifecyclePolicy load(NamedXContentRegistry xContentRegistry) { return LifecyclePolicyUtils.loadPolicy(policyName, fileName, xContentRegistry); } }
java
{ "author": { "id": "t2_8upremvg", "name": "EnchantedMaps" }, "date": { "day": 1610064000, "full": 1610121710, "month": 1609459200, "week": 1609632000 }, "id": "t3_kt5c9c", "misc": { "postHint": "image" }, "picture": { "filesize": 67126, "fullUrl": "https://preview.redd.it/nyafcuizs4a61.jpg?auto=webp&s=0f4f960fec2748d3a92a5fa18ff5d3eb7e36e580", "hash": "38120d3208", "height": 505, "lqip": "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAANABADASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAAAwUH/8QAIhAAAgEDBAIDAAAAAAAAAAAAAQQCAAMhBRESEwYxQWFx/8QAFQEBAQAAAAAAAAAAAAAAAAAAAwT/xAAaEQACAwEBAAAAAAAAAAAAAAABAgASIRET/9oADAMBAAIRAxEAPwDJfDNHuPvrCwT2yvC3EcNwJYz9+6jaygyo0zNkxEe6UNhiQPvNIu01pDUbqd+ULts84kYAP5RstXnSZMT5SzI7j5J3NThWD27kUunnUDZ//9k=", "thumbnailUrl": "https://b.thumbs.redditmedia.com/V5frl87SgdyKQ51hQQLrD1vP9RH-50qOgYrL40HIJ6Y.jpg", "url": "https://preview.redd.it/nyafcuizs4a61.jpg?width=640&crop=smart&auto=webp&s=db6dc373825c8a65d9ba50e7a2fd6360861ed40f", "width": 640 }, "score": { "comments": 0, "downs": 0, "isCurated": false, "ratio": 0.88, "ups": 11, "value": 11 }, "subreddit": { "id": "t5_3isai", "name": "dndmaps" }, "tags": ["Building"], "title": "Mansion of Dumar", "url": "https://www.reddit.com/r/dndmaps/comments/kt5c9c/mansion_of_dumar_38x30/" }
json
/** * Variables */ /** * Breakpoints */ /** * Margin */ /** * Padding */ /** * Line-Height */ .sidebar { position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -ms-flex-pack: distribute; justify-content: space-around; background-color: #001D40; padding: 16px 24px; } .sidebar__inner-title { color: #f3f3ff; font-size: 32px; line-height: 1.625; margin-top: 26px; } .sidebar__inner-title::before { content: ''; display: block; margin-bottom: 24px; height: 8px; background-color: #f3f3ff; width: 64px; } .sidebar__inner-title:hover { color: #f3f3ff; } .sidebar__inner-subtitle { font-family: "Roboto Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 14px; color: #bccbde; line-height: 1.625; line-height: 31.2px; } .sidebar__footer-follow { color: #f3f3ff; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } .sidebar__footer-follow a { font-size: 18px; display: -ms-inline-grid; display: inline-grid; grid-auto-flow: column; grid-gap: 8px; padding: 8px 16px 8px 0; margin-right: 16px; border-radius: 8px; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } .sidebar__footer-follow a:hover { padding: 8px 16px; color: #f3f3ff; background-color: #203c5f; } .sidebar__footer-follow a:hover p { display: inline; font-size: 14px; opacity: 1; } .sidebar__footer-follow a p { display: none; opacity: 0; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; margin-bottom: 0px; margin-top: 0px; } .sidebar__footer-report { font-size: 14px; padding: 8px 16px 8px 0; margin: 8px 0; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; border-radius: 8px; cursor: pointer; display: -ms-inline-grid; display: inline-grid; grid-auto-flow: column; grid-gap: 8px; } .sidebar__footer-report:hover { padding: 8px 16px; color: #f3f3ff; background-color: #203c5f; } .sidebar__footer-credit { font-size: 12px; } .sidebar__footer-credit a { -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; border-radius: 8px; } .sidebar__footer-credit:hover a { padding: 8px; color: #f3f3ff; background-color: #203c5f; } @media screen and (min-width: 800px) { .sidebar { position: fixed; height: 100vh; width: 22vw; left: 0; } } /*# sourceMappingURL=Sidebar.module.css.map */
css
<filename>src/main/resources/assets/conquest/models/block/small_old_leather_stool.json<gh_stars>0 { "parent": "block/daylight_detector", "textures": { "top": "conquest:block/4_furniture/3_wood/old_leather_stool_top", "side": "conquest:block/4_furniture/3_wood/old_leather_stool" } }
json
<reponame>qihuiqiang2008/wxclient<filename>page/component/my/index.js<gh_stars>0 var app = getApp(); Page({ data: { info: {} }, onLoad: function (options) { // 页面初始化 options为页面跳转所带来的参数 // 获取用户信息 // this.init(); }, onReady: function () { // 页面渲染完成 }, onShow: function () { // 页面显示 }, onHide: function () { // 页面隐藏 }, onUnload: function () { // 页面关闭 }, /** * 获取用户关注论坛列表 */ /* init: function () { let that = this; app.getInit(function (result) { var tmpFile = result.obj.tmpFile; var minisns = result.obj._Minisns; var user = result.obj._LookUser; var verifyModel = util.primaryLoginArgs(user.unionid); that.setData({ user: user, minisns: minisns, info: { articleCount: user.ArticleCount } }) }) }, */ /** * 积分列表 */ integralLog: function () { wx.navigateTo({ url: '/pages/score/score', complete: function () { console.log("跳转到积分列表") } }) }, /** * 我的发帖 */ myArticleList: function () { let that = this; wx.navigateTo({ url: '/pages/mypost/mypost?uid=' + that.data.user.Id, complete: function () { console.log("跳转到我的发帖"); } }) } })
javascript
More than 3,500 students from various undergraduate colleges across Mysuru took part in the day-long workshop on UPSC examinations organised by District Administration at Kalamandira this morning. The programme, organised for the first time by District Administration, was inaugurated by Deputy Commissioner D. Randeep by lighting the traditional lamp. Later, addressing the gathering, he said that the students, who were present, were to be treated as aspirants of UPSC examinations and added that Superintendent of Police Ravi D. Channannavar, and himself were blessed to be serving the people as IAS and IPS officers. “It is because of the right guidance, blessings from our parents and efforts that we have been able to sit in responsible positions today. 10 years back, even I as a student used to listen to a lot of lectures by resource persons on UPSC examinations. One has to have dedication and patience to crack the examination which is considered to be one of the toughest in the world”, he added. Stating that no influence or money power would help the aspirants to become IPS, IAS or other officers, DC Randeep urged the students to remove such notions from their minds and start preparing for UPSC examination. Citing his own example, he said that students have to be mentally strong and focused as sometimes it might take two or three attempts to clear the UPSC examination. “It is also important for one to have role models and cultivate the habit of reading newspapers and books, solving old question papers which would help in their preparations,” said DC Randeep. Mysuru SP Ravi D. Channannavar, in his introductory remarks, said that similar events will be held once in every three months. Mysuru City Police Commissioner Dr. A. Subramanyeshwara Rao is scheduled to deliver the valedictory address this evening. The day-long workshop witnessed Probationary IAS Officer P. Lakshmi delivering a lecture on UPSC Mains Patterns; Assistant SP M. S. Mohammed Sujitha on ‘How to write the exam’, Probationary IPS Officer Arunamshugiri on ‘Prelims’; Darukesh of Education Department on ‘Skill of Memory’, Assistant SP Harish Pandey on ‘How to choose subjects for mains’. Later, it was followed up by a motivational speech by SP Ravi D. Channannavar. The District Administration had to arrange for extra chairs and projectors as the number of the students, who arrived at venue, were more than expected. It has also arranged for lunch for them. For those who were unable to attend the workshop the information regarding the same will be made available on the District Administration website. A special interactive blog will also be created to answer the queries from the aspirants.
english
'Baahubali-The Conclusion' may have become a much bigger hit than 'Baahubali-The Beginning' in China, but its absolute performance is still not a great news. Considering that the magnum opus is India's pride, it would have been a dream-come-true had the fantasy drama done better than some Indian blockbusters in recent times. So far, the Rajamouli-Prabhas-Rana Daggubati movie has made USD 7. 63 million in China. In rupee terms, it's Rs. 51. 20 crores. On Sunday, it collected USD 2. 26 million after making USD 2. 43 million and USD 2. 94 million on Friday and Saturday, respectively. "The performance is underwhelming in China. The opening weekend numbers are not in sync with the merits of this trendsetter," says trade analyst Taran Adarsh. As per him, 'Avengers Infinity War' is billed to give 'Baahubali-2' a run for its money from May 11 (when the Hollywood blockbuster releases there). Follow us on Google News and stay updated with the latest!
english
package com.androidplot.xy; import com.androidplot.Region; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class StepModelFitTest { Region regionSmall = new Region(0,11); Region regionBig = new Region(-111,420); Region regionZero = new Region(0, 0); Region regionUndef = new Region(0, null); double[] stpSmall = {1,2,5}, stpBig = {1,10,100}, nonsense = {0}; @Before public void setUp() throws Exception { } @After public void tearDown() throws Exception { } @Test public void getValue() throws Exception { StepModelFit model = new StepModelFit(regionSmall,stpSmall,3); assertEquals(5.0, model.getValue(), 0.0); model.setValue(5.0); assertEquals(2.0, model.getValue(), 0.0); model.setValue(7.0); assertEquals(2.0, model.getValue(), 0.0); model.setSteps(stpBig); assertEquals(1.0, model.getValue(), 0.0); model.setScale(regionBig); assertEquals(100.0, model.getValue(), 0.0); model.setValue(1000.0); assertEquals(1.0, model.getValue(), 0.0); // bad parameters model.setSteps(nonsense); assertArrayEquals(stpBig,model.getSteps(), 0.0); model.setScale(regionZero); assertEquals(stpBig[0], model.getValue(), 0.0); model.setScale(regionUndef); model.setValue(1.1); assertEquals(1.1, model.getValue(), 0.0); } }
java
Bhubaneswar: Pana Sankranti, also known as Maha Vishuba Sankranti, is the traditional new year day festival of Hindus in Odisha. The day is named after ‘Pana’ the main drink prepared on this occasion. People mark the advent of the New Year by drinking ‘pana’ made with ‘bela’ (wood apple) and sugar. The drink doesn’t only represent Odisha’s unique traditions but also bears significant scientific benefits. 1: Firstly, the drink made of the pulp of the wood apple or Bela is extremely healthy and helps to keep the body cool during the scorching summer. 2: Another health benefit of ‘Pana’ is that it is highly nutritious. It contains nutrients like vitamins, and organic compounds, including their tannins, calcium, phosphorous, fiber, protein, and iron. 3: It helps in blood purification and the removal of toxins that can cause extensive damage to the body. It also reduces the strain on kidneys and keeps them healthy. 4: As a good source of beta-carotene, wood apples also cure liver problems. They contain thiamine and riboflavin, both of which are known as liver health boosters, this fruit also functions as an ingredient in cardiac tonics. 5: It’s a natural energy booster. A hundred grams of Bela fruit pulp provides 140 calories which boost organ activity and metabolic speed.
english
import matplotlib.pyplot as plt import numpy as np import pandas as pd import sklearn.linear_model oecd = pd.read_csv(r'/Users/pariszhang/Desktop/Data/oecd/OECDBLI2017cleanedcsv.csv') life_satisfaction = oecd['Life satisfaction as avg score'] personal_earnings = oecd['Personal earnings in usd'] d = {'Life Satisfaction': oecd['Life satisfaction as avg score'], 'Personal Earnings': oecd['Personal earnings in usd']} stats = pd.DataFrame(data=d) x = np.array(stats['Life Satisfaction']) y = np.array(stats['Personal Earnings']) model = sklearn.linear_model.LinearRegression() model.fit(x.reshape(-1, 1), y) x_new = [[10]] print(model.predict(x_new))
python
This week’s installment of the GeekDad gift guide covers science gifts as well as green gifts. Please leave a comment if we missed any, and don’t hesitate to click on the graphic above to see more gift suggestions. Mythbusters Science Kits Everyone’s favorite faux scientists, the Mythbusters have been explaining things forever on their awesome show. Now they’ve come out with a small assortment of science experiment kits. Here’s two: MythBusters Weird World of Water and MythBusters Forces of Flight. Living Green: The Missing Manual* Your guide for living green. Packed with suggestions and resources for living as benignly as possible. How to green your lifestyle, explore alternative power sources, and ethically source your next home improvement project. It even covers such radical notions as zero-consumption living. Buy it on Amazon. Green Toys Made from mostly recycled plastic milk containers, Green Toys makes pleasantly colored toys for kids for kids like trucks, tea sets, sand toys, a tool set and more. The sets designed for food play are dishwasher safe and FDA approved for food contact. Buy them at Amazon. LifeGear 6-in-1 Flashlight* Power grid down? Don’t fret when you’re packing this 6-in-1 crank flashlight. It features a flashlight, emergency flashers, FM radio, cell phone charger, and emergency siren, making it perfect for your next society-crippling disaster. Can also be powered by regular AAAs or DC12 in. Buy it on Amazon. Uberstix Uberstix is a fun building set that can also link up with other major build systems as well as recyclable materials such as straws, popsicle sticks and paper cups. The company makes a wide variety of building sets from skyscrapers to pirate ships. Once you’re done building a set according to plan, use your imagination and design your own creation! Buy it at Amazon. Anamalz From the conventional cow and horse to the more unusual emu and reindeer, Anamalz Environmentally Friendly Animals are posable figures made out of wood and other materials for kids aged three and up. The toys are made from maple wood from sustainable forests. Each figure is handmade using waterbased paint. The fabrics are even formaldehyde free and the packages are made from recycled paper. But most of all, they are very cute. Buy them at Amazon. Vers Audio Bamboo iPod Dock Bamboo has a reputation for being a green material (it’s renewable, grows quickly and pretty much anything is better than plastic). Vers, the maker of cool natural wood iPod cases, also offers the Vers 2X iPod Sound System. Hand finished bamboo makes a green statement while filling your room with 30W of premium sound. The $169 price tag includes a 14 function remote. SolChat Solar Powered iPhone Speakerphone When driving, handsfree talking is the way to go with your iPhone, regardless of whether it’s the law where you live. The <> lets you be doubly-virtuous with fully hands free operation combined with a solar recharger; voice dialing makes it especially appropriate for the iPhone 3GS. Scosche says the solChat’s lithium ion battery is good for 10 hours of talk time. Car charger and USB cable is also included in case your auto conversations exceed the sun’s output that day. Buy it on Amazon. QX-5 USB Microscope 200x microscope with a twist... the images of amoeba and hangnails you stare at can be saved to your computer. Imagine the killer science reports! Also records 640×480 VGA video. Mac compatible but you need to buy the software separately. Buy it on Amazon. Soopsori Wood Toys These wood toys are 100% recyclable made using natural wood without paint or bolts. Soopsori has chosen 20 types of wood to create the color differences in the toys. There are no sharp edges, and the wood is finished with linseed oil. The packages are recyclable, and all sawdust generated by the company is also recycled. Toys are available for kids of all ages, including infants. Buy a few of them at Amazon, or visit their website for more locations. This Little Piggy’s Playhouse We reviewed the original This Little Piggy’s Playhouse for the holiday season last year, and they’re still going strong. The all-cardboard playhouse, made in the USA from 100% recyclable materials, is still a great gift for your little ones to begin testing their art skills. This year, they’ve added some premium selections in they way of hand-painted versions making them ready for play right away. The blanks TLPP is available for $49 in cardboard brown or white, and the hand-painted models II and III run $199. All can be found at This Little Piggy’s Playhouse. Thames & Kosmos C3000 Chemistry Set Chemistry sets have suffered a great deal of quality slippage lately, with litigation-fearful companies offering laughable experiments like making slime, basically amounting to magic tricks that don’t teach any science. But there’s still hope: the C3000 chemistry set packs 387 experiments covering 32 topics, leaving out only a couple of notable chemicals such as are used in meth labs and so on — chemicals that are easily sourced by other means. This set is definitely not watered down. Buy it on Amazon. The Illustrated Guide to Home Chemistry Experiments* And to go with your awesome new chemistry set, this excellent book. Author Robert Bruce Thompson seems to be singlehandedly trying to stave off the decline of hobby chemistry. This book helps you assemble your own laboratory if you don’t simply want to buy everything in a kit. It follows up with chapter after chapter of sensible, intelligent and challenging experiments. One surprisingly important thing this book teaches is how to follow proper scientific journal keeping procedures to record your experiments. Buy it on Amazon. Bedol Water Clock* Cute little alarm clock, similar to many others except for one thing — it doesn’t use batteries, any batteries. Instead, it runs off regular tap water. Just make sure to fill it up periodically, because it doesn’t even have a button cell to retain your settings. Buy it from Bedol. Sneaky Green Uses for Everyday Things Sneaky Green Uses for Everyday Things, part of a series by Cy Tymony, includes instructions on lots of interesting projects kids and adults can do together, using easy-to-find materials, to save energy. The book serves as a useful guide to everyday conservation while also providing a fair bit of fun. Buy it on Amazon. Celestron FirstScope Telescope Celestron introduced this product in honor of 2009, the International Year of Astronomy. It’s a decent first telescope at a reasonable price. 76mm aperture rather than the typical 60mm; comes with two respectable eyepieces. Very compact, the FirstScope stores well and fits on a bookshelf. Buy it on Amazon. Beka Blocks Nice block set made by a small company in Saint Paul, Minn. This particular set has 68 pieces. They don’t use sweatshop labor to make their toys so of course they cost a little more. Beka also does awesome kid looms and easels. Buy them on Amazon. Suunto MB-6 Matchbox Compass While a variety of technological innovations have reduced the value of a compass, nevertheless there remain many reasons for having one — they store indefinitely without needing batteries, and are easy to learn how to operate. If you go the compass route, you can do a lot worse than this one: Swiss-made from a design intended for World War II-era officers, and comes in a “matchbox” cover keeping the unit safe in your pack or pocket. Buy it on Amazon. Snap Circuits PRO SC-500 Kids’ electronics learning set. Build over 500 projects using over 75 snap-together components. Lots of flashy projects to keep kids paying attention. An easy way to spark a kid’s interest in the hobby of electronics. Buy it on Amazon. Desktop Carnivorous Plant Set Plant seeds for more than 10 varieties of carnivorous plant, and watch the magic. Grow them to protect your cubicle from pesky insects or simply for the cool factor. Also comes with ‘swamp rocks’ and ‘bog buddies’. Buy it on ThinkGeek.com. Thames and Kosmos Power House This model of an earth-friendly house features a solar array, green house, solar oven, air conditioner, a wind power generator and more, giving kids 30 experiments and 10 building projects. Buy it on Amazon. *Indicates the reviewer who wrote that gift suggestion has received a free sample of the item described.
english
.gg-music, .gg-music::after, .gg-music::before { display: block; box-sizing: border-box; border: 2px solid } .gg-music { border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom: 0; margin-top: -4px; position: relative; transform: skewY(-15deg) scale(var(--ggs,1)); width: 14px; height: 16px } .gg-music::after, .gg-music::before { content: ""; position: absolute; width: 7px; height: 7px; top: 9px; left: -7px; transform: skewY(15deg); border-radius: 10px } .gg-music::after { left: 5px }
css
<gh_stars>0 { "name": "cli-setup", "version": "1.0.0", "description": "GitHub Action to setup the Raito CLI.", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/raito-io/cli-setup.git" }, "keywords": [], "author": "", "license": "Apache2", "bugs": { "url": "https://github.com/raito-io/cli-setup/issues" }, "homepage": "https://github.com/raito-io/cli-setup#readme", "dependencies": { "@actions/core": "^1.6.0", "@actions/github": "^5.0.0", "@actions/tool-cache": "^1.7.1", "@octokit/rest": "^18.12.0" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.15.0", "@typescript-eslint/parser": "^5.15.0", "eslint": "^8.11.0", "eslint-config-google": "^0.14.0" } }
json
<gh_stars>1-10 # Global parameter examples_root = None process_type_name_ns_to_clean = None synopsis_maxlen_function = 120 synopsis_class_list = None
python
There’s no doubt that life has its ups and downs. For every touchdown in the 4th quarter, there’s a field goal attempt that gets blocked. For every couple who makes it last forever, there’s another breaking up with heartache and tears. For every test you completely ace, there’s another that you nearly bomb. The truth is we will all experience good times and bad times we can’t change. The only thing we really can control is our response to those circumstances. God calls us to respond to our circumstances with things like prayer, worship, and joy. So this week, whatever the occasion—in good times or bad—commit to asking God for His help in responding well. When you go to Him with all the things you’re dealing with, have confidence that He will not only help you, but He’ll give you what you need to respond.
english
The Portland Trailblazers wasted an incredible Damian Lillard season. This year Dame averaged 32.2 points, 4.8 rebounds, and 7.3 assists for the season. He had the third-highest scoring average for the season, only trailing Joel Embiid and Luka Doncic. Despite the season Lillard had, the Blazers finished the season 13th in the West with a 33-49 record. Last offseason, the Blazers made Lillard a huge offer, giving him a 2-year, $121 Million extension. They agreed to get him help, giving Anfernee Simons an extension, trading for Jeremi Grant, and getting Shaedon Sharpe in the NBA Draft. With the way the season ended, the Blazers are currently set to receive the 5th pick in the 2023 Draft, before the lottery changes things. When asked about signing a young talent who needs development, Lillard said, Tonight, Lillard doubled down on his statement. Damian Lillard was drafted by the Blazers in 2012. He’s spent 11 seasons with the team, and been with them through thick and thin. In a generation where stars leave and team up with others to get the best chance to win, Lillard never even thought about leaving. Loyalty has been his strong suit. However, I guess Dame is running out of patience. On the verge of turning 33, Dame talked to Stephen A Smith during the Play-In Game between the Bulls and Raptors. He talked about making a competitive team in Portland. Dame said, Can the Blazers get a star next to Lillard? This summer’s free agency has a few big names. From guards like James Harden, Kyrie Irving, and Russell Westbrook, to bigs like Nikola Vucevic, Kristaps Porzingis, to Draymond Green. Now it depends on the Blazers whether they want to go the trade route or they want to test who they can net in the open market. Either way, if things don’t get better next season, we may finally hear something a lot of Dame fans have wanted for a long time.
english
A Japanese company, Daihatsu, which designs small cars, has revealed new plans to allow customers to design their own set of wheels. The company has been developing two-seater cars, Daihatsu Copen, which comes in 15 "effect skin" variations. However, designing 3D print based cars would be a new challenge for the company. The service is currently in the testing phase, but the company plans to roll out its new attempt by 2017, a report by The Economist has claimed. All you need to do is to go to a 3D print car manufacturer and show them a picture of the car of your dreams. The designer will ‘break’ the design into various parts and these will produced by the 3D printers. All the parts will be of special plastic fibres and will be sent to the assembly line, which is where the (externally bought) metal parts of the car will be attached to them. Watch this video for an illustration of how your car would be designed: The technology itself is not new to the tech world as an American designer designed a similar '3D print' car in the year 2015. Car designers and manufacturers world-wide, however, are likely to keep a close watch on the Japanese launch. The 3D print technology will accomplish the various initial steps of car designing, including the traditional machine-assisted putting together of parts in a defined way. Not only would this tech result in cheaper cars, but also allow customers to pick and choose their car parts. Also, if the car is damaged the repairing cost would be minimum. The 3D printing technology has been well tested and accepted in the airline industry and is already being used for fitting and manufacturing the body and cabin parts. 'Starti', the first ever 3D printed car, in 2014, took around 44 hours to manufacture. The car was built during the International Manufacturing Technology Show in Chicago, Illinois. 'Starti' was not just a car that saved on the manufacturing cost but also saved fuel charges as it was claimed to be the first 3D printed car ever to run on electricity. On a fully-charged battery, 'Starti' was said to be able to cover a distance of 190 km at a top speed of 60kmph.
english
<gh_stars>0 body { background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/123941/bg-sky.png); background-repeat: repeat !important; background-attachment: fixed; } .outerdiv { margin-top: 60px; } #mul{ border:1px solid black; } .search-bar { width: 100%; max-width: 500px; margin: 5px 0px 5px 5px ; } .userdata{ width: 100%; height: 100px; border-top: 1px solid black; } .adduser{ width: 100px; height: 50px; margin: 20px 0px 0px 45%; } @media (max-width: 850px) { .related-results { display: none; } }
css
package com.desertkun.brainout.bot.freeplay; import com.desertkun.brainout.bot.Task; import com.desertkun.brainout.bot.TaskStack; public class DelayTask extends Task { private float delayFor; public DelayTask(TaskStack stack, float delayFor) { super(stack); this.delayFor = delayFor; } @Override protected void update(float dt) { delayFor -= dt; if (delayFor < 0) { pop(); } } }
java
{ "quarry": { "index": 0, "isReplica": false, "mergePool": "DEiHgviqQNZgLo6vdGbtqWZiyPQDGZXhW2hJE5twuTbf", "primaryQuarries": [], "primaryToken": { "decimals": 6, "mint": "qQVwMtSTichoo1DEWSr8PR1i9viL5KVBLzEPuTwyYRd" }, "primaryTokenInfo": { "address": "qQVwMtSTichoo1DEWSr8PR1i9viL5KVBLzEPuTwyYRd", "chainId": 103, "decimals": 6, "name": "Token qQVw", "symbol": "qQVwM" }, "quarry": "<KEY>", "replicaMint": "<KEY>", "replicaQuarries": [], "slug": "qqvwm", "stakedToken": { "decimals": 6, "mint": "qQVwMtSTichoo1DEWSr8PR1i9viL5KVBLzEPuTwyYRd" } }, "rewarder": { "authority": "AD<KEY>", "mintWrapper": "<KEY>", "rewardsToken": { "decimals": 6, "mint": "<KEY>" }, "rewardsTokenInfo": { "address": "<KEY>", "chainId": 103, "decimals": 6, "name": "Token BMsy", "symbol": "BMsyn" }, "slug": "8yvJnBxPiYjxT6tebZQH1dTkW5ZqoZ2ZUMwA8UiMZPwf" }, "rewardsToken": { "address": "<KEY>", "chainId": 103, "decimals": 6, "name": "Token BMsy", "symbol": "BMsyn" }, "stakedToken": { "address": "qQVwMtSTichoo1DEWSr8PR1i9viL5KVBLzEPuTwyYRd", "chainId": 103, "decimals": 6, "name": "Token qQVw", "symbol": "qQVwM" }, "underlyingTokens": [] }
json
<filename>node_modules/bootstrap-vue/src/components/breadcrumb/breadcrumb-link.js import { Vue, mergeData } from '../../vue' import { NAME_BREADCRUMB_LINK } from '../../constants/components' import { PROP_TYPE_STRING } from '../../constants/props' import { htmlOrText } from '../../utils/html' import { omit, sortKeys } from '../../utils/object' import { makeProp, makePropsConfigurable, pluckProps } from '../../utils/props' import { BLink, props as BLinkProps } from '../link/link' // --- Props --- export const props = makePropsConfigurable( sortKeys({ ...omit(BLinkProps, ['event', 'routerTag']), ariaCurrent: makeProp(PROP_TYPE_STRING, 'location'), html: makeProp(PROP_TYPE_STRING), text: makeProp(PROP_TYPE_STRING) }), NAME_BREADCRUMB_LINK ) // --- Main component --- // @vue/component export const BBreadcrumbLink = /*#__PURE__*/ Vue.extend({ name: NAME_BREADCRUMB_LINK, functional: true, props, render(h, { props: suppliedProps, data, children }) { const { active } = suppliedProps const tag = active ? 'span' : BLink const componentData = { attrs: { 'aria-current': active ? suppliedProps.ariaCurrent : null }, props: pluckProps(props, suppliedProps) } if (!children) { componentData.domProps = htmlOrText(suppliedProps.html, suppliedProps.text) } return h(tag, mergeData(data, componentData), children) } })
javascript
{% extends 'accounts/dashboard.html' %} {% load staticfiles %} {% block title %} {{ block.super }} - Novo endereço {% endblock %} {% load crispy_forms_tags %} {% block dashboard %} <style>.asteriskField {display: none;}</style> <div class="col-sm-8"> <div class="card"> <div class="card w-85"> <div class="card-body"> <h5 class="card-title">Novo endereço</h5> <div class="body"> <form method="POST" action="{% url 'accounts:new-address' %}" class="form-signin"> {% csrf_token %} {{ form|crispy }} <button class="btn btn-lg btn-primary btn-block" type="submit">SALVAR</button> </form> </div> </div> </div> </div> <br/> </div> {% endblock dashboard %}
html