Skip to content

Instantly share code, notes, and snippets.

@hodonsky
hodonsky / CSS.css
Created May 12, 2020 18:45
Weird CSS Triangle
.body{
width: 400px;
height: 400px;
}
.triangle {
position: relative;
margin: 0 auto;
width: 20px;
height:20px;
}
@hodonsky
hodonsky / vim_fix_my_codestyle.md
Last active April 6, 2016 22:36
VIM - Any left parenthesis with a character immediately next to it give a space & Any right parenthesis with a character immediately before it that is not a } or ] add a space.

VIM ( Find regex )

Any left parenthesis with a character immediately next to it give a space:
%s/(\([^ )]\)\@=/( /g

Any right parenthesis with a character immediately before it that is not a } or ] add a space.:
`%s/([ }]])@

JS Homework : Name Picker

Setup:

  1. make a new directory for this project
  2. make three files -> index.html main.js style.css
  3. Build the html basics (head, body)
  4. link up the css and js files to the <head> section in your html.

Before we get going - lets git going.

{
app:{
version: "0.1.0",
state:{
currentRoute: "/search",
qs: "blah=derp"
// or
qs:{
blah:"derp"
}