Skip to content

Instantly share code, notes, and snippets.

View CvX's full-sized avatar

Jarek Radosz CvX

View GitHub Profile
@CvX
CvX / test2.js
Created September 2, 2022 08:20
class X {
@test prop = 1;
get something() {
return 1;
}
}
@CvX
CvX / test.js
Created September 2, 2022 08:19
class X {
@test prop = "";
get something() {
return 1;
}
}
@CvX
CvX / download.rb
Created July 20, 2020 16:08
soup backup
#!/usr/bin/env ruby
# frozen_string_literal: true
require "nokogiri"
require "httparty"
require "pathname"
require "fileutils"
class RetryFileError < StandardError; end;

Keybase proof

I hereby claim:

  • I am cvx on github.
  • I am cvxpl (https://keybase.io/cvxpl) on keybase.
  • I have a public key ASAmnlHXlzEwI_-nLyHuBSGzqdpp5IRKg2bWTuQmec85_go

To claim this, I am signing this object:

@CvX
CvX / policy.md
Created August 31, 2019 14:11
Spotify Playlist Notifier Bot privacy policy

All messages sent to Spotify Playlist Notifier Bot are stored by Facebook. The owner of Spotify Playlist Notifier Bot has access to these messages, but will not exercise that access.

@CvX
CvX / dom-dump.js
Last active November 24, 2020 22:59
(function() {
let sanitizeTree = (tree) => {
let walk = document.createTreeWalker(tree);
let node;
while (node = walk.nextNode()) {
if (node.nodeType === Node.TEXT_NODE && node.textContent.trim() !== '') {
if (node.parentNode && (node.parentNode.tagName || '').toLowerCase() === 'script') {
node.textContent = '// 🙂';
} else {
@CvX
CvX / policy.md
Last active February 13, 2019 04:21
Messenger Ping Bot Privacy Policy

All messages sent to Messenger Ping Bot are stored by Facebook. The owner of Messenger Ping Bot has access to these messages, but will not exercise that access.

[2019-01-21 12:32:43.753] [info] Checking for update
[2019-01-21 12:32:47.149] [info] Found version 2.27.1 (url: caprine-setup-2.27.1.exe)
[2019-01-21 12:32:47.150] [info] Downloading update from caprine-setup-2.27.1.exe
[2019-01-21 12:32:47.188] [info] No cached update info available
[2019-01-21 12:32:47.194] [info] Download block maps (old: "https://github.com/sindresorhus/caprine/releases/download/v2.26.0/caprine-setup-2.26.0.exe.blockmap", new: https://github.com/sindresorhus/caprine/releases/download/v2.27.1/caprine-setup-2.27.1.exe.blockmap)
[2019-01-21 12:32:48.039] [info] File has 1224 changed blocks
[2019-01-21 12:32:48.058] [info] Full: 43,031.11 KB, To download: 25,546.79 KB (59%)
[2019-01-21 12:32:49.158] [info] Differential download: https://github.com/sindresorhus/caprine/releases/download/v2.27.1/caprine-setup-2.27.1.exe
[2019-01-21 12:32:49.345] [info] Redirect to https://github-production-release-asset-2e65be.s3.amazonaws.com/42574339/8d8ac280-1ccf-11e9-988d-bb3b217fbeea
[2019-01-21 12:33:25.
@CvX
CvX / controllers.application.js
Last active November 6, 2018 10:47 — forked from sergiferran/controllers.application.js
WhiteSpace Control error
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
value: 'abc\ntest here\nAlso here',
values: Ember.computed('value', function(){
return (this.get('value') || '').split('\n');
})
});
@CvX
CvX / controllers.application.js
Last active September 1, 2017 11:47
input value reset on class change
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
dynamicClass: 0,
actions: {
updateClass() {
this.incrementProperty('dynamicClass');
},