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 ruby | |
step = "#" | |
space = "." | |
level = "\n" | |
steps = (ARGV.shift || 10).to_i | |
spaces = steps - 1 | |
loop do |
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
#include <stdio.h> | |
#define A 65 | |
#define a 97 | |
int main(int argc, char**argv) | |
{ | |
int i = 1; | |
while(i < argc) | |
{ |
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
requests==2.24.0 | |
beautifulsoup4==4.9.3 | |
# setup: pip install -r requirements.txt |
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 com.google.gson.Gson; | |
import java.io.*; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.SQLException; | |
public class LoadFamilyDatabase | |
{ |
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 NUnit.Core; | |
using NUnit.Framework.Constraints; | |
namespace oneshore.qa.testrunner | |
{ | |
class TestRunner | |
{ | |
public static void Main(String[] args) | |
{ |
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 selenium import webdriver | |
driver = webdriver.Chrome() | |
driver.get("https://one-shore.com/") | |
element = driver.find_element_by_css_selector(".oneshore.logo") | |
element.screenshot("logo.png") | |
driver.quit() | |
from PIL import Image |
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 selenium | |
pip install pandas | |
pip install openpyxl | |
pip install sqlalchemy | |
pip install mysql-connector-python | |
pip install beautifulsoup4 | |
pip install requests |
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
/** | |
* rabbithole.js | |
* | |
* There are 100 holes, all in a row, and a long tunnel connecting them. | |
* A rabbit lives down there, and you're trying to catch him. | |
* The rabbit starts down 1 one of the holes, but you don't know which. | |
* Every time you look down into a hole the rabbit moves. | |
* But he only moves one hole -- either left or right. | |
* How can you find the rabbit? And how long will it take? | |
* |
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
## podio_api_example.py | |
## Download podio python library from https://github.com/podio/podio-py | |
## copy podio-py/pypodio into your project directory (pip package not available on pypi) | |
from pypodio2 import api | |
## Get environment variables for Podio Credentials | |
from os import environ as env |
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
# You have a basket of socks | |
# There are a random assortment of socks | |
# They may have pairs | |
# Pick a sock out of the basket | |
# Keep pickings socks, one a time, until you have gone through them all | |
# Every time you find a match, put them together and set aside | |
import random | |
# random.seed(1) |