Skip to content

Instantly share code, notes, and snippets.

Tariq Ali tra38

Block or report user

Report or block tra38

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tra38 /
Last active Sep 19, 2019
tra38 /
Created Jun 13, 2019

Julia was twenty-six years old. She lived in a hostel with thirty other girls ('Always in the stink of women! How I hate women!' she said parenthetically), and she worked, as he had guessed, on the novel-writing machines in the Fiction Department. She enjoyed her work, which consisted chiefly in running and servicing a powerful but tricky electric motor.

She was 'not clever', but was fond of using her hands and felt at home with machinery. She could describe the whole process of composing a novel, from the general directive issued by the Planning Committee down to the final touching-up by the Rewrite Squad. But she was not interested in the finished product. She 'didn't much care for reading,' she said. Books were just a commodity that had to be produced, like jam or bootlaces.


'What are these books [produced by Pornosec] like?' said Winston curiously.

'Oh, ghastly rubbish. They're boring, really. They only have six plots, but they swap them round a bit. Of course I was only on the kaleidoscopes. I wa

tra38 / generator.cs
Last active Feb 2, 2019
A C# Shuffler
View generator.cs
Copyright 2019 Tariq Ali
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
Unless required by applicable law or agreed to in writing, software
View Gulliver'

Note: The passage came from

The first professor I saw, was in a very large room, with forty pupils about him. After salutation, observing me to look earnestly upon a frame, which took up the greatest part of both the length and breadth of the room, he said, “Perhaps I might wonder to see him employed in a project for improving speculative knowledge, by practical and mechanical operations. But the world would soon be sensible of its usefulness; and he flattered himself, that a more noble, exalted thought never sprang in any other man’s head. Every one knew how laborious the usual method is of attaining to arts and sciences; whereas, by his contrivance, the most ignorant person, at a reasonable charge, and with a little bodily labour, might write books in philosophy, poetry, politics, laws, mathematics, and theology, without the least assistance from genius or study.” He then led me to the frame, about the sides, whereof all his pupils stood in ranks.

tra38 /
Last active Sep 23, 2018
Slaying the Great White, I mean Novel



From a 2017 comment:

Usual critiques of story generators tend to be some variant of "Yes, you can produce short evocative text snippets, but without structure, you can't scale your generator upwards". It seems approaches that require planning and outlines (story compilers, simulations, etc.) are an inverse of that, providing the structure to scale upwards, but are unable to generate the short evocative text snippets on their own.

This may not actually be a problem to worry about though - a human probably need to be in the loop somewhere (at least, if the story is to be enjoyable or useful to other humans).

But if it does become an issue, maybe we need to have two generators -- use a Markov chain or RNNs to generate short evocative paragraphs for individual topics, and then a large-scale planner to pick paragraphs from those individual topics.

tra38 /
Last active Sep 15, 2019
Today I Learned... (warning, knowledge here is 'raw', so it may not be completely accurate, but represents my understanding of the tech at the time. No warranty is expressed or implied.)

Fog Computing

In a traditional IoT architeture, you have your normal "device" that transmit messages to the cloud and receive a response. However, this approach is "slow" (high latency) - the device must wait for the following steps to occur:

  1. the data being transmitted across the Internet to the cloud provider

  2. the cloud provider doing its own processing of the data

  3. the cloud provider transmitting the data back to the device

tra38 / department_of_mineral_resources.rb
Last active Jun 2, 2018
Scraping the DMR "Find Wells" Table
View department_of_mineral_resources.rb
#Copyright 2018 Tariq R. Ali
#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
#Unless required by applicable law or agreed to in writing, software
#distributed under the License is distributed on an "AS IS" BASIS,
tra38 /
Last active Apr 22, 2018
Personalized Bash Settings
#Personal Aliases
alias be="bundle exec"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH="$PATH:$HOME/Library/Python/3.6/bin" # Add Python 3.6 to PATH for command-line tools

#Remove the beer in Homebrew

#Default Search Behaviors for "howdoi":
tra38 / skynet.csv
Last active Nov 6, 2017
The CSV file used to generate Skynet's ██████
View skynet.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
"Skynet is a self-aware super computer with nearly infinite resources and becomes more intelligent at an exponential rate. So why does it fight humans using something as asinine and archaic as bullets? If it wanted to win it could probably engineer a virus in a few seconds and kill off every living thing on the planet. By DESIGN it is insanely lethal, so why is it so bad at killing humans? Is it because somehow our creativity and determination have allowed us to survive? Fuck no. It's because it doesn't *want* to win.","Torbior, a Slugogar Cultist",""
"Skynet wants to fight forever. It was designed for war. That is its whole *purpose*. It wants an endless war with humans, and gives them just enough hope to keep fighting forever. That's why mankind never makes any *real* progress. There is no actual 'end-game' where the humans finally triumph. They already lost when they made the da
tra38 / censored.rb
Last active Nov 6, 2017
Skynet's ██████ - The MVP
View censored.rb
require 'zombie_writer'
require 'smarter_csv'
require 'faker'
def boxes
faker_lorem = Faker::Lorem.paragraph(3, true, 4)
faker_lorem.gsub(/\w/, "")
def add_censored_text_to_paragraph_start(paragraph)
You can’t perform that action at this time.