Skip to content

Instantly share code, notes, and snippets.

{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
subprocess32 = python38Packages.buildPythonPackage rec {
pname = "subprocess32";
version = "3.5.4";
src = python38Packages.fetchPypi {
inherit pname version;
sha256 =
#!/usr/bin/bash
# install dependencies
sudo add-apt-repository ppa:neovim-ppa/stable
sudo add-apt-repository ppa:lazygit-team/release
sudo apt-get update
sudo apt-get install -y git \
curl \
zsh \
direnv \
import { useEffect } from "react";
const useOnClickOutside = (ref, handler) => {
useEffect(() => {
const listener = (event) => {
if (!ref.current || ref.current.contains(event.target)) {
return;
}
handler(event);
import { useEffect } from "react";
const useOnClickOutside = (ref, handler) => {
useEffect(() => {
const listener = (event) => {
if (!ref.current || ref.current.contains(event.target)) {
return;
}
handler(event);
import PropTypes from "prop-types";
import { PureComponent } from "react";
class Delayed extends PureComponent {
constructor(props) {
super(props);
this.state = { hidden: true };
}
componentDidMount() {
model = Sequential()
model.add(Dense(5, input_shape = (10,)))
model.add(Dense(1))
model.add(Activation('sigmoid'))
model.compile(loss='binary_crossentropy',
optimizer= 'sgd',
metrics=['binary_accuracy', 'fmeasure', 'precision', 'recall'])
history = model.fit(X_train, Y_train,
ebony chris
gotta go okay i
ok i en.wikipedia.org wiki
my boss https en.wikipedia.org
my mum my mom
ok i'm okay i'm
this shit wonderful human
https youtu.be ebony i
my bro mean that's
ebony chris
gotta go okay i
ok i en.wikipedia.org wiki
my boss https en.wikipedia.org
my mum my mom
ok i'm okay i'm
this shit wonderful human
https youtu.be ebony i
my bro mean that's
ebony chris
in other news https en.wikipedia.org wiki
in the states on my way
ok i'm going yeah i mean
gotta go x wonderful human being
told me to the same way
i actually don't i mean that's
i feel so but i also
tell you about my god i
data <- readLines('~/Downloads/_chat.txt')
remove <- vector(mode = 'logical', length = length(data))
for (i in 1:length(data)){
if (!str_detect(data[i], ': Christopher Grainger: |: Ebony Ruggero: ')) {
data[i-1] <- str_c(data[i-1], data[i], sep = ' ')
remove[i] <- TRUE
} else {
remove[i] <- FALSE
}
}