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
private string doThis(){ | |
return kek; | |
} |
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
var inputs = document.getElementsByTagName("input"); | |
var checkboxes = []; | |
for (var i = 0; i < inputs.length; i++) { | |
if (inputs[i].type == "checkbox") { | |
checkboxes[checkboxes.length] = inputs[i]; | |
} | |
} |
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 myFunction() { | |
var form = FormApp.create("Superlatives"); | |
var array = // PUT YOUR NAMES HERE | |
for(var i = 0; i<array.length; i++){ | |
var item = form.addParagraphTextItem(); | |
item.setTitle(array[i]); | |
} | |
Logger.log(breakUpString("hello,goodbye")); |
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 createImage(coordinates){ | |
var xPos = coordinates[0]; | |
var yPos = coordinates[1]; | |
var image = document.createElement("img"); | |
image.src = ;// add image file reference here | |
// set their position | |
image.style.top = yPos + "px"; | |
image.style.left = xPos + "px"; |
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
var ss = SpreadsheetApp.getActiveSpreadsheet(); // this is meant to run inline google appsscript - you'll have to use a different get method if you don't want that | |
var sheet = ss.getSheets()[0]; // assumes sheet 1 | |
var names = sheet.getRange(2,2,sheet.getLastRow()-1,2).getValues(); | |
Logger.log(names); | |
if (names.length % 2 != 0) { | |
//alert("You must have an even number of names. You currently have " + names.length + " names."); | |
} else { |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Media; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace GetJot |
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
// this is designed for a 2 columns, n rows range with the addresses in column with index 0 | |
var addresses = SpreadsheetApp.openByUrl("YOUR URL HERE"). | |
getSheetByName("Assignments").getRange("YOUR RANGE HERE").getValues(); // there are several formats for range - your choice | |
//Logger.log(addresses[0][1]) | |
function searchJson(data){ | |
data = JSON.parse(data); |
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
// returns latlng from Google API | |
function GEOCODE(input){ | |
var data = JSON.parse(queryGoogle(input)); | |
var location = data.results[0].geometry.location; | |
return location.lat + ", " + location.lng; | |
} |
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
let start = 1; | |
let end = 123456789; | |
let evenCount = 0; | |
let oddCount = 0; | |
for (let i = start; i <= end; i++) { | |
if (isEven(sumDigits(i))) { | |
evenCount++; |
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
console.log("Go to https://raw.githubusercontent.com/bencooper222/championgg-power-parser/master/main.prod.js for the latest version") |
OlderNewer