Skip to content

Instantly share code, notes, and snippets.

@ifly6
ifly6 / obama_down.py
Last active March 13, 2020 18:52
Obama is down by how many delegates by date?
# -*- coding: utf-8 -*-
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
dels = pd.read_html('https://www.nytimes.com/elections/2008/primaries/results/delegates/index.html',
match='American Samoa')[0]
dels.rename(columns={'Unnamed: 0': 'date', 'Unnamed: 1': 'state'}, inplace=True)
@ifly6
ifly6 / the repeal.md
Last active February 28, 2020 23:15
repeal promotion of recycling

The Repeal

The World Assembly,

Praising aluminium, glass, and metals recycling for reducing massively the need for environmentally damaging mines and foundries,

Highlighting that the high temperatures and relative inherent strength of such materials makes recycled aluminium, glass, etc easy to create and just as good as virgin material,

Resolving as follows:

@ifly6
ifly6 / us_population.csv
Last active August 22, 2019 20:50
us population distribution by state
rank state pop_est_2014 cumsum greater_half
1 California 38802500 318857056 True
2 Texas 26956958 280054556 True
3 Florida 19893297 253097598 True
4 New York 19746227 233204301 True
5 Illinois 12880580 213458074 True
6 Pennsylvania 12787209 200577494 True
7 Ohio 11594163 187790285 True
8 Georgia 10097343 176196122 True
9 North Carolina 9943964 166098779 True
@ifly6
ifly6 / cat.md
Created August 22, 2019 17:35
Banning slander against dogs and cats

The World Assembly:

Concerned about the defamation of members of the Assembly by comparison to dogs and cats,

Acting to stop the possible negative repercussions to animal welfare, public health, and general companionship that could emerge from popular unrest and action from that rhetoric, and

Troubled at the coorespondent dehumanisation of persons by comparison to non-person animals in such rhetoric, which could also similarly produce mass harm if such rhetoric were acted upon, hereby:

  1. Requires that all member nations make it a civil wrong for a person to tell an untruths about dogs, wherein those untruths would malign the reputation of any dog; further requires member nations to prohibit the labelling of persons as non-person dogs or the defaming of persons' reputations by comparison to such dogs;
@ifly6
ifly6 / cannot reproduce
Created August 9, 2019 17:11
stackoverflow_2019-08-09-13
df1 = pd.read_csv(io.StringIO('''value1 value2 value3 ID text
-0.1 0.35 -0.5 4 THIS
-0.2 0.05 -0.7 3 IS
0.1 0.1 0.8 5 DRIVING'''), sep=' {2,}')
__main__:4: ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support regex separators (separators > 1 char and different from '\s+' are interpreted as regex); you can avoid this warning by specifying engine='python'.
df1
Out[96]:
value1 value2 value3 ID text
0 -0.1 0.35 -0.5 4 THIS
@ifly6
ifly6 / Prisoner Indemnification Act.md
Last active July 24, 2019 19:25
Prisoner Indemnification Act

The World Assembly,

Believing that the vast majority of prisoners are effectively judgement-proof and

Assurred that the recuperation of harms to society should be applied a fair manner which does not disproportionately harm persons who have already paid for their harms, hereby:

  1. Prohibits member nations from enacting or giving effect to any law which:

    a. permits any prison or place of incarceration to bring civil action

@ifly6
ifly6 / draft
Last active July 19, 2019 21:50
vrama
Whereas [nation]YOURNAME[/nation] has recognised the sovereignty, suzerainty, authority, and imperium of [nation]Imperium Anglorum[/nation] and the Imperial Parliament over the proclaimed Dominion of Vrama controlling all territories of [nation]Vrama[/nation]:
And whereas the Imperial Parliament has taken it upon itself, in its munificience, to administer the Dominion as a crown colony, to bring civilisation to the incorrigible savages inhabiting that land:
And whereas Anglican forces under the leadership of Lord General Melchett of the Telemachian Guard have liberated the whole of Vrama's territory from the verisimilitudinously oppressive government that formerly controlled it and the puerile xenophobic junta of the old order, holding their despotic Madi and his so-called government at Newgate Prison in the Imperial capital of Londinium for trial:
And whereas the imperial authority over that territory now passes to the exercise of the Anglican people, who have taken this solemn duty up with zeal, as noted
@ifly6
ifly6 / protecting-biomedical-research-angle.md
Last active March 12, 2019 19:50
cloning-convention-litigation

Proposal's clause 5 permits the cloning of unconcious organisms from people for biomedical experimentation and use. There's no exception for previous legislation, so the proposal blanketly permits those things. From there, the proposal contradicts Biomedical Donor Rights and Patient's Rights Act, which makes such actions contingent on consent.

Writ large, Ara should structure and form his arguments more clearly. Namely, put that part at the top before venturing into 'what is a person?', which I increasingly think is not a relevant question at all.

Doing this biomedical stuff without consent is prohibited, which violates the provisions of Biomedical Donor Rights. The proposal wants to make it permitted, thus it's a contradiction.


There is a secondary clash emerging primarily having to do what is the measure of a man (TNG references, anyone?). Specifically, whether or not there exists a set of persons who are to be treated as people even if they are not people. It's probably not actually relevant to the

@ifly6
ifly6 / hm-argument.md
Last active March 6, 2019 15:26
Repeal Smoking, HM argumentation

It seems I really need to diagram out this argument, because it appears there exists some kind of deficiency in its ability to be understood. Perhaps it should be written more clearly, but no comment was made to that effect. Again, of course, all objects are raised after submission.

So, I raised on Discord the question having to do with the original resolution, on whether the use of "should" in the target resolution is fundamentally optional. I believe it is. Sep concurred also with this line of reasoning on the forum. But ignoring the appeals to authority, it is quite simply true that telling someone that you should do something does not mean it must be done. I then thought about the counterarguments to this obvious and common-sense position, namely, that the GA 2 "good faith" clause means that "should" magically becomes mandatory, because of some kind of strange spectre. This suffers from all the problems spoken on in the repeal itself.

Honest Mistake has to do with two things: (1) relevance and (2) ver

@ifly6
ifly6 / repeal smoking.txt
Created February 22, 2019 17:04
repeal smoking
The World Assembly,
Believing that it is definitely necessary for action to be taken against smoking, and certain that action will be taken by delegations committed to that cause in the eventuality of repeal,
Reminding itself that passed legislation cannot be amended to resolve errors, nor writ issued to remedy such errors, and that only primary legislative authority exercised by the Assembly can resolve such issues, but fundamentally,
Concerned that the recently passed legislation permits member nations to abide by its requirements without in fact translating warnings into a language understandable by the local populace, as the language used repeatedly in the target is inherently optional,
Further concerned that members with governments approrpriately disposed to tobacco corporations can therefore abide by the text of the target while also taking little useful action towards the dissemination to their populations the harms of tobacco and smoke inhalation,