Skip to content

Instantly share code, notes, and snippets.

View knownasilya's full-sized avatar
🌒
And, behold, I come quickly; and my reward is with me.. Rev 22:12

Ilya Radchenko knownasilya

🌒
And, behold, I come quickly; and my reward is with me.. Rev 22:12
View GitHub Profile
@knownasilya
knownasilya / gist:5a1b79187cc8919ff49cf16bd2a80ad7
Created January 19, 2026 14:08
Here is the complete Semantic_Contextual_Scoring_OHI_V3 object for the X account @CaseyPutsch
{
"Classification": "Low-Risk / Borderline (Populist Nationalist / Anti-Establishment Campaign Content)",
"Confidence": "High (0.89)",
"Severity": "Low",
"Protected_categories_targeted": [
"None direct (indirect ethnic framing via immigration/remigration critiques, opposition to foreign influence/outsourcing)"
],
"Secondary_categories": [
"Buckeye/America First Nationalism (emphasis on Ohio/American jobs, culture preservation, anti-globalist priorities)",
"Anti-Immigration / Anti-H-1B Advocacy (critiques of foreign labor replacement, student visas draining wealth, remigration support)",
  const [size, toolbarRef] = useElementInlineResized<'small' | 'medium' | 'full', HTMLDivElement>({
    match: {
      small: 250,
      medium: 544,
      full: Infinity,
    },
  });
import {RefObject, useEffect, useRef} from 'react';
export default function useElementResized<T extends HTMLElement>(
check: (entry: ResizeObserverEntry, element: T) => boolean,
callback: (element: T) => void,
ref?: RefObject<T>
) {
const backupRef = useRef<T>(null);
const actualRef = ref ?? backupRef;
name: Integration Tests
on:
pull_request:
types: [synchronize, ready_for_review, labeled]
jobs:
integration_tests_on_code_review:
name: Integration Tests on Code Review
runs-on: ubuntu-latest
@knownasilya
knownasilya / machine.js
Last active June 30, 2021 15:53
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
import Controller from '@ember/controller';
const namedValues = (event) => {
const fields = Object.keys(event.target.elements).filter(key => Number.isNaN(parseInt(key, 10)))
const values = Object.fromEntries(fields.map(key => {
let element = event.target.elements[key];
let value = element.type === 'checkbox' ? element.checked : element.value
return [key, value];
}));
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
let index = 0;
export default class extends Component {
@tracked obj = {
index: 0
};
@knownasilya
knownasilya / machine.js
Last active September 29, 2020 13:45
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@knownasilya
knownasilya / controllers.application\.js
Created September 25, 2020 15:24
special char hash
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
@knownasilya
knownasilya / machine.js
Last active June 20, 2020 14:37
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions