Skip to content

Instantly share code, notes, and snippets.

View jamespearson's full-sized avatar
💭
Making the world a better place, one PR at a time.

James Pearson jamespearson

💭
Making the world a better place, one PR at a time.
View GitHub Profile
{ "fund": {
"title": "CushonMix medium risk/return ISA",
"description": "Spreading your money allows each individual fund to be slightly riskier, which helps boost projected returns, whilst still controlling the overall risk of the investment.\n\nThis means the CushonMix offers higher projected returns than alternative investment strategies with the same risk profile. Find out more about the CushonMix portfolios.\n\nRemember, you can set up as many separate ISA pots as you like with Cushon and they all sit in one main account behind the scenes. This is helpful if you want to ring-fence different pots for different savings goals, or to spread your money across different risk profiles.",
"summary": "This CushonMix portfolio spreads your money across a specially selected range of top-rated funds from our comparison tables.",
"riskLevel": "low",
"results": {
"mostLikely": {
"percent": 5.24,
"sample
{
"pages": [
{
"published_at": "2023-06-15T14:06:00.000Z",
"heading": "Can You (and Should You) Orgasm While Pregnant?",
"summary": "Is the Big “O” a go?",
"slug": "blog/orgasm-while-pregnant",
"locale": "en",
"children": [],
"featured": false,
@jamespearson
jamespearson / xbox.rb
Created December 28, 2021 16:45
Xbox Clip Downloader
require 'open-uri'
require 'nokogiri'
require 'net/http'
def _get(url:, raw: false)
res = Net::HTTP.get_response(URI(url))
raw ? res : Nokogiri::HTML(res.body.to_s)
end
page = _get(url: "https://xboxclips.co/mansizedrooster")
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<path stroke="black" stroke-width="1" width="300mm" d="M -0.734942 -52.083364000000003 L -0.735019 -52.083433999999997 -0.735134 -52.083508000000002 -0.735188 -52.083634000000004 -0.73525 -52.083705999999999 -0.735379 -52.08379 -0.735508 -52.083869 -0.735655 -52.083944000000002 -0.735754 -52.084037000000002 -0.735738 -52.084119000000001 -0.73562 -52.084181000000001 -0.735506 -52.084240999999999 -0.73538 -52.084308999999998 -0.735257 -52.084380000000003 -0.735095 -52.084443999999998 -0.734899 -52.084442000000003 -0.734717 -52.084442000000003 -0.734565 -52.084476000000002 -0.73441 -52.084504000000003 -0.734275 -52.084547999999998 -0.734138 -52.084609999999998 -0.734002 -52.084682999999998 -0.733869 -52.084738999999999 -0.733726 -52.084815999999996 -0.733577 -52.084857999999997 -0.733459 -52.084910000000001 -0.73334
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libpq-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz
tar -xvzf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286/
./configure --prefix=/usr/local
make
make install