text
stringclasses
16 values
meta
dict
score
float64
0
0.9
span_scores
list
Check out our new site Makeup Addiction add your own caption add your own caption add your own caption add your own caption add your own caption add your own caption add your own caption add your own caption add your own caption add your own caption add your own caption FUCK IT I'm drinking and playing video games.
{ "pile_set_name": "OpenWebText2" }
0.90111
[ { "begin": 0, "end": 40, "score": 0.14182632 }, { "begin": 40, "end": 62, "score": 0.09016511 }, { "begin": 62, "end": 84, "score": 0.09016511 }, { "begin": 84, "end": 106, "score": 0.09016511 }, { "begin": 106, "end": 128, "score": 0.09016511 }, { "begin": 128, "end": 150, "score": 0.09016511 }, { "begin": 150, "end": 172, "score": 0.09016511 }, { "begin": 172, "end": 194, "score": 0.09016511 }, { "begin": 194, "end": 216, "score": 0.09016511 }, { "begin": 216, "end": 328, "score": 0.91885155 } ]
0.000000 1.066667 2.866667 4.133333 5.533333 6.800000 7.533333 9.000000 10.200000 11.533333 12.800000 14.133333 15.400000
{ "pile_set_name": "Github" }
0.768198
[ { "begin": 0, "end": 9, "score": 0.078154646 }, { "begin": 9, "end": 18, "score": 0.10647484 }, { "begin": 18, "end": 27, "score": 0.14828162 }, { "begin": 27, "end": 36, "score": 0.050079152 }, { "begin": 36, "end": 45, "score": 0.059155475 }, { "begin": 45, "end": 54, "score": 0.033983137 }, { "begin": 54, "end": 63, "score": 0.04086265 }, { "begin": 63, "end": 72, "score": 0.04991998 }, { "begin": 72, "end": 82, "score": 0.046554957 }, { "begin": 82, "end": 122, "score": 0.08106001 } ]
Incidence of sudden athletic deaths between 1985 and 1990 in Marion County, Indiana. Relatively little information is available concerning the incidence of sudden death in athletes in the United States. The present study provides annual incidence rates of sudden athletic deaths in Marion County, Indiana, home of Indianapolis, the "amateur sports capital of the world." The overall incidence was 0.04% (18 athletic deaths in 44,481 forensic necropsies). This incidence varied slightly over the 6-year study period: 1985 (0.06%), 1986 (0.03%), 1987 (0.04%), 1988 (0.09%), 1989 (0%), 1990 (0.01%). Of the 18 sudden athletic deaths, 88% were cardiac in origin. A retrospective analysis of preparticipation screening efforts suggests that most of the cardiac conditions responsible for death could have been detected.
{ "pile_set_name": "PubMed Abstracts" }
0.078285
[ { "begin": 0, "end": 85, "score": 0.0133088045 }, { "begin": 85, "end": 203, "score": 0.069022745 }, { "begin": 203, "end": 371, "score": 0.0018750377 }, { "begin": 371, "end": 455, "score": 0.060468286 }, { "begin": 455, "end": 597, "score": 0.024226902 }, { "begin": 597, "end": 659, "score": 0.060327347 }, { "begin": 659, "end": 814, "score": 0.007973304 } ]
Haemodynamic steady state via combined infusion of dobutamine and dopamine in the pretransplant phase. The course of a critically ill patient suffering endstage dilated cardiomyopathy is reported focusing on the use of inotropic support. A steady state haemodynamic condition was achieved using continuous low-dose infusion of dobutamine in combination with dopamine for several days. Thus as a candidate for heart transplantation he was made transportable to a foreign country.
{ "pile_set_name": "PubMed Abstracts" }
0.12869
[ { "begin": 0, "end": 103, "score": 0.01947089 }, { "begin": 103, "end": 238, "score": 0.15050629 }, { "begin": 238, "end": 385, "score": 0.07861894 }, { "begin": 385, "end": 478, "score": 0.056079097 } ]
Kim Gordon, Thurston Moore to Divorce (Yawn) Now that a whole weekend has elapsed, this is probably old news already. With gossip moving at the speed of broadband these days, we’re probably not the first to tell you that Kim Gordon and Thurston Moore are getting a divorce. Then again, perhaps you haven’t heard. They decided to break the news as quietly as possible with the old sneak out a press release to one magazine at 7 pm on a Friday night tactic for dropping a newsbomb. It’s a good strategy, often used in Washington for releasing something that will be politically damaging. You slip that news out there Friday evening when people are at happy hour and ready to get on with their weekend plans and generally keeping their computers off and their phones in their pockets, and then by Monday when everybody plugs in again it’s already old news and something else is about to happen somewhere in the world, if it hasn’t already. Try as we might, we just can’t bring ourselves to care about this news at all. We don’t know Thurston Moore. We’re not friends with Kim Gordon. (Full disclosure: We are friends with Kim Gordon’s Panties on Facebook.) Maybe we’re just a right bastard, but compassion is a scarce enough commodity, and we’d rather save ours for people we’ve actually met. If we fall all over ourselves wringing our hands, wailing and moaning about Kim and Thurston, it basically makes us no better than the TMZ set, hashing out the sordid details of Paul McCartney’s divorce. It’s an apt comparison. Sonic Youth are certainly the Beatles of indie rock. What people always forget about the Beatles though is that they broke up at exactly the right time. They had done just about everything they could do as Beatles. Can you imagine the Beatles playing through the 80′s? Into the 90′s? They would have sounded like Wings. Try as we might, we just can’t give a shit about “The uncertain future of the band.” Sonic “Youth” is actually our parents’ age (and we’re 31). They’ve released sixteen (16!) full length records. There’s not really any need to make more records until we get around to buying the 13 albums we don’t own. The three that we do have on our shelves are so fucking good that we’re still not tired of them yet. It’s one of the reasons we’re actually happy about the impending Double Dagger breakup. Their records are so good, we’re not going to get tired of them anytime soon. The only unresolved point of interest with the Sonic Divorce? Who gets the Washing Machine?
{ "pile_set_name": "Pile-CC" }
0.534903
[ { "begin": 0, "end": 45, "score": 0.073277235 }, { "begin": 45, "end": 119, "score": 0.05577659 }, { "begin": 119, "end": 275, "score": 0.082347915 }, { "begin": 275, "end": 314, "score": 0.05267762 }, { "begin": 314, "end": 481, "score": 0.049977742 }, { "begin": 481, "end": 588, "score": 0.098890856 }, { "begin": 588, "end": 939, "score": 0.070503555 }, { "begin": 939, "end": 1019, "score": 0.060128413 }, { "begin": 1019, "end": 1049, "score": 0.11313949 }, { "begin": 1049, "end": 2505, "score": 0.5625538 } ]
Björn Höcke had triggered controversy when he described the Berlin Holocaust memorial as a "monument of shame," calling for "nothing other than a 180-degree reversal on the politics of remembrance." He made his comments to an AfD youth group in Dresden last week and his speech went viral on Youtube. "These stupid politics of coming to grips with the past cripple us," Höcke told the crowd. How radical is Europe's right? Frauke Petry, Alternative for Germany (AfD) The leader of the Alternative for Germany, Frauke Petry, said police could use guns as a last resort to prevent illegal border crossings, pointing out "that's the law." What began as a euroskeptic party has turned into an anti-establishment and anti-EU force, claiming up to 25 percent of votes in German state elections in March 2016 and taking second place in Chancellor Angela Merkel's home state. How radical is Europe's right? Marine Le Pen, National Front (France) Many believe Brexit and Donald Trump's victory in the US presidential elections could give new impetus to France's National Front. Established in 1972 and now led by Marine Le Pen, who took over from her father, Jean-Marie Le Pen, in 2011, the National Front is a nationalist party that uses populist rhetoric to promote its anti-immigration and anti-EU positions. How radical is Europe's right? Geert Wilders, Party for Freedom (The Netherlands) The leader of the Dutch Party for Freedom, Geert Wilders, is one of Europe's most prominent right-wing politicians. He was convicted in December for asking a crowd in 2014 if they wanted more or fewer Moroccans in the country, but no penalty was imposed. His party is considered anti-EU and anti-Islam. It is leading polls ahead of next year's parliamentary elections and currently holds 15 seats. How radical is Europe's right? Nikos Michaloliakos, Golden Dawn (Greece) Nikos Michaloliakos is the head of Greece's neo-fascist party Golden Dawn. He was arrested in September 2013 along with dozens of other party members and charged with forming a criminal organization. Michaloliakos was released in July 2015. Golden Dawn won 18 seats in parliamentary elections in September 2016. The party holds anti-immigrant views and favors a defense agreement with Russia. How radical is Europe's right? Gabor Vona, Jobbik (Hungary) Hungary's anti-immigration, populist and economic protectionist party Jobbik aspires to be in the government by 2018. Now Hungary's third-largest party, it won 20 percent of votes in the last elections held in 2014. It wants a referendum on EU membership. Jobbik also advocates criminalizing "sexual deviancy," submitting a bill targeting homosexuals in 2012. Jobbik is headed by Gabor Vona. How radical is Europe's right? Jimmie Akesson, Sweden Democrats After Trump's election, Sweden Democrats leader Jimmie Akesson said in an interview with Swedish TV: "There is a movement in both Europe and the United States where the establishment is being challenged. It is clearly happening here as well." The Sweden Democrats call for restricting immigration, are against allowing Turkey to join the EU and want a referendum on EU membership. How radical is Europe's right? Norbert Hofer, Freedom Party (Austria) Norbert Hofer of Austria's nationalist Freedom Party lost the recent presidential runoff by a mere 30,000 votes, after being front-runner in the first round. Former Green party leader Alexander Van der Bellen won 50.3 percent of the vote, with Hofer gaining 49.7 percent. The Freedom Party's leader campaigns for the strengthening of the country's borders and limiting benefits for immigrants. How radical is Europe's right? Marian Kotleba, People's Party - Our Slovakia The leader of the hard-right People's Party - Our Slovakia, Marian Kotleba, has said, "Even one immigrant is one too many." On another occasion, he called NATO a "criminal organization." This Slovak party favors leaving the EU as well as the eurozone. It won 8 percent of the vote in March 2016 elections, securing 14 seats in the country's 150-member parliament. Leaders of the Alternative for Germany (AfD), decided on Monday that Höcke, who is regional party head in the state of Thuringia, was to face disciplinary measures for his ambiguous comments, but could remain in the party. The decision comes amid growing calls for his resignation. The AfD's prominent co-leader, Frauke Petry, last week alluded that Höcke might be thrown out after she described his as a "burden for the party." However, following a three-hour telephone conference on Monday, party heads ruled that although Höcke had "damaged the party's image," only disciplinary measures would be necessary. "I can live with this decision," Jörg Meuthen, another top AfD figure, said, adding that keeping Höcke in the AfD was important to maintaining the party's broad spectrum of opinion. It remains to be seen what measures the Thuringia leader will face. The AfD has a growing presence in German state parliaments 'Monument of shame' Höcke, who draws backing from the AfD's right-wing nationalist faction, is regarded as the strongest rival to Petry for the leadership. It wasn't the first time Höcke has been condemned for misanthropic remarks. In 2015, he said that African reproductive rates would continue to drive Europe's overpopulation if the continent continued to accept refugees. His comments on "African life-affirming propagation type" were dismissed by the AfD as amounting "contextual and political stupidity." dm/se (AFP, dpa)
{ "pile_set_name": "OpenWebText2" }
0.51546
[ { "begin": 0, "end": 199, "score": 0.030113045 }, { "begin": 199, "end": 302, "score": 0.065136164 }, { "begin": 302, "end": 393, "score": 0.88824683 }, { "begin": 393, "end": 425, "score": 0.095456325 }, { "begin": 425, "end": 638, "score": 0.05320103 }, { "begin": 638, "end": 870, "score": 0.12048093 }, { "begin": 870, "end": 902, "score": 0.095456325 }, { "begin": 902, "end": 1072, "score": 0.05723065 }, { "begin": 1072, "end": 1306, "score": 0.013750282 }, { "begin": 1306, "end": 5519, "score": 0.37605348 } ]
In episode 330, Jack and Miles are joined by Yo Is This Racist's co-host Andrew Ti to discuss a Colorado store closing down after they boycotted Nike cause of Colin Kaepernick ad, Amazon canceling their plans to build an HQ in New York City, Trump calling a state of emergency over the border wall, Paul Manafort lying while under cooperation agreement, Frozen 2 trailer dropping, an absurd Newsweek story, the Oscars upsetting everyone, and more! In episode 324, Jack and Miles are joined by Billy Wayne Davis to discuss some internet ads coming up, Google searches from different VPN's around the world, Trump's State Of The Union, federal prosecutors looking into Trump's inauguration committee, more Howard Schultz crap, Fox News hosts being surprised that people would want to tax the rich, and more!
{ "pile_set_name": "Pile-CC" }
0.604734
[ { "begin": 0, "end": 448, "score": 0.3113234 }, { "begin": 448, "end": 806, "score": 0.5716501 } ]
Q: How to add supported types to existing legacy std::list manipulation functions (i.e. templates?) I have a specific question about adding supported types to existing legacy std::list manipulation functions. I tried to do this with templates without success, so I'd appreciate any advice on how to use templates better or use different mechanisms entirely. Please take a look at my scenario below and let me know if there's any thoughts on this. Thanks in advance for any help! I currently have two std::lists of type A, and have insertion/removal/getter/etc functions for them. A simplified code snippet for this is shown below. typedef std::list<A*> TListA; TListA ListA1; TListA ListA2; void InsertIntoListA(A* pA) { TListA& ListA = IsBoo()? ListA1 : ListA2; ListA.push_back(pA); } Now, it turns out I need to add type B, and I considered using templates to add this new type (as shown below), but it turns out there are two issues with that. template <typename T> void InsertIntoListT(T* pT) { std::list<T*>& List; if (IsA()) List = IsBoo()? ListA1 : ListA2; else List = IsBoo()? ListB1 : ListB2; List.push_back(pT); } Issue 1: I cannot have "std::list& List" because since it's by reference, it needs to be assigned to an actual list. So I would end up with something like this, which is not ideal. template <typename T> void InsertIntoListT(T* pT) { if (IsA()) { TListA& ListA = IsBoo()? ListA1 : ListA2; ListA.push_back(pT); } else { TListB& ListB = IsBoo()? ListB1 : ListB2; ListB.push_back(pT); } } Issue 2: I am getting type conversion errors with either A to B, or B to A. I think this is because given the template T, the compiler will enumerate all four possibilities for "ListA.push_back" and "ListB.push_back," which leads to inserting A to list A, inserting B to list A, inserting A to list B, and inserting B to list B, and only two of these are valid. So I end up with something like this, which I think defeats the purpose of using templates. template <typename T> void InsertIntoListT(T* pT) { if (IsA()) { TListA& ListA = IsBoo()? ListA1 : ListA2; ListA.push_back(reinterpret_cast<A*>(pT)); } else { TListB& ListB = IsBoo()? ListB1 : ListB2; ListB.push_back(reinterpret_cast<B*>(pT)); } } A: Don't mix all in one function. It's very bad practice. Use something like void InsertIntoListImpl(A* p) { (IsBoo() ? ListA1 : ListA2).push_back(p); } void InsertIntoListImpl(B* p) { (IsBoo() ? ListB1 : ListB2).push_back(p); } template<typename T> void InsertIntoList(T* p) { InsertIntoListImpl(p); } or some traits, or something else. But anyway, not many conditions in one function. Any why not pass actual list to function for insert? It will be better.
{ "pile_set_name": "StackExchange" }
0.092287
[ { "begin": 0, "end": 101, "score": 0.0887176 }, { "begin": 101, "end": 211, "score": 0.058536664 }, { "begin": 211, "end": 360, "score": 0.082640864 }, { "begin": 360, "end": 449, "score": 0.10540166 }, { "begin": 449, "end": 481, "score": 0.08509743 }, { "begin": 481, "end": 582, "score": 0.066023745 }, { "begin": 582, "end": 634, "score": 0.08142468 }, { "begin": 634, "end": 664, "score": 0.08521603 }, { "begin": 664, "end": 679, "score": 0.062445797 }, { "begin": 679, "end": 2867, "score": 0.10203814 } ]
mJS – A new approach to embedded scripting - dimonomid https://mongoose-iot.com/blog/mjs-a-new-approach-to-embedded-scripting/ ====== nneonneo 25k of flash space sounds like a lot for what is effectively just a JavaScript parser and interpreter. I recall the days when you could fit a whole language's compiler into a few measly KB. 1KB RAM is also quite a lot for certain boards, especially if it has to be stack or SRAM. How's the performance? Will my 72MHz Cortex or 16MHz Arduino be able to run interesting things with mJS? If I have to do everything through FFI, what's the benefit vs. e.g. C++11? The latter has nice language features too but compiles to much smaller native code! ~~~ TazeTSchnitzel Ideally none of the flash space is spent on a parser/compiler, that's quite wasteful if you could compile bytecode offline. I don't know if you can do that with mJS, alas. ~~~ phire If you want to support eval, then the whole parser/compiler needs to be on the device. But do you really need eval? ------ dfabulich That FFI interface looks _way_ nicer than the node-ffi interface. let f = ffi('int gpio_write(int, int)'); vs. var current = ffi.Library(null, { 'atoi': [ 'int', [ 'string' ] ] }); ~~~ hackcasual You could probably write a wrapper to go from the node way to their style. ------ haldean This looks a lot like Lua's FFI interface[0], which is a compliment (but contradicts the statement that this sort of FFI is "the feature that no other engine implemented so far"). Nicely done. [0] [http://csl.sublevel3.org/post/luajit- cpp/](http://csl.sublevel3.org/post/luajit-cpp/) ~~~ drozd Nice! I wasn't aware of lua ffi api, thank you! ------ oso2k Is this a re-packaged v7 [0] (it's from Cesanta as well)? mjs.c is 477K. It looks like it as v7.c is 475K [1]. It shaves whole entire 1MB from my staticly linked builds (v7 1.9MB vs. mjs 998K), and almost 2MB from dynamically linked builds (v7 1.9MB vs. mjs 99K) on amd64. If it shares the same underlying architecture and api [2] then this is a pretty great achievement. In their docs, they claim 25K storage and 10K RAM. Blog post claims 25K storage and 1K RAM. [0] [https://github.com/cesanta/mjs/blob/master/mjs.c](https://github.com/cesanta/mjs/blob/master/mjs.c) [1] [https://github.com/cesanta/v7/blob/master/v7.c](https://github.com/cesanta/v7/blob/master/v7.c) [2] [https://docs.cesanta.com/v7/master/#/v7-internals/](https://docs.cesanta.com/v7/master/#/v7-internals/) ~~~ jfe i wonder if the size could be reduced by replacing the yacc code with a hand- written parser. ~~~ drozd There is no yacc code in either V7 or mJS. V7 uses hand-written recursive-descent parser. Initially, it was using ordinary C functions, and that created a problem on systems with low stack size. E.g. each '(' starts statement parsing from the top, so 1 + (2 + (3 + (4 + 5))) consumed stack, and sometimes resulted in stack overflow in e.g. interrupt handlers or network callbacks. Therefore we have rewritten recursive descent using C coroutines, and that is extremely sophisticated piece of work. See [https://raw.githubusercontent.com/cesanta/v7/master/v7.c](https://raw.githubusercontent.com/cesanta/v7/master/v7.c) , search for #line 1 "v7/src/parser.c" mJS on the other hand uses lemon parser generator - the one from sqlite project. It generates a LALR parser which is quite efficient in terms of memory. ~~~ oso2k So it is API compatible with V7? ~~~ drozd Nope. It's similar though, cause some of the concepts, and the code, were reused. mJS does not need an embedding API, really. The intent is that FFI is used. ------ jdormit I've never worked with embedded systems, so forgive my ignorance. Why is this any more useful than just writing c code, if all the code that actually interacts with the hardware has to be written in c anyway? ~~~ drozd The ability to script without the need of rebuilding/reflashing the whole firmware is often fairly useful. The most value is not in JS per se, but in the ability to script. ~~~ jdormit Ah, I can see how that is useful. Way up in the web dev world I don't often have to think of things like that :) ------ otikik > One common thing these projects share is an attempt to implement the whole > language specification, together with the more or less complete standard > library Not in the case of Lua. Well, the "whole language" part is correct, but Lua is a very tiny language spec. It's "standard library", however, is the opposite of "complete". ~~~ otikik > none of the popular scripting languages have been designed for the embedded > environment in the first place Also false for Lua. It is designed to be embedded. ~~~ drozd Embedded environment in this context means hardware low on resources, e.g. microcontrollers. Your perception of that word is "embedded into the C/C++ program". These are two different things. I agree that Lua (like some other languages) were designed to be embedded into C/C++ apps. ~~~ bdowling Something like this? [http://www.nodemcu.com/index_en.html](http://www.nodemcu.com/index_en.html) ------ ComputerGuru So is the only benefit of wasting that space and CPU so you can bill your platform/project/whatever as being "js" and C/C++-free? What does a no standard library JS buy you over a no standard library C++11 everyone else is using these days, besides the pain and trouble of dealing with a dynamically typed language without native debugging support? Why is there so much stigma against _learning_ to code in something other than $favlang these days? Most hard core developers I know appreciate the importance of using the right tool for the job, I don't see embedded/desktop developers shying away from using whatever the native toolkit/language is for their chosen platform and instead shoehorning $x to fit as much as we see this constant trend to try to use "web tech" everywhere. (Scripting in embedded systems has long been a solved problem: use lua.) ~~~ woah For example, I'm working on a dashboard for wifi routers that displays information beyond what is provided by OpenWRT's ubus system. We're get this information from the kernel, but it needs to be converted to JSON to be consumed by the dashboard frontend. Right now, I'm converting the information to JSON using Go, but there are some platforms that Go can have problems compiling binaries for. We have also written a lot of C for these routers, but doing this kind of thing in C would just be overly cumbersome. Shell could be an option, but it is also cumbersome. Lua could be an option, but I don't know much about it and I don't know how well it supports JSON. Most other developers that will work on this don't know much Lua either. mJS might also be an option. I don't really see what's wrong with that if we have the space for it. This can probably get types from Flow, since it is valid es6. Flow has no compilation step or runtime component. You may have a point about the debugging, but JS is pretty easy to debug by printing to stdout. ~~~ etiene Lua is the easiest language to learn I ever saw. It has a fantastic json support with the cjson library ([https://luarocks.org/modules/luarocks/lua- cjson](https://luarocks.org/modules/luarocks/lua-cjson)). It's there by default on many firmwares. Do check the docs for nodemcu, for example: [https://nodemcu.readthedocs.io/en/master/](https://nodemcu.readthedocs.io/en/master/) (a firmware for the ESP microcontrollers) Not to mention Lua itself can be used as a data / configuration language, their tables syntax is made especially for that. Normally when I work with Lua I don't feel the need to embed any other parsers for configuration, but cjson is there if you want. ------ qwertyuiop924 Neat. Although languages which are "almost, but not quite <x>" are, I would say, harder for people who know <x> to learn than languages that are entirely different from <x>. ------ _pmf_ As light weight, easily embeddable JS engines go, I'd like to mention Duktape[0]. But the FFI of mJS does look quite a bit nicer. ~~~ drozd Duktape is nice, and I've mentioned it in the article. However it's quite fat, and can't be used on some boards like ESP8266. It's flash footprint is Megabytes, whereas mJS flash footprint is ~25k. ~~~ megous Duktape website: "Embeddable, portable, compact: can run on platforms with 192kB flash and 64kB system RAM" ~~~ ricardobeat Also [http://www.esp32.com/viewtopic.php?t=497](http://www.esp32.com/viewtopic.php?t=497) ~~~ drozd Ah, thanks, wrong about flash footprint. Neil has done a great job adopting Duktape on ESP32. ------ sdegutis Taking this example: let malloc = ffi('void *malloc(int)'); let mem = malloc(10); How do you manipulate that memory? How can you do the following in mJS? int* mem = malloc(10); mem[0] = 3; mem[1] = 7; mem[2] = 12; int *rest = mem + 3; There are some things you can do in C without functions. How does mJS achieve this? ~~~ drozd Currently, mJS FFI is limited to functions only. And, to simple enough functions. On how to access memory from mJS: write an accessor function! // C void setmem(uint8_t *ptr, int index, int value) { ptr[index] = value; } // mJS let setmem = ffi('void setmem(void *, int, int)'); let malloc = ffi('void *malloc(int)'); let mem = malloc(10); setmem(mem, 3, 5); ------ formula1 This is neat. This isnt quite javascript (which is neither good nor bad) but I think has a lot of potential ------ gfwilliams Espruino's had an FFI interface for the last 3 years! Nice to see they did their research :) ~~~ drozd Hi Gordon! Nice to meet you :) I am the author of the article, and I am quite fond of Espruino, it's a great project. Wasn't aware that Espruino has FFI API! ~~~ gfwilliams Hi! Thanks, v7 looked great too. mJS looks like a good idea - IMO it'd be nice to standardise a sane, minimal subset of JS that can be easily implemented - it'd be a huge help for all the developers of embedded JS interpreters, and could potentially be targeted by transpilers too. ------ etiene Worth mentioning: [https://github.com/elua](https://github.com/elua) Allows to run Lua on bare metal, no OS involved. It's what the nodemcu firmware for the ESP cards is based on. ------ teaearlgraycold Seems a little crazy that there's no support for closures. ~~~ drozd Yes. Closures add quite a bit of complexity and footprint. Anticipated use case was a short script that orchestrates the device logic, calling existing SDK functions.
{ "pile_set_name": "HackerNews" }
0.24039
[ { "begin": 0, "end": 56, "score": 0.15448281 }, { "begin": 56, "end": 128, "score": 0.11092424 }, { "begin": 128, "end": 135, "score": 0.060300723 }, { "begin": 135, "end": 144, "score": 0.070697136 }, { "begin": 144, "end": 223, "score": 0.057402257 }, { "begin": 223, "end": 247, "score": 0.06149569 }, { "begin": 247, "end": 292, "score": 0.083377846 }, { "begin": 292, "end": 334, "score": 0.24828131 }, { "begin": 334, "end": 366, "score": 0.12944523 }, { "begin": 366, "end": 10683, "score": 0.19088845 } ]
A radio frequency (RF) filter is a device that is utilized to allow or stop selected RF signals in a specific range of frequencies, or used to eliminate/filter out any unwanted RF signals. That is, an RF filter is designed to allow for attenuation or transmission of a range of frequencies that would be applied. For example, an RF filter in a wireless device is used to receive designated RF signals and also helps to cut RF interference that could occur if a hairdryer, lamp, or other “noisy” device is activated. Four general filter functions are desirable: a band-pass filter that selects only a desired band of frequencies, a band-stop filter that eliminates an undesired band of frequencies, a low-pass filter that allows only frequencies below a cutoff frequency to pass, and a high-pass filter that allows only frequencies above a cutoff frequency to pass. Radio frequency (RF) and microwave filters usually are designed to operate on signals in the megahertz (MHz) to gigahertz frequency (GHz) ranges (medium frequency to extremely high frequency). This frequency range is the range used by most broadcast radio, television, wireless communication (cell phones, Wi-Fi, etc. . . . ), and thus most RF and microwave devices will include some kind of filtering on the signals transmitted or received. Such filters are commonly used as building blocks for duplexers to combine or separate multiple frequency bands. In general, RF and microwave filters are most commonly made up of one or more coupled resonators, and thus any technology that can be used to make resonators can also be used to make filters. Currently, radio frequency (RF) filters for receiving and transmitting radio waves in the selected frequency band utilizes several known technologies. For example, coaxial filter uses coaxial transmission lines providing higher quality factor than planar transmission lines, and is thus used when higher performance is required. The coaxial resonators may make use of high-dielectric constant materials to reduce their overall size. However, the dimension of a resonator filter is constrained by the pass band frequency and its physical size cannot be reduced as desired. The most commonly used high power radio frequency (RF) filter is cavity filter. Cavity filter (e.g. waveguide filter) offers high quality factor (Q factor), which indicates a lower rate of energy loss. Well constructed cavity filters are capable of high selectivity even under power loads of at least a megawatt. Higher Q quality factor, as well as increased performance stability at closely spaced (down to 75 kHz) frequencies, can be achieved by increasing the internal volume of the filter cavities. Physical length of conventional cavity filters can vary from over 82″ in the 40 MHz range, down to under 11″ in the 900 MHz range. In the microwave range (1000 MHz (or 1 GHz) and higher), cavity filters become more practical in terms of size and a significantly higher quality factor than lumped element resonators and filters, though power handling capability may diminish. Similar to coaxial resonator filter, however, the dimension of a cavity filter is also determined by the pass band frequency. Therefore, its physical size cannot be reduced. Pucks made of various dielectric materials can be used as an alternative to make resonators for dielectric filters. As with the coaxial resonators, high-dielectric constant materials may be used to reduce the overall size of the filter. With low-loss dielectric materials, these can offer significantly higher performance than the other technologies previously discussed. Electro-acoustic resonators based on piezoelectric materials can be used for filters. Since acoustic wavelength at a given frequency is several orders of magnitude shorter than the electrical wavelength, electro-acoustic resonators are generally smaller than electromagnetic counterparts such as cavity resonators. A common example of an electro-acoustic resonator is the quartz resonator which essentially is a cut of a piezoelectric quartz crystal clamped by a pair of electrodes. This technology is limited to some tens of megahertz. For microwave frequencies, thin film technologies such as surface acoustic wave (SAW) and, bulk acoustic wave (BAW) have been used for filters. Although dielectric resonator filter offers superior properties, the production of dielectric resonator filters depends on rare earth materials. Thus the cost is high, and dimensions are still too big. An LC circuit, also called a resonant circuit or tuned circuit, consists of an inductor, represented by the letter L, and a capacitor, represented by the letter C. When connected together, they can act as an electrical resonator, an electrical analogue of a tuning fork, storing electrical energy oscillating at the circuit's resonant frequency. In a LC circuit, the pass band frequency is determined by the resonant frequency. The relation between resonant frequency (f0 in Hertz) and the values of LC and C is described as f 0 = 1 2 ⁢ π ⁢ L ⁢ ⁢ C . LC circuit is a classical RF filter. However, due to current limitations of the L and the C devices, it cannot be used in high quality factor and high power handling applications such as base stations. Striplines, which is supported by dielectric substrate on both sides, have also been used in RF filter applications. However, such filter cannot handle high RF power. Furthermore, the quality factor (Q value) of this type of filter is limited due to the additional substrate loss.
{ "pile_set_name": "USPTO Backgrounds" }
0.060831
[ { "begin": 0, "end": 189, "score": 0.01000691 }, { "begin": 189, "end": 313, "score": 0.061907917 }, { "begin": 313, "end": 516, "score": 0.0005111839 }, { "begin": 516, "end": 865, "score": 0.051081724 }, { "begin": 865, "end": 1058, "score": 0.01213343 }, { "begin": 1058, "end": 1307, "score": 0.02988769 }, { "begin": 1307, "end": 1420, "score": 0.015889078 }, { "begin": 1420, "end": 1612, "score": 0.0619077 }, { "begin": 1612, "end": 1763, "score": 0.00078949286 }, { "begin": 1763, "end": 5713, "score": 0.060010623 } ]
Raciste, sexiste et homophobe, le « Trump brésilien » progresse dans la course aux présidentielles Dans la continuité du coup d’Etat institutionnel de Temer, les élections présidentielles brésiliennes se déroulent dans un contexte de polarisation et d’instabilité extrême. Alors que le candidat du gouvernement putschiste dispose d’une côte de popularité de 4%, le candidat favori issu du Parti des travailleurs (PT), Lula, qui recueille près de 40% des intentions de vote, est en prison et interdit de se présenter. D’autre part, le candidat d’extrême-droite, Bolsonaro, monte aujourd’hui à 24% dans les sondages après l’attentat au couteau perpétré contre lui. Le centre, représenté par le PSDB dont le candidat est Alckim est quant à lui complètement décomposé et effacé au profit de Bolsonaro. Surnommé le « Trump brésilien », ce dernier défend un programme ultra-réactionnaire, qui parle du coup d’Etat militaire de 1964 comme d’une « révolution démocratique » et revendique les actes de torture perpétrés à cette époque, en particulier contre les militants communistes. Il promet de militariser le pays et de restaurer l’autorité de l’armée, tout en appelant lors de tournées électorales à « abattre les militants du PT ». Il s’illustre également par ses propos racistes, sexistes et homophobes et la promesse de reculer sur un certain nombre d’acquis des femmes et personnes LGBT : il a comparé le mariage pour tous à la pédophilie et rejette la politique des quotas, mise en place par les gouvernements précédents pour favoriser l’accès à l’université des Afro-Brésiliens et des femmes. Il a déclaré qu’il serait prêt à frapper des homosexuels s’il les voyait s’embrasser dans la rue et a désigné la mort de Marielle Franco, la conseillère municipale noire et queer de la ville de Rio, assassinée en mars dernier, comme une simple « mort de plus à Rio de Janeiro ». Il a également décrété que les féministes brésiliennes « n’étaient bonnes qu’à faire des fellations ». L’impressionnante riposte des femmes brésiliennes Cependant, l’ascension de Bolsonaro a suscité la colère de nombreuses femmes brésiliennes qui entendent s’organiser contre le candidat sexiste et misogyne. En effet, un groupe Facebook intitulé « Les femmes unies contre Bolsonaro », créé il y a seulement un peu plus de deux semaines, n’a cessé de croître jusqu’à dépasser aujourd’hui le million d’adhérentes. D’après les organisatrices, l’écho rencontré sur les réseaux sociaux est énorme : elle recensent 10 000 nouvelles demandes d’adhésion par heure. Et pour cause : en réalité, l’électorat de Bolsnaro, est largement masculin : on compte 32% d’hommes pour 17% de femmes. De plus, les sondages indiquent qu’au moins 49% des femmes ayant le droit de vote ne se prononceront jamais en faveur du candidat d’extrême-droite. L’intention du groupe est de passer des réseaux sociaux à la rue et de traduire en manifestation publique ce rejet massif. Ainsi des meetings et rassemblements sont appelés à San Pablo et à Rio de Janeiro pour le 27 septembre. Le groupe existe aussi à Rio Grande do Sul. L’une des animatrices du groupe féministe Pan y Rosas a expliqué que l’organisation comptait participer à ces manifestations : « Nous pensons que les femmes peuvent être le déclencheur d’un mouvement qui impliquent d’autres secteurs de la société également attaqués, non seulement par les positions réactionnaires de Bolsonaro contre les femmes, les Afro-Brésiliens, les personnes LBGT ou indigènes, mais aussi par sa sa politique qui participe du putschisme qui interdit à la population de voter pour qui elle souhaite [en enfermant le candidat favori Lula], et qui soutient la réforme de la protection sociale et du droit du travail, tout en attisant la haine des travailleurs qui se battent pour leur droit ». Dans ce contexte, la détermination des femmes à s’opposer au profil machiste et misogyne du candidat Bolsonaro suscite l’intérêt d’autres candidats du centre comme Marina Silva ou Geraldo Alckmin qui cherchent à obtenir une portion du vote féminin anti-Bolsonaro. Pourtant, il est clair qu’aucun de ceux-ci ne peut prétendre défendre les droits des femmes. Marina Silva s’est toujours opposée au droit élémentaire des femmes à disposer de leur corps et s’est battue contre la légalisation de l’avortement. Quant à Alckmin, à la tête du gouvernement PSDB de San Pablo, il attaque depuis plus de 22 ans un des secteurs les plus féminisés du monde du travail, celui des professeurs de l’enseignement public. Les femmes travailleuses du monde, à l’initiative de mouvements sociaux massifs ? On a pu voir ces dernières années les femmes, en particulier en Amérique latine, à la tête d’immenses mouvements qui remettent en cause la société patriarcale. Pour ne citer qu’un exemple, en Argentine, le mouvement #NiUnaMenos, né à l’été 2015, s’est férocement battu contre les féminicides, et plus récemment les femmes se sont mobilisées pour le droit à l’avortement. Pourtant très durement marqué par la violence machiste et les meurtres de femmes, le Brésil ne connaît pas jusqu’à maintenant de « mouvement de femmes » d’une telle ampleur. Par ailleurs, 200 000 femmes ont manifesté à Washington pour protester contre l’investiture de Donald Trump, président sexiste, homophobe et raciste, le 21 janvier 2017. On peut également penser aux 6 millions de personnes qui ont suivi la grève lancée à l’appel de syndicats et de plusieurs organisations féministes à l’occasion du 8 mars dans l’État espagnol. En effet, les femmes représentent aujourd’hui plus de la moitié de la main d’œuvre salariée du monde. Premières cibles des attaques austéritaires, précaires et victimes de violences machistes, elles sont ainsi détentrices d’un pouvoir imparable : celui de se mettre en mouvement. L’énorme écho rencontré par le groupe Facebook des « femmes unies contre Bolsonaro » peut annoncer la perspective d’un mouvement de femmes au Brésil, capable de prendre la tête d’une contestation globale, aux côtés de la classe ouvrière, pour affronter le putschisme, l’autoritarisme judiciaire et renforcer la possibilité de construire une force qui dépasse, par la gauche, le Parti des travailleurs, responsable par sa précédente politique de collaboration de classe, de la montée de l’extrême-droite aujourd’hui.
{ "pile_set_name": "OpenWebText2" }
0.636407
[ { "begin": 0, "end": 99, "score": 0.7686042 }, { "begin": 99, "end": 276, "score": 0.15977779 }, { "begin": 276, "end": 520, "score": 0.25508386 }, { "begin": 520, "end": 666, "score": 0.0881847 }, { "begin": 666, "end": 801, "score": 0.09441598 }, { "begin": 801, "end": 1080, "score": 0.17229392 }, { "begin": 1080, "end": 1233, "score": 0.055362556 }, { "begin": 1233, "end": 1599, "score": 0.06729714 }, { "begin": 1599, "end": 1878, "score": 0.038115654 }, { "begin": 1878, "end": 6289, "score": 0.3116487 } ]
Q: Google Maps IOS SDK 1.2 need snapshot of map view In 1.1, the GMSScreenshot class provided a rudimentary way to get a snapshot of the entire screen into a UIImage. In 1.2, the class is missing, and in the release notes, it says this: Calling renderInContext: on the GMSMapView layer now renders correctly; this allows for snapshots and UI effects Unfortunately, I'm not finding this to be the case. Typically renderInContext: does not work on Open GL drawing, but I figured I'd take a shot anyway (it didn't work). Has anyone been successful in getting a (preferred) view or screen snapshot? A: I am able to take a screenshot. Here is the code I use: UIGraphicsBeginImageContext(mapView_.frame.size); [mapView_.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *screenShotImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); I do not call this straight after I create the map as it can take some frames for the map to render.
{ "pile_set_name": "StackExchange" }
0.063631
[ { "begin": 0, "end": 54, "score": 0.07950044 }, { "begin": 54, "end": 170, "score": 0.017737975 }, { "begin": 170, "end": 240, "score": 0.011851711 }, { "begin": 240, "end": 313, "score": 0.048225943 }, { "begin": 313, "end": 354, "score": 0.12109907 }, { "begin": 354, "end": 408, "score": 0.049295038 }, { "begin": 408, "end": 525, "score": 0.31403244 }, { "begin": 525, "end": 602, "score": 0.0471425 }, { "begin": 602, "end": 607, "score": 0.03873124 }, { "begin": 607, "end": 981, "score": 0.0678251 } ]
Ian Cook Ian Cook may refer to: Ian Cook (geographer), professor of geography at the University of Exeter Ian Cook (artist) (born 1983), English artist Ian Cook (psychiatrist) (born 1960), physician-researcher at UCLA Ian Cook (footballer) (born 1924), Scottish footballer Ian M. Cook, British businessman Ian Cook (racing driver) in 1967 Tasman Series See also Iain Cook (born 1974), guitarist Ian Cooke (disambiguation)
{ "pile_set_name": "Wikipedia (en)" }
0.000049
[ { "begin": 0, "end": 9, "score": 0.15210141 }, { "begin": 9, "end": 33, "score": 0.052411225 }, { "begin": 33, "end": 109, "score": 0.06405955 }, { "begin": 109, "end": 156, "score": 0.0014004305 }, { "begin": 156, "end": 223, "score": 0.052829314 }, { "begin": 223, "end": 279, "score": 0.06968989 }, { "begin": 279, "end": 287, "score": 0.044788055 }, { "begin": 287, "end": 313, "score": 0.16151284 }, { "begin": 313, "end": 361, "score": 0.0758681 }, { "begin": 361, "end": 432, "score": 0.007599065 } ]
Cuckold Husband Used As Pillow For Hotwife Fucking Do you remember when you told me that you would be okay with the idea of me using you as a pillow while I got fucked by another guy? Today, I want to actually have that happen, so I invited a big, strong muscly guy that is going to pound me while you watch and I use you for physical support. I think it would be best if you were wrapped up in cling film first – so let’s get that done and pay you down on the bed. How does it make you feel? The idea that your wife is fucking another man – not only with you knowing – but actually looking at it happen too? That must be pretty depressing. I’m sorry, but as a dominating hotwife, I love nothing more than you and your cuckold ways being a part of my bedroom experience.
{ "pile_set_name": "Pile-CC" }
0.859269
[ { "begin": 0, "end": 51, "score": 0.95596 }, { "begin": 51, "end": 185, "score": 0.90181583 }, { "begin": 185, "end": 345, "score": 0.52856207 }, { "begin": 345, "end": 467, "score": 0.24123849 }, { "begin": 467, "end": 495, "score": 0.05668709 }, { "begin": 495, "end": 611, "score": 0.92577034 }, { "begin": 611, "end": 643, "score": 0.20649979 }, { "begin": 643, "end": 772, "score": 0.7093121 } ]
Mechanism of action of ATP on intestinal epithelial cells. Cyclic AMP-mediated stimulation of active ion transport. ATP, ADP and AMP but not adenosine increased cyclic AMP in dispersed enterocytes prepared from guinea pig small intestine. This action of ATP was augmented by IBMX and was reproduced by App(NH)p or App(CH2)p. ATP also increased the formation of cyclic [14C]AMP in enterocytes that had been preincubated with [14C]adenine. Gpp(NH)p and NaF each caused persistent activation of adenylate cyclase in plasma membranes from enterocytes and ATP caused significant augmentation of this persistent activation. In addition to increasing cellular cyclic AMP and augmenting Gpp(NH)p and NaF-stimulated persistent activation of adenylate cyclase, ATP increased the Isc across mounted strips of small intestine and inhibited net absorption of fluid and electrolytes in segments of everted small intestine. These results indicate that intestinal epithelial cells possess a receptor that interacts with ATP and other adenine nucleotides and that receptor occupation by ATP causes activation of adenylate cyclase, increased cyclic AMP and changes in active ion transport across intestinal mucosa.
{ "pile_set_name": "PubMed Abstracts" }
0.066391
[ { "begin": 0, "end": 59, "score": 0.106110506 }, { "begin": 59, "end": 116, "score": 0.046451982 }, { "begin": 116, "end": 239, "score": 0.047002826 }, { "begin": 239, "end": 325, "score": 0.05370833 }, { "begin": 325, "end": 438, "score": 0.0006248683 }, { "begin": 438, "end": 618, "score": 0.104387335 }, { "begin": 618, "end": 909, "score": 0.00041576684 }, { "begin": 909, "end": 1196, "score": 0.0006738733 } ]
When shopping at a retail establishment, a customer often wishes to obtain or purchase a number of goods. The customer may not be able to carry all of the goods to the check-out area or to their car. In order to alleviate this problem, many retail establishments provide shopping baskets or carts. A problem with baskets is that the customer still must carry the basket while shopping. If the customer shops for a long period of time or if a number of goods are purchased, the customer may find it uncomfortable if not impossible to carry the basket and goods. Wheeled shopping carts provide a storage area for the goods a customer wishes to purchase and makes it easy for the customer to transport the goods. A customer pushes the cart about the establishment, placing goods in the cart along the way. Ultimately, the customer pushes the cart to a check-out or purchase point. Once the goods have been paid for, the customer normally still needs a convenient means to transport the goods from the establishment, such as to their car or home. The parking areas of many establishments are often quite large and the distance from the check-out area of the establishment to a customer's car may be quite far. Usually, the retail establishment permits the customer to utilize the cart for this purpose. After purchasing their goods, customers may push the loaded cart from the establishment over a parking area to their car. The customer then unloads the goods from the cart. A problem now arises in that the cart is located outside of the establishment. Most customers are unwilling to push the now empty cart back into the retail establishment, and thus the cart is left in the parking area. Because the cart is wheeled, once left unattended the cart may roll about the parking lot. Wind and gravity may cause the cart to roll at various speeds and in a variety of directions. The unattended or “runaway” cart as such carts are often referred to may roll away and be lost by the retail establishment, at great cost to the establishment. Moreover, the carts may cause injury and damage. For example, the cart may roll into a vehicle parked in the parking lot and damage it. The carts may also roll into moving traffic or into pedestrians, also causing damage and injury. Because of the rather high incidence of damage caused by unattended carts, but not wishing to take away the convenience of providing the carts to customers, many establishments post signs warning that damage from run-away and unattended carts may cause damage and stating that the establishment is not responsible for damage thereby. Nonetheless, retailers often have many claims filed against them every year arising from runaway cart damage and injury. As one attempt to alleviate the above-stated problems, some establishments have created cart return areas in their parking areas. These areas generally comprise an area closed on two or more sides by fence-like structures. It is intended that once a customer is done using a cart, the customer will roll the cart to one of the semi-enclosed cart return areas. There are several problems with this attempted solution. The apparatus comprising the cart return normally comprises a tubular aluminum or other metal structure. The structure may be quite large and relatively expensive. The cart return areas normally consume several parking spaces in the parking area. Because of the size and cost, an establishment may only provide one or two cart returns in their parking area. Because of the limited number of cart returns and the likelihood that a cart return may still be a significant distance from a customer's car, many customers still do not return their carts. In addition, the configuration of the cart return does not ensure that those carts which are returned are secured. The semi-enclosed nature of the return permits customers to push the carts into the return area. The carts are generally secured by being prevented from rolling away by engaging a portion (such as a long horizontal rail) of the cart return structure. Because one or more portions of the cart return are open and the wheels of the returned carts are not engaged, one or more carts may still roll out of the cart return area and into the main area of the parking lot. Some security devices have been proposed to prevent customers from removing carts from the area of an establishment. Some of these devices are arranged to lock one or more wheels of the cart. Such devices are intended to prevent the theft or negligent removal of carts and are not useful in solving the above-stated problem. First, these devices generally are arranged to “trigger” when the cart reaches an outer perimeter beyond which the customer is not permitted to travel with the cart. It is not feasible to arrange such a device to trigger once a cart is left unattended at any particular point in a parking lot to prevent the cart from rolling away once unattended. Once the lock is triggered, store/owner personnel must reset the lock in order for the cart to be useful. It is also not feasible to have an arrangement where once a cart is left unattended, such as in a parking lot after use, a lock is triggered which must be reset in order for the cart to be reused. This arrangement would cause substantial time and money loss in resetting the locks. A method and apparatus for securing a cart which overcomes the above-stated problems is desired.
{ "pile_set_name": "USPTO Backgrounds" }
0.013662
[ { "begin": 0, "end": 106, "score": 0.0075278147 }, { "begin": 106, "end": 200, "score": 0.047260966 }, { "begin": 200, "end": 298, "score": 0.052707504 }, { "begin": 298, "end": 386, "score": 0.033505905 }, { "begin": 386, "end": 561, "score": 0.030011142 }, { "begin": 561, "end": 710, "score": 0.0053539868 }, { "begin": 710, "end": 803, "score": 0.014555663 }, { "begin": 803, "end": 878, "score": 0.01521032 }, { "begin": 878, "end": 1043, "score": 0.033134468 }, { "begin": 1043, "end": 5427, "score": 0.014222534 } ]