This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
document.addEventListener("DOMContentLoaded", function() { | |
var canvas = document.createElement('canvas'); | |
canvas.width = window.innerWidth; | |
canvas.height = window.innerHeight; | |
document.body.appendChild(canvas); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from https://chromium.woolyss.com/ | |
# and https://gist.github.com/addyosmani/5336747 | |
# and https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md | |
sudo apt-get update | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:canonical-chromium-builds/stage | |
sudo apt-get update | |
sudo apt-get install chromium-browser | |
chromium-browser --headless --no-sandbox http://example.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [{ "id": 102, "url": "unlimited-live-basic-english-classes-onlineaa" }, | |
{ "id": 111, "url": "unlimited-live-basic-english-classes-onlinebb" }] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define( 'DISALLOW_FILE_EDIT', true ); | |
define( 'DISALLOW_FILE_MODS', true ); | |
define( 'WP_AUTO_UPDATE_CORE', false ); | |
define('DISALLOW_FILE_MODS', true); | |
define( 'AUTOMATIC_UPDATER_DISABLED', true ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Better Comments | |
https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments | |
GitLens — Git supercharged | |
https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens | |
Git History | |
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory | |
Bracket Pair Colorizer 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.event_secondbanner .open-next-table').each(function(){ | |
var th = $(this); | |
th.click(function(){ | |
if(th.hasClass('active_row')){ | |
$('.event_secondbanner .open-next-table').removeClass('active_row'); | |
// hide all details rows | |
$('.ediatble-table').hide(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add role class to body | |
function jb_add_role_to_body($classes) { | |
if (is_user_logged_in()) { | |
foreach (wp_get_current_user()->roles as $user_role) { | |
$classes[] = 'role-'. $user_role; | |
} | |
} | |
return $classes; |
NewerOlder