This file contains hidden or 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
| package cf.striking.strikonomy | |
| import cf.striking.strikonomy.Main.Companion.db | |
| import cf.striking.strikonomy.Main.Companion.log | |
| import org.bukkit.Material | |
| import org.bukkit.entity.EntityType | |
| import org.bukkit.entity.Player | |
| import org.bukkit.event.EventHandler | |
| import org.bukkit.event.Listener | |
| import org.bukkit.event.block.BlockBreakEvent |
This file contains hidden or 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
| type strTree = | |
| St of int | |
| | Leaf of string | |
| | Tree of string * string * strTree list;; | |
| let rec trees acc tree = | |
| match tree with | |
| | Tree (_, _, c) -> acc @ [tree] @ (List.fold_left (trees) [] c) | |
| | _ -> acc;; | |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>The Docker</title> | |
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" | |
| crossorigin="anonymous"> | |
| <link rel="stylesheet" href="/static/css/styles.css"> | |
| </head> | |
| <body style="background-color: #e9ecef"> | |
| <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> |
This file contains hidden or 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
| #!/usr/bin/bash | |
| yum -y update | |
| yum -y install yum-utils | |
| yum -y groupinstall development | |
| yum -y install https://centos7.iuscommunity.org/ius-release.rpm | |
| yum -y install python36u python36u-pip python36u-devel |
This file contains hidden or 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
| class Main : JavaPlugin() { | |
| override fun onEnable() { | |
| server.pluginManager.registerEvents(MessageListener(), this) | |
| } | |
| override fun onDisable() {} | |
| override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean { | |
| if (sender !is Player || !args.isNotEmpty()) |
This file contains hidden or 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
| #include <iostream> | |
| #include <string> | |
| #include <cmath> | |
| using namespace std; | |
| //Functions | |
| //GeoCalc Functions | |
| float cylinderVolume(float rad, float hei){ | |
| float cylVol; |
This file contains hidden or 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
| //Pokéconsole Trial Libraries | |
| /* | |
| Types: | |
| 1 = Normal | |
| 2 = Fighting | |
| 3 = Flying | |
| 4 = Poison | |
| 5 = Ground | |
| 6 = Rock | |
| 7 = Bug |
This file contains hidden or 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
| import discord | |
| import asyncio | |
| client = discord.Client() #Creating the bot object | |
| @client.event #This is a convenient check that shows us some information about our bot when we start it up. | |
| async def on_ready(): | |
| print('Logged in as') | |
| print(client.user.name) | |
| print(client.user.id) |
This file contains hidden or 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
| import discord | |
| from discord.ext import commands | |
| import random | |
| description = '''An example bot to showcase the discord.ext.commands extension | |
| module. | |
| There are a number of utility commands being showcased here.''' | |
| bot = commands.Bot(command_prefix='?', description=description) | |
| def getRole(server: discord.Server, role_name: str): |
This file contains hidden or 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
| this.printHand = function() { | |
| var handCards = []; | |
| function checkName(card) { | |
| switch (card.getNumber()){ | |
| case 12: | |
| return "Queen"; | |
| break; | |
| case 13: | |
| return "King"; |
NewerOlder