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
ScrapTF.Raffles.Pagination.LoadNext(); | |
ScrapTF.Raffles.Pagination.LoadNext(); | |
ScrapTF.Raffles.Pagination.LoadNext(); | |
var i = 0; | |
var list; | |
setTimeout(function() { | |
list = document.getElementById("raffles-list").children; | |
list = [].filter.call(list, function(j) { | |
if (j.getAttribute("style") == "") { |
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
if (process.version.startsWith("v6")) throw new Error("This Bot requires Node 7v+ because of async/await") | |
const Discord = require("discord.js") | |
const express = require("express") | |
const app = express() | |
const superagent = require("superagent") | |
//Config | |
let INVITE = process.env.INVITE || "", //An Infinite Invite to your discord server. | |
GUILD = process.env.GUILD || "", //The ID of the Guild for this invite ^ |
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 | |
function fibonacci($n) { | |
$current = 1; | |
$previous = 0; | |
for ($i = 0; $i < $n; $i++) { | |
yield $current; | |
$temporary = $current; | |
$current = $previous + $current; | |
$previous = $temporary; |
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
show dbs | |
// LIst Data Base | |
show collections | |
// List Collections | |
use test | |
// Select Db | |
db |
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
from tkinter import * | |
from tkinter import messagebox | |
import os,datetime,random,shutil | |
class transact(object): | |
def __init__(self): | |
self.transaction() | |
def transaction(self): | |
def deposit_(): | |
def deposit_entry(): |
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
#!/usr/bin/env bash | |
# | |
# Author: Stefan Buck | |
# License: MIT | |
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
# | |
# | |
# This script accepts the following parameters: | |
# | |
# * owner |
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
@commands.check(myfunction) | |
# Check against your own function that returns those able to use your command | |
@commands.has_role("name") | |
# Check if member has a role with the name "name" | |
@commands.bot_has_role("name") | |
# As above, but for the bot itself. | |
@commands.has_any_role("role1","foo","bar") |
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 | |
# File: /usr/local/bin/forge_deploy | |
# Before using add FORGETOKEN to env variables in .zshrc like: export FORGETOKEN="ey..." | |
. .forge | |
if [ $(curl -Li -X POST https://forge.laravel.com/api/v1/servers/$FORGE_SERVER_ID/sites/$FORGE_SITE_ID/deployment/deploy -o /dev/null -w '%{http_code}\n' -s -H "Accept: application/json" -H "Authorization: Bearer $FORGETOKEN") == "200" ] | |
then | |
echo "Queued for deployment" | |
else |