Skip to content

Instantly share code, notes, and snippets.

View anabelle's full-sized avatar

Anabelle Handdoek anabelle

View GitHub Profile
@anabelle
anabelle / keybase.md
Created August 25, 2024 17:29
keybase.md

Keybase proof

I hereby claim:

  • I am anabelle on github.
  • I am heyanabelle (https://keybase.io/heyanabelle) on keybase.
  • I have a public key ASDxC8FriYrmkcKn8eFCXfDpac_t04WRDwutvFXZ2Ybwdwo

To claim this, I am signing this object:

https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Test-Logo.svg/1200px-Test-Logo.svg.png
https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg
https://images.unsplash.com/photo-1494548162494-384bba4ab999?ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8c3VucmlzZXxlbnwwfHwwfHw%3D&ixlib=rb-1.2.1&w=1000&q=80
https://www.w3schools.com/w3css/img_lights.jpg
https://www.w3schools.com/howto/img_forest.jpg
https://www.w3schools.com/howto/img_snow.jpg
https://www.w3schools.com/howto/img_mountains.jpg
https://www.w3schools.com/howto/img_nature.jpg
https://www.w3schools.com/howto/img_fjords.jpg
https://www.w3schools.com/css/img_5terre_wide.jpg
! function(window) {
function _log(msg) {
console.error(msg)
}
function _pad(character, num, size) {
for (var s = "" + num, c = character || "0"; s.length < size;) s = c + s;
return s
}
<script>
console.log("Block script loaded");
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubeIframeAPIReady() {
<div class="slider-hexagonos">
<ul class="my-slider">
<?php
if ( block_rows( 'hexagonos' ) ):
while ( block_rows( 'hexagonos' ) ) :
block_row( 'hexagonos' );
$titulo = block_sub_value( 'titulo' );
$link = block_sub_value( 'link' );
$texto = block_sub_value( 'texto' );
$imagen_fija = block_sub_value( 'imagen-fija' );
.layers_container {
margin-bottom: 10px;
width: 100%;
padding-top: 100%;
height: 0;
box-sizing: content-box;
position: relative;
transform: translateY(0);
}
// Generates images from DNA - returns all of them in HTML
Tree.prototype.generateTreeImage = function(dna) {
var url = "https://studio.ethereum.org/static/img/cryptopizza/";
dna = dna.toString();
var basis = (dna.substring(0, 2) % 2) + 1;
var cheese = (dna.substring(2, 4) % 10) + 1;
var meat = (dna.substring(4, 6) % 18) + 1;
var spice = (dna.substring(6, 8) % 7) + 1;
var veggie = (dna.substring(8, 10) % 22) + 1;
@anabelle
anabelle / cloudflare_pause.js
Created November 20, 2017 17:19
A node.js script to change the paused status of all the sites under a cloudflare account at once.
// run 'npm install cloudflare' before running this script
var cf = require('cloudflare')({
email: '[email protected]', // Your cloudflare account email
key: 'yourapikey' // Your cloudflare api key, found in CLoudflare > My profile
});
cf.zones.browse({per_page: 60}).then( function( resp ){
for (var i = resp.result.length - 1; i >= 0; i--) {
console.log( "domain: ", resp.result[i].name );
cf.zones.edit( resp.result[i].id, { paused: true } ).then( function( resp ){ // change to paused: false when you want to unpause.
@anabelle
anabelle / cloudflare_control.rb
Created November 20, 2017 15:36 — forked from colinbm/cloudflare_control.rb
Pause or resume all your CloudFlare sites at once. Useful if CloudFlare is misbehaving.
#!/usr/bin/env ruby
require 'cloudflare'
module CloudFlare
class Connection
public :send_req
end
end
@anabelle
anabelle / .htaccess
Created September 25, 2014 19:30
h5bp htaccess
# Apache Server Configs v2.2.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
# to the main server config file (usually called `httpd.conf`), you should add
# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html.
# ##############################################################################
# # CROSS-ORIGIN RESOURCE SHARING (CORS) #
# ##############################################################################