Skip to content

Instantly share code, notes, and snippets.

View morav's full-sized avatar

Alexei morav

View GitHub Profile
@morav
morav / gatsby-config.js
Created May 12, 2018 13:15 — forked from lisilinhart/gatsby-config.js
Gatsby Config
module.exports = {
siteMetadata: {
title: "Lisi Linhart",
description: "Lisi Linharts Portfolio & Blog",
author: "Lisi Linhart",
siteUrl: "https://lisilinhart.info"
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
(
separateLightsBy=12
speed=0.08
declare -a Gradient=('0 BF BF' '0 C3 BC' '0 C6 B8' '1 CA B4' '1 CD B0' '2 D0 AC' '2 D4 A8' '3 D7 A5' '4 DA A0' '5 DD 9C' '7 DF 98' '8 E2 94' 'A E5 90' 'B E7 8C' 'D EA 88' 'F EC 84' '11 EE 80' '13 F0 7B' '15 F2 77' '18 F4 73' '1A F5 6F' '1D F7 6B' '20 F8 67' '22 FA 63' '25 FB 5F' '28 FC 5A' '2B FD 57' '2F FD 53' '32 FE 4F' '35 FE 4B' '39 FF 47' '3C FF 43' '40 FF 40' '43 FF 3C' '47 FF 39' '4B FE 35' '4F FE 32' '53 FD 2F' '57 FD 2B' '5A FC 28' '5F FB 25' '63 FA 22' '67 F8 20' '6B F7 1D' '6F F5 1A' '73 F4 18' '77 F2 15' '7B F0 13' '7F EE 11' '84 EC F' '88 EA D' '8C E7 B' '90 E5 A' '94 E2 8' '98 DF 7' '9C DD 5' 'A0 DA 4' 'A5 D7 3' 'A8 D4 2' 'AC D0 2' 'B0 CD 1' 'B4 CA 1' 'B8 C6 0' 'BC C3 0' 'BF BF 0' 'C3 BC 0' 'C6 B8 0' 'CA B4 1' 'CD B0 1' 'D0 AC 2' 'D4 A8 2' 'D7 A5 3' 'DA A0 4' 'DD 9C 5' 'DF 98 7' 'E2 94 8' 'E5 90 A' 'E7 8C B' 'EA 88 D' 'EC 84 F' 'EE 80 11' 'F0 7B 13' 'F2 77 15' 'F4 73 18' 'F5 6F 1A' 'F7 6B 1D' 'F8 67 20' 'FA 63 22' 'FB 5F 25' 'FC 5A 28' 'FD 57 2B' 'FD 53 2F' 'FE
@mixin responsive($media) {
@if $media == sm {
@media (min-width: 768px) { @content; }
}
@else if $media == md {
@media (min-width: 992px) { @content; }
}
@else if $media == lg {
@media (min-width: 1200px) { @content; }
}
@morav
morav / javascript_resources.md
Created October 30, 2013 06:27 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@morav
morav / css_resources.md
Created October 30, 2013 06:27 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides