Skip to content

Instantly share code, notes, and snippets.

View fayimora's full-sized avatar
🕺

Fayi FB fayimora

🕺
  • London, England
View GitHub Profile
//> using toolkit latest
//> using dep com.lihaoyi::pprint::0.8.1
//> using dep com.lihaoyi::mainargs::0.5.0
//> using dep com.lihaoyi::fansi::0.4.0
import mainargs.{arg, main, Flag, ParserForMethods}
import pprint.{pprintln => pp}
import scala.util.Try
import scala.util.Failure
import scala.util.Success
@fayimora
fayimora / London Boroughs Points.kml
Created April 1, 2016 14:31
Process London Boroughs kml files
<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns='http://www.opengis.net/kml/2.2'>
<Document>
<name>London Boroughs Points</name>
<Placemark>
<name>Barking and Dagenham</name>
<description><![CDATA[http://www.lbbd.gov.uk/]]></description>
<styleUrl>#icon-22</styleUrl>
<Point>
<coordinates>0.15559,51.561185,0.0</coordinates>
@fayimora
fayimora / tracker-list.txt
Created February 11, 2024 23:04 — forked from FFY00/tracker-list.txt
Torrent Trackers
http://104.28.1.30:8080/announce
http://104.28.16.69/announce
http://107.150.14.110:6969/announce
http://109.121.134.121:1337/announce
http://114.55.113.60:6969/announce
# Ring the bell if any background window rang a bell
set -g bell-action any
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# Keep your finger on ctrl, or don't
bind-key ^D detach-client
# Create splits and vertical splits
-- local M = {}
-- M.config = function()
-- local lvim_lsp = require("lvim.lsp")
-- local metals_config = require("metals").bare_config()
-- metals_config.on_init = lvim_lsp.common_on_init
-- metals_config.on_exit = lvim_lsp.common_on_exit
-- metals_config.capabilities = lvim_lsp.common_capabilities()
-- metals_config.on_attach = function(client, bufnr)
-- lvim_lsp.common_on_attach(client, bufnr)
@fayimora
fayimora / twitter_fetcher.coffee
Created November 22, 2013 13:58
Code to fetch data from twitter. Written in Coffeescript. Stores data to a mongodb database.q
twitter = require('ntwitter')
mongo = require('mongodb')
user = process.env.MONGO_USER
password = process.env.MONGO_PASSWORD
dbHost = "127.0.0.1"
dbPort = mongo.Connection.DEFAULT_PORT
db = new mongo.Db("tweets", new mongo.Server(dbHost, dbPort, {}))
auth = new twitter(
consumer_key: '',
image: node:12
stages:
- prepare
- test
services:
- selenium/standalone-chrome
prepare:
stage: prepare
script:
<?xml version="1.0" encoding="UTF-8"?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright (C) 2019 Google Inc.
~
~ 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
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.euromonitor</groupId>
<artifactId>Via-Dataflow-Service</artifactId>
<version>1.0-SNAPSHOT</version>
#!/usr/bin/env bash
# Pipeline vars
PROJECT=my-project
BUCKET_NAME=my-bucket
TABLE={$PROJECT}:my-dataset.my-table
NODE_ADDRESSES=comma-separated-list-nodes
INDEX=my-index
DOCUMENT_TYPE=my-type