Skip to content

Instantly share code, notes, and snippets.

💭
twitter.com/impacts

Jack Committing

💭
twitter.com/impacts
  • England
Block or report user

Report or block Committing

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:a80b3bc57ec6883ed0f2d07df550dfa0
// Register Custom Post Type
function discord_post_type() {
$labels = array(
'name' => _x( 'Discords', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Discord', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Discords', 'text_domain' ),
'name_admin_bar' => __( 'Discord', 'text_domain' ),
'archives' => __( 'Discord Archives', 'text_domain' ),
'attributes' => __( 'Discord Attributes', 'text_domain' ),
@Committing
Committing / color-dates.js
Last active Jul 31, 2019
Youtube styled & colored dates
View color-dates.js
function setDateColors() {
$('ytd-grid-video-renderer').each(function() {
var when = $(this).find('#metadata-line span:nth-child(2)');
var when_text = when.html();
when.css({
color: 'white',
padding: '0 4px',
borderRadius: '4px',
fontSize: '10px',
@Committing
Committing / minimize.css
Last active Jul 7, 2019
Reddit minimise large
View minimize.css
.res-nightmode .comment {
position: relative;
padding-left: 35px;
}
.res-nightmode a.expand {
display: block;
background-color: #333333;
position: absolute;
View asd.js
const Discord = require('discord.js');
const client = new Discord.Client();
// const config = require("./config.json");
const token = 'NTQ4OTA4ODk1MTU5MTg5NTA1.D1MiYw.Ge1txGCTjMj_UdLNzs5ADp82KoA';
// SteamTimeIdler Bot#2024
View anime-js3.js
/*
* anime.js v3.0.1
* (c) 2019 Julian Garnier
* Released under the MIT license
* animejs.com
*/
'use strict';
// Defaults
View sql.sql
SET @row_number:=1, @idcheck := 0;
select * from (
select @row_number:= if(@idcheck = steamtimeidler__messages.steam_id, @row_number + 1, 1) AS row_number, @idcheck:=steamtimeidler__steam_accounts.id as dummy, steamtimeidler__messages.* from steamtimeidler__messages
inner join steamtimeidler__steam_accounts on steamtimeidler__messages.steam_id = steamtimeidler__steam_accounts.id
where steamtimeidler__steam_accounts.user_id = " . (int) $user_id . "
order by steamtimeidler__messages.steam_id
View new.php
<!DOCTYPE html>
<html>
<head>
<title>Richard's Form Results</title>
<link rel="stylesheet" href="format.css" />
</head>
<body>
<p>The caller's name <?php echo (isset($_GET['empname']) ? htmlentities($_GET['empname']) : '[Not Found]');?> </p>
<p>The caller's employee ID <?php echo (isset($_GET['empid']) ? htmlentities($_GET['empid']) : '[Not Found]');?></p>
<p>What is the problem with the item <?php echo (isset($_GET['problem']) ? htmlentities($_GET['problem']) : '[Not Found]');?></p>
View new.html
<!DOCTYPE html>
<html>
<head>
<title>Richard's Form</title>
<link rel="stylesheet" href="format.css" />
</head>
<body>
<h1>Please enter some details of your issue below</h1>
@Committing
Committing / minify-error.js
Created Aug 17, 2017
JS File before minify
View minify-error.js
(function($){
var $et_window = $(window);
window.et_load_event_fired = false;
window.et_is_transparent_nav = $( 'body' ).hasClass( 'et_transparent_nav' );
window.et_is_vertical_nav = $( 'body' ).hasClass( 'et_vertical_nav' );
window.et_is_fixed_nav = $( 'body' ).hasClass( 'et_fixed_nav' );
jQuery.fn.reverse = [].reverse;
View example.php
<?php
class Language {
public $language = '';
public $phrases = array(
'UK' => array(
'hello' => 'Ello gov\'na ',
'goodbye' => 'Good day!'
You can’t perform that action at this time.