I hereby claim:
- I am kvizdos on github.
- I am kvizdos (https://keybase.io/kvizdos) on keybase.
- I have a public key ASDaKebUWDeBJlnya8Ib8O_4R4djAglhavCTLHdZW1apsgo
To claim this, I am signing this object:
// ==UserScript== | |
// @name Promotion Blocker | |
// @description Disable Promotions | |
// @author Kenton | |
// @match https://twitter.com/* | |
// @include https://twitter.com/* | |
// ==/UserScript== | |
setInterval(function() { | |
var promotedTweets = document.querySelectorAll(".js-promoted-badge"); |
I hereby claim:
To claim this, I am signing this object:
"Express Boilerplate": { | |
"prefix": "ebp", | |
"body": [ | |
"// Install body-parser and Express", | |
"const express = require('express')", | |
"const app = express()", | |
"", | |
"var bodyParser = require('body-parser')", | |
"", | |
"// Use req.query to read values!!", |
#deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted | |
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted |
<html> | |
<head> | |
<title>this is bad formatting</title> | |
</head> | |
<body> | |
<p>Hello World :D</p> | |
<p>How are you today?</p> | |
<div> | |
<h1>Hello</h1> |
@EventHandler | |
public void onLeashEvent(PlayerLeashEntityEvent e) { | |
Player p = e.getPlayer(); | |
if(e.getEntity().getType().toString().equals("SHEEP")) { | |
p.sendMessage("You have captured a sheep!"); | |
} | |
if(e.getEntity().getType().toString().equals("PIG")) { | |
p.sendMessage(ChatColor.LIGHT_PURPLE + "You have captured a pig!"); |
@EventHandler | |
public void blockExEvent(PlayerBedEnterEvent e) { | |
Player p = e.getPlayer(); | |
Block b = e.getBed(); | |
b.breakNaturally(); | |
e.setCancelled(true); | |
p.sendMessage("No no no!"); | |
} | |
// IN YOUR ON ENABLE: | |
getCommand("<cmd>").setExecutor(new <cmd-path>()); | |
// IN YOUR <cmd-path> FILE: | |
// MAKE SURE TO IMPLEMENT CommandExecutor! | |
@Override | |
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { | |
Player p = (Player) sender; | |
if(cmd.getName().equalsIgnoreCase("<cmd>") && sender.hasPermission("<perm-node>")) { | |
if(args.length == 0) { |
// Just remember to use this in your main class / where your calling the method from | |
<class-name> <class-name-abbr> = new <class-name>(); | |
// To call a method, Ill use sendConsoleMsg() as a example: | |
<class-name-abbr>.sendConsoleMsg("Hello!"); | |
// Or | |
<class-name-abbr>.<method>; |
// ADD THIS TO YOUR ONENABLE() | |
getServer().getPluginManager().registerEvents(new <trigger>(), this); | |
// IN YOUR EVENT CLASS: | |
public class <event-name> implements Listener { | |
@EventHandler | |
public void <trigger>(<event> e) { | |
// EVENT STUFFS! | |
} |