Skip to content

Instantly share code, notes, and snippets.

View adminy's full-sized avatar
🍓
Making Magic using Logic

Adminy adminy

🍓
Making Magic using Logic
View GitHub Profile
@adminy
adminy / nct.js
Created March 10, 2022 20:01
nct.ie Dates ... sorted by fastest
// call it until you get error
document.getElementById('showMoreStations').click()
const select = document.getElementById('nctCentresDropdown')
const options = []; for (const child of select.children) { options.push(child) }
const selectedIndex = options.findIndex(option => option.selected)
const magic = localStorage['magic'] ? JSON.parse(localStorage['magic']) : []
magic.push([options[selectedIndex].innerText, document.getElementsByClassName('owl-item active')[0].innerText.replace('\n', ' ')])
localStorage['magic'] = JSON.stringify(magic)
select.value = options[selectedIndex + 1].value
document.getElementsByTagName('form')[0].submit()
@adminy
adminy / index.html
Last active November 4, 2022 22:43
JSX Real DoM Magic Framework
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Site Title</title>
<link href="https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
/*--------------------------------------------------------------------------
INTRINS.H
Intrinsic functions for C51.
Copyright (c) 1988-2004 Keil Elektronik GmbH and Keil Software, Inc.
All rights reserved.
--------------------------------------------------------------------------*/
#ifndef __INTRINS_H__
#define __INTRINS_H__
theme = "dark_plus"
[keys.normal.'space'.'space']
# Extensions using custom script
# Interactive search in current working directory
s = ":pipe-to helix-ext search --current"
# Interactive search in current working directory (include path name in the search)
S = ":pipe-to helix-ext search --current-inc-path"
# Interactive search in current git directory
w = ":pipe-to helix-ext search --workspace"