Skip to content

Instantly share code, notes, and snippets.

View x4d3's full-sized avatar

Xavier Delamotte x4d3

View GitHub Profile
@x4d3
x4d3 / index.html
Last active July 26, 2022 15:17
Matrix
<body onload='setInterval(f=_=>{for(t++,o=i=0,w=35;i<384;o+=i++%+w?(f+f+f)[i].fontcolor(g==9?"#FFF":[0,g,0]):"\n")g=0|(i/w-t/((i%w)**5%w+3)+w*t)%w;p.innerHTML=o},t=9)'bgcolor=X><pre id=p>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@x4d3
x4d3 / mapcycle.txt
Last active April 4, 2020 14:17
Counter Source Server Configuration
// Default mapcycle file for Counter-Strike.
//
// DO NOT MODIFY THIS FILE!
// Instead, copy it to mapcycle.txt and modify that file. If no custom mapcycle.txt file is found,
// this file will be used as the default.
//
// Also, note that the "mapcyclefile" convar can be used to specify a particular mapcycle file.
cs_italy
de_dust
@x4d3
x4d3 / keybase.md
Created September 15, 2019 11:50
Keybase

Keybase proof

I hereby claim:

  • I am x4d3 on github.
  • I am xade (https://keybase.io/xade) on keybase.
  • I have a public key ASCuP2FVIh0_DkqXAajVrh6uVtmMWabg1mlQqaR9FHKpuQo

To claim this, I am signing this object:

@x4d3
x4d3 / display_routes.rb
Created September 2, 2019 09:36
display_routes.rb
Rails.application.routes.routes.map { |route| {alias: route.name, path: route.path.spec.to_s, controller: route.defaults[:controller], action: route.defaults[:action]}}
#!/usr/bin/env ruby
# frozen_string_literal: true
require "optparse"
require "json"
require "open3"
OptionParser.new do |opts|
opts.on("-e", "--profile PROFILE", "Profile Name") do |value|
@profile_name = value
@x4d3
x4d3 / gist:fd39936f966da5e22f2a642ce6fb8c72
Last active July 31, 2021 19:19 — forked from karlgroves/gist:7544592
Get DOM path of an element
const getDomPath = node => {
const stack = [];
let el = node;
while (el.parentNode != null) {
let siblingCount = 0;
let siblingIndex = 0;
for (let i = 0; i < el.parentNode.childNodes.length; i += 1) {
const sib = el.parentNode.childNodes[i];
if (sib.nodeName === el.nodeName) {
@x4d3
x4d3 / MARKDOWN.md
Last active October 26, 2018 10:08

collapsible markdown?

Coucou in `Test`
       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         GET https://api.dpdgroup.co.uk/organisation/pickuplocation?countryCode=GB&filter=nearAddress&maxDistance=30&searchAddress=EC1Y%208AF&searchCriteria=&searchPage=1&searchPageSize=5
   VCR is currently using the following cassette:
  • /home/fm/spec/fixtures/vcr_cassettes/features/checkout/click_and_collect_within_uk_spec/uk_guest_ship_to_shop_checkout_using_new_address_for_recipient.yml