Skip to content

Instantly share code, notes, and snippets.

@s2t2
s2t2 / Gemfile
Created March 7, 2018 23:12 — forked from ctalkington/Gemfile
Nginx, Sinatra, and Puma.
source :rubygems
gem "puma"
gem "sinatra"
@s2t2
s2t2 / index.html
Created February 8, 2018 15:45
search usa gov jquery
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<button type="button" name="button" id="search-button">Search</button>
<ul id="my-list"></ul>
title
Generating self-signed certificates

Generating self-signed certificates

First, you'll need to create an openssl.conf file, for example:

[ req ]
@s2t2
s2t2 / samplerest.js
Created December 29, 2017 22:47 — forked from joshbirk/samplerest.js
Sample of using passport w/ mult strategies
var fs = require("fs")
var ssl_options = {
key: fs.readFileSync('privatekey.pem'),
cert: fs.readFileSync('certificate.pem')
};
var port = process.env.PORT || 3000;
var express = require('express');
var ejs = require('ejs');
var passport = require('passport')
@s2t2
s2t2 / CellsSheet.vb
Created November 13, 2017 03:31
some vba code
Option Explicit
Private Sub CommandButton1_Click()
Dim Age
Dim RetirementAge
Dim SavingsBalance
Dim AnnualContribution
Dim AnnualInterestRate
'
hello = "fun times"

Privacy Policy

We will never sell, rent, or share any of your personal data with anyone.

The Dark Sky API does not collect or store any personally-identifiable information.

If you sign up for a Dark Sky API account, the Dark Sky API Developer Site collects and stores your identifying information for communication and billing purposes. Contact information is stored securely upon our own servers. Billing information is sent directly from your web browser to our payment processor (Stripe) and is never seen by our servers. The Dark Sky API Developer Site also uses Google Analytics (http://www.google.com/analytics) to collect usage statistics. This data is anonymous, and does not transmit any personally identifying information to either Google or ourselves.

If you have any questions, please don't hesitate to email us at [email protected].

Privacy Policy Thank you for using our services. This privacy policy went into effect on May 18, 2016.

Weather Underground, a service of The Weather Company, an IBM Business, (sometimes, “we” or “us”) is committed to protecting your privacy. This Privacy Policy is important and we encourage you to carefully read it.

This Privacy Policy discloses how we collect, use and share information that we gather about you on wunderground.com ®, wxquickie.com, weatherquickie.com, wundermap.com, i.wund.com, m.wund.com websites (the “Sites”), Wunderground, WunderStation, and Storm mobile applications, as well as our software applications, mobile applications, and other websites and services that reference or link to this Privacy Policy (together, the “Services”). This Privacy Policy also describes the choices you have regarding our use of and your ability to correct the information. The Services do not include websites, mobile applications or other services that link to another privacy policy.

How We Collect and Use Per

require "pry"
class Calculation
attr_accessor :equation
alias :eq :equation
# @param [String] equation An input string containing a math equation.
# The only supported operations are addition, subtraction, multiplication, and division.
# The equation is assumed to be valid, with spaces between operators, and all operands being numbers.
@s2t2
s2t2 / README.md
Last active June 4, 2017 21:29
some programming exercises

Programming Exercises

IMPORTANT NOTE: My approach for this exercise included a narrow scope of simply solving the problems. My approach did not focus on refactoring all code into classes and functions, although I did create some functions for the last problem (name scores). Also, my approach did not focus on performance optimization, although I did end up making some choices with performance in mind (see comments).

Problem #19: Sundays

How many Sundays fell on the first of the month during the twentieth century (1 Jan 1901 to 31 Dec 2000)?

Source: https://projecteuler.net/problem=19