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 working = true; | |
const coffee = { | |
coffeeAmount: 10, | |
drink: () => { coffee.coffeeAmount -= 5; }, | |
[Symbol.toPrimitive]() { | |
return coffee.coffeeAmount === 0 ? "empty" : coffee.coffeeAmount | |
}, | |
refill: () => { |
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 subprocess | |
import json | |
script_name = "typescript_code.ts" | |
json_data = json.dumps({"key": "value"}) | |
try: | |
result = subprocess.run( | |
["npx", "tsx", "getPageMd.ts", json_data], | |
cwd=os.path.join(os.getcwd(), "../other_directory/cmd_scripts/"), | |
capture_output=True, |
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
%pip install scipy matplotlib pandas | |
import numpy as np | |
import datetime | |
from matplotlib import pyplot as plt | |
from shapely.geometry import LineString | |
import matplotlib.dates as mdates | |
import matplotlib | |
from datetime import date | |
from dateutil.relativedelta import relativedelta |
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
javascript:(function() { | |
var dolchWords = "a all after always about apple home and am again around better baby horse away are an because bring back house big at any been carry ball kitty blue ate as before clean bear leg can be ask best cut bed letter come black by both done bell man down brown could buy draw bird men find but every call drink birthday milk for came fly cold eight boat money funny did from does fall box morning go do give don't far boy mother help eat going fast full bread name here four had first got brother nest I get has five grow cake night in good her found hold car paper is have him gave hot cat party it he his goes hurt chair picture jump into how green if chicken pig little like just its keep children rabbit look must know made kind Christmas rain make new let many laugh coat ring me no live off light corn robin my now may or long cow Santa Claus not on of pull much day school one our old read myself dog seed play out once right never doll sheep red please open sing only door shoe ru |
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
package com.github.rafael09ed.nMMModProfileExporter; | |
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* @author Rafael |
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
/** | |
* FalloutNMMModListParser.java | |
* Purpose: Generates List of mods w/ links do downloads from a profile modlist.xml file | |
* specifically formatted for reddit | |
* | |
* @author Rafael09ED | |
* @version 1.0 2/15/2017 | |
*/ | |
import org.w3c.dom.Document; |
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
//Making Interfaces Like this: | |
public interface Data_TypeStringGenericActable<T> { | |
T act(Data_TypeString data); | |
} | |
public interface Data_TypeUriGenericActable<T> { | |
T act(Data_TypeURI data); | |
} | |
//So I can make methods like this: | |
public static <T> T genericSwitch(Data data, | |
Data_TypeStringGenericActable<T> stringActable, |
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 javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.image.BufferedImage; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.List; |