Skip to content

Instantly share code, notes, and snippets.

View niklatkin's full-sized avatar
🐢
I may be slow to respond.

Niko Latkin niklatkin

🐢
I may be slow to respond.
  • Detroit, MI
View GitHub Profile
s = 'azcbobobegghakl'
l = 0
count = 0
x = len(s)
for i in s:
if i == "b" and l+1 < x and l+2 <x:
if (s[l+1] == "o" and s[l+2]=="b"):
count = count + 1
l = l + 1
print("Number of times bob occurs is: "+str(count))
for (var i = 1; i <= 100; i++) {
var f = i % 3 === 0, b = i % 5 === 0;
console.log(f ? b ? "FizzBuzz" : "Fizz" : b ? "Buzz" : i);
}
@niklatkin
niklatkin / css_reset.css
Created January 18, 2018 21:39 — forked from freetonik/css_reset.css
Eric Meyer’s CSS Reset 2.0
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@niklatkin
niklatkin / Selenium Cheat Sheet.md
Created October 26, 2017 15:10 — forked from kenrett/Selenium Cheat Sheet.md
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">
## The ultimate cheatsheet: all web design guidelines in one place
### This cheat sheet is intended to serve as a quick reference for you.
### It contains all the guidelines I showed you in this web design section.
### It is very important that you have all of the guidelines in mind at the same time when you're making your designs.
@niklatkin
niklatkin / gist:9752d46b05b928ef99bc536f8553be01
Created May 19, 2017 17:01
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after

Git Cheat Sheet

Basic commands

git init Creates a new git repository in the directory

git add <file name> Adds a specific file to staging

git add . or git add -A Adds the full directory and its contents to staging