Skip to content

Instantly share code, notes, and snippets.

View Core-commits's full-sized avatar
🏠
Working from home

Shiggy Core-commits

🏠
Working from home
View GitHub Profile
@Core-commits
Core-commits / App.css
Created July 1, 2020 12:51
Brick Hill CSS code
.flex-container,
.fp {
display: flex
}
.flex-container.flex-column,
.fp.flex-column {
flex-direction: column
}
[
{
"compiler-option-raw": true,
"display-compile-command": "gcc prog.c",
"display-name": "gcc HEAD",
"language": "C",
"name": "gcc-head-c",
"provider": 0,
"runtime-option-raw": false,
"switches": [
from bs4 import BeautifulSoup
import requests as r
import json
import re
def GetPost(url): # Get Post Text Title.
HTML1 = r.get(url).text
Game.on("initialSpawn", (player) => {
let zombie = new Bot("Zombie")
let outfit = new Outfit(zombie)
.body("#0d9436")
.torso("#694813")
.rightLeg("#694813")
Game.on("playerJoin", (player) => {
player.on("initialSpawn", async () => {
let VAR = 10
for (let i = 0; i < VAR; i++) {
player.topPrint(`Game starts in ${VAR - i} seconds.`)
console.log(VAR)
console.log(i)
await sleep(1000)
if (i == 9) {
Game.assingRandomTeam = true;
Team1Spawn = world.spawns.find(spawn => spawn.name === "Team1")
Team2Spawn = world.spawns.find(spawn => spawn.name==="Team2")
Team1 = "Team 1 name here";
Team2 = "Team 2 name here";
Game.on("playerJoin", (player) => {
if (player.team.name == Team1){
player.spawnPosition = Team1Spawn.position;
world.bricks.forEach(async (brick) => { // Finds all brick possible in the map.
if (brick.name == "Kill") { // Is the specific brick currently on named "Kill"?
brick.touching(debounce((p) => {
p.kill();
}), 500)
}
})
// MapChanger Simplified.
Owner = [1, 2] // Admins!
Game.command("changemap", (caller, args) => {
for (let elements of Owner) {
console.log(elements);
if (caller.userId == elements ){
@Core-commits
Core-commits / WaitForVanilla.lua
Created July 24, 2020 22:10
Support for Wait() function in vanilla lua
function wait(a)
if a == nil then a = 0.1 end
local sec = tonumber(os.clock() + a);
while (os.clock() < sec) do
end
end
print("hello!")
function moveBrick(name, interval, increment, x, y, z) {
world.bricks.find(brick => brick.name === name)
brickX = brick.position.x
brickY = brick.position.y
brickZ = brick.position.z
setInterval(function () {
for (brickX <= x; brickX+increment;) {
console.log(brick.position)
}