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);
<!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 / zeit-now-g-suite-setup.md
Created January 17, 2019 13:27 — forked from WesSouza/zeit-now-g-suite-setup.md
Zeit Now G Suite setup

Run each of the following lines, replacing yourdomain.com and AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA with your details:

export NOW_DOMAIN=yourdomain.com
export GOOGLE_VERIFICATION=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
now dns add "$NOW_DOMAIN" @ TXT "google-site-verification=$GOOGLE_VERIFICATION"
now dns add "$NOW_DOMAIN" @ MX ASPMX.L.GOOGLE.COM 1
now dns add "$NOW_DOMAIN" @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add "$NOW_DOMAIN" @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add "$NOW_DOMAIN" @ MX ALT3.ASPMX.L.GOOGLE.COM 10