Skip to content

Instantly share code, notes, and snippets.

View guioconnor's full-sized avatar
🦎

Guilherme Zühlke O'Connor guioconnor

🦎
  • London, UK
View GitHub Profile
@guioconnor
guioconnor / project-euler-problem-1.2.js
Created March 1, 2012 17:30 — forked from nefarioustim/project-euler-problem-1.2.js
Find the sum of all the multiples of 3 or 5 below 1000.
// Do the maths
for(
var sum = 0, i = 1;
i < 1000;
!(i % 3 && i % 5) && (sum += i), i++
);
// Log the result
console.log(sum);
@guioconnor
guioconnor / 2col - LHS layout
Created December 17, 2012 16:54
Two column, left hand sidebar layout.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Fluid two column layout with left-sidebar </title>
<style type="text/css">
#contentwrapper{
float: left;
width: 100%;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.clock {
border: 2px solid black;
border-radius: 50%;
@guioconnor
guioconnor / travis.yml
Created March 9, 2018 09:00 — forked from tgrrtt/travis.yml
Travis-CI Config File (.travis.yml)
# Set up notification options
notifications:
email:
recipients:
- [email protected]
- [email protected]
# change is when the repo status goes from pass to fail or vice versa
on_success: change
on_failure: always
@guioconnor
guioconnor / difference.js
Created April 9, 2018 16:04 — forked from Yimiprod/difference.js
Deep diff between two object, using lodash
/**
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {
return _.transform(object, function(result, value, key) {
if (!_.isEqual(value, base[key])) {
@guioconnor
guioconnor / .block
Last active December 6, 2018 21:28
Ch. 10, Fig. 3 - D3.js in Action
license: mit
@guioconnor
guioconnor / .block
Created December 5, 2018 23:27
Text on an Arc - Animal Donut Slices - Flipped & Centered Arc Labels
license: mit
@guioconnor
guioconnor / .block
Last active December 6, 2018 21:27
fresh block
license: mit
@guioconnor
guioconnor / .block
Created December 6, 2018 21:25
fresh block
license: mit
@guioconnor
guioconnor / .block
Last active December 6, 2018 22:45
Types of Coffee
license: mit