Skip to content

Instantly share code, notes, and snippets.

View two_sum_2.go
package main
//Naive approach
func twoSumNaive(numbers []int, target int) []int {
var toReturn = []int{}
for i := 0; i < len(numbers); i++ {
var current = numbers[i]
var toFind = target - current
for j := i + 1; j < len(numbers); j++ {
if numbers[j] == toFind {
View dabblet.css
/*
white - FFFEFC
darker white - E2E3DF
greyish - 515B5E
darker greyish - 2E3233
green - CAF200
*/
body {font-family:Lucida Grande ,Helvetica, Arial, Verdana; width: 80%; margin: 0 auto; color: #FFFEFC;background-color: #515B5E}
ul {list-style: none;}
View dabblet.css
body {
color: black;
font-family: Futura;
width: 80%;
margin: 0 auto;
}
a {
color: white;
View dabblet.css
body {
font-family: Futura, sans-serif;
width: 70%;
margin: 0 auto;
}
a {
text-decoration: none;
color: orange;
}
@marsp0
marsp0 / dabblet.css
Created Aug 10, 2014
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
body {
font-family: Futura;
}
a {
text-decoration: none;
color: orange;
@marsp0
marsp0 / dabblet.css
Created Aug 9, 2014
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.nav {
background: #7C5329;
background: linear-gradient(1deg, #7C5329, #3E2A14);
height: 150px;
}
.bar {
height: 60px;
View dabblet.css
<body>
<div class="main">
<div class="header">
<div class="header_resize">
<div class="logo">
<h1><a href="index.html">Beczar Music Society<small>Good music and good vibes</small></a></h1>
</div>
<div class="menu_nav">
<ul>
<li class="active"><a href="/"><span>Home</span></a></li>
View dabblet.css
/* crack */
.right {
float: right;
}
.main {
width: 80%;
margin: 0 auto;
font-family: Futura;
background: #f06;
View dabblet.css
/* crack */
.right {
float: right;
}
.main {
width: 80%;
margin: 0 auto;
font-family: Futura;
background: #f06;
@marsp0
marsp0 / dabblet.css
Created Aug 4, 2014
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.main {
font-family: Futura;
background: #f06;
background: linear-gradient(50deg, #f06, yellow);
min-height: 900px;
}