Skip to content

Instantly share code, notes, and snippets.

View ShlomoCode's full-sized avatar

Shlomo ShlomoCode

  • Israel
View GitHub Profile
<?xml
version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:podcast="https://podcastindex.org/namespace/1.0" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>עושים תוכנה Osim Tochna</title>
<link>https://www.osimhistoria.com/software</link>
<description><![CDATA[בועז לביא מגיש פודקסט על קוד, שפות תכנות, באגים היסטוריים ולמידת מכונה. "תוכנה זוללת את העולם", קבע המהנדס והיזם האמריקאי מארק אנדריסן. ואין ספק שזה נכון. זהו פודקאסט למפתחים ולמפתחות, ולכל מי שרוצה לדעת ממה עשוי עולמנו המפוקסל, זה שנבלע בבטן האלגוריתם.<br /><br />עמית בן דור, מייסד הפודקאסט (לצד חן פלדמן) יתארח בפרקים נבחרים]]></description>
<atom:link href="https://www.spreaker.com/show/4221323/episodes/feed" rel="self" type="application/rss+xml"/>
<language>he</language>
<category>Technology</category>
@ShlomoCode
ShlomoCode / a.js
Last active January 16, 2023 22:10
השמעת צליל מיד אחרי הקלטה ללא המתנה מודול API
await call.read([{
type: 'system_message',
data: 'M1166' // ביפ תחילת הקלטה
}], 'tap', { sec_wait: 0.1, max: 0, read_none: true });
// ==UserScript==
// @name אישור לפני נתינת דיסלייק
// @version 0.2
// @author @ShlomoCode
// @match https://mitmachim.top/*
// ==/UserScript==
$(window).on('action:post.toggleVote', (e, d) => {
if (d.delta === -1 && d.unvote === false) {
if (!confirm('האם אתה בטוח שברצונך לתת דיסלייק?')) {
$(`[data-pid="${d.pid}"]`).find('[component="post/downvote"]').click();
@ShlomoCode
ShlomoCode / ממתן התגובות לפורום NodeBB
Last active July 8, 2022 13:41
סקריפט להסרת סימני שאלה וקריאה מוגזמים בשליחת פוסט/נושא בפורומי NodeBB
function RemovesBullshits() {
const inputs = [$('[class="title form-control"]'), $('.write')];
let isRemoved;
for (let i = 0; i < inputs.length; i++) {
const regex = new RegExp(`([\?!]{${i === 0 ? '1' : '2'}})([\?!]+)`, 'gm');
if (regex.test(inputs[i].val())) {
const inputOld = inputs[i].val();
const inputNew = inputOld.replaceAll(regex, '$1');
inputs[i].val(inputNew);
isRemoved = true;
javascript: (()=>{
if (/^https?:\/\/github\.com\/[A-z-_]+\/[A-z-_]+/.test(location.href)) {
open(location.href + '/generate');
} else {
alert('Repo Not Found!');
}
})()