Skip to content

Instantly share code, notes, and snippets.

View seyyah's full-sized avatar

seyyah seyyah

View GitHub Profile
@seyyah
seyyah / programmer.md
Created May 9, 2026 16:33 — forked from tamnd/programmer.md
The Programmer After AI

The Programmer After AI

Programming used to leave fingerprints.

A person who wrote a piece of code had usually spent enough time inside it to know something about it. Not everything, and often less than they claimed, but enough to carry some memory of the choices. They had named the variables, moved the data around, found the missing branch, stared at the error, and returned to the same file often enough that the program had passed through them.

That link has weakened. A programmer can now produce a large diff without having lived with the decisions inside it. The code can arrive with good names, reasonable structure, plausible tests, and a calm explanation of the tradeoffs. It can look considered before anyone has really considered it.

This changes the job.

@seyyah
seyyah / .lintr
Last active March 9, 2026 16:32
lintr
linters: list()
encoding: "UTF-8"
exclusions: list()
exclude: "# nolint"
exclude_start: "# nolint start"
exclude_end: "# nolint end"
import math
import numpy as np
from typing import Dict, List, Tuple, Any, Optional
class BunderMatchingEngine:
"""
Bunder - B2B Firma Eşleştirme için Çok Boyutlu Benzerlik Hesaplama Motoru
İşletmeler arası eşleştirme için background, goals, interests ve location
import { Browser, Page } from 'puppeteer';
async function test(browser: Browser, page: Page) {
const sleep = async (ms: number) => {
await new Promise((resolve) => setTimeout(resolve, ms));
};
// Full puppeteer API is available
await page.goto("https://next.sadeapp.com/login", { waitUntil: "load" });
await sleep(2000);
@seyyah
seyyah / getColourfulness.m
Created March 7, 2022 11:31 — forked from zabela/getColourfulness.m
Algorithm to measure images colourfulness, adapted from "Measuring colourfulness in natural images" (Hasler and Susstrunk, 2003) http://infoscience.epfl.ch/record/33994/files/HaslerS03.pdf
function C = getColourfulness( im )
%
% C = getColourfulness( im )
%
% MATLAB algorithm implementation of the
% "Measuring colourfulness in natural images"
% (Hasler and Susstrunk, 2003)
%
% Input:
% im - image in RGB
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Date;max;min;avg;td;nem;windd;winds;pres;PM10;PM25;NO2;NOX;O3;CO
1.01.2016;2.2;-2.5;-0.6;-7.1;62.1;247.5;6.3;1023.2;54.86;41.3;150.01;287.78;22.4;1335.67
2.01.2016;3.3;-2;1;-11.7;37.9;202.5;15.8;1022.5;55.48;23.02;126.06;230.89;33.93;856.64
3.01.2016;5.6;-0.2;1.4;-7.5;54.4;225;8.8;1022.3;64.3;35.03;142.29;298.62;28.34;1359.19
4.01.2016;11.3;-0.1;7.7;-1;53.7;202.5;10.5;1008.6;62.74;39.2;206.63;416.66;13.69;1588.17
5.01.2016;14.2;8.2;11.6;3.1;56.6;225;7.3;1005.8;59.57;29.14;178.73;355.91;16.3;1537.13
6.01.2016;10.1;7.7;9.1;5.9;80.6;112.5;3.9;1012.1;48.57;30.92;137.55;273;15.59;1127.4
7.01.2016;20.9;8.6;17.3;4.1;42.3;202.5;8.5;999.7;78.2;42.03;195.56;447.67;6.47;1795.8
8.01.2016;16.4;6.1;8.8;4.8;79.3;292.5;6.4;1005.1;43.47;28.67;160.83;380.96;10.48;1550.73
10.01.2016;15.9;5.4;13;-4.1;30.2;202.5;19.1;1016.4;51.74;25.38;136.52;219.79;28.84;767.75

There are several approaches

  • Mount Google Drive in local Colab VM
  • Upload and download via browser
  • Use colab_util.py in python script
@seyyah
seyyah / devise.rb
Created January 2, 2020 07:35 — forked from bearded-avenger/devise.rb
Rails - SSO - WordPress - Authenticating against a WordPress install from a Rails site using oAuth
config.omniauth :wordpress_hosted, ENV['SSO_KEY'], ENV['SSO_SECRET'],
strategy_class: OmniAuth::Strategies::WordpressHosted,
client_options: { site: ENV['SSO_URL'] }