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
function Get-LsGrep { | |
[Alias("lgrep")] | |
[CmdletBinding()] | |
param ( | |
[Parameter(ValueFromPipeline)] | |
[System.Array] | |
$lsOutput, | |
# Parameter help description | |
[Parameter(Position=1)] | |
[System.String] |
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
import random | |
def create_rick_and_morty_adventure(input_string: str): | |
""" This is a method that grabs random words from a string """ | |
# First create a list from the input string | |
start_list = input_string.split() |
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
import unittest | |
import function_library as fl | |
class Test_FunctionLibrary(unittest.TestCase): | |
""" | |
Test function library in here | |
""" |
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
function chooseMyUberDinner() { | |
var listofplaces = $('.eb').children | |
var listofopportunities = [] | |
for (var place in listofplaces) { | |
var currentplace = listofplaces[place] | |
if (currentplace.children === undefined) { |
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
function getBeerApiGET (callback) { | |
var request = require('request'); | |
request('https://api.punkapi.com/v2/beers/random', function (error, response, body) { | |
if (!error && response.statusCode == 200) { | |
callback(body); // Print the google web page. | |
} | |
}); | |
}; | |
var getBeer = new Promise(function(resolve, reject) { |
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
import json | |
import urllib.request as urx | |
import sys | |
import keyboard | |
# rl -X PUT "https://api.spotify.com/v1/me/tracks?ids=ssadasdasd" -H "Accept: application/json" | |
globalauth = "Bearer TOKEN" | |
isquit = False |
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
import discord | |
import asyncio | |
import random | |
client = discord.Client() | |
@client.event | |
async def on_ready(): | |
print("Ready!") |