Skip to content

Instantly share code, notes, and snippets.

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
// import gridle
@import "../../bower_components/gridle/sass/gridle/gridle";
// setting up the grid
$settings : (
context : 24, // number of columns in your grid
column-width : null, // by default it's percentage based depending on the context but you can specify a column width yourself
gutter-width : 20px, // size of the gutters
gutter-height : 0, // size of top and bottom gutters
<div class="container">
<div class="row">
<div class="gr-8">
foo
</div>
<div class="gr-8">
foo
</div>
<div class="gr-8">
foo
@goellner
goellner / PageContentController.php
Created January 13, 2018 17:55
Statamic PageContent Plugin
<?php
namespace Statamic\Addons\PageContent;
use Statamic\Extend\Controller;
use Statamic\API\Page;
class PageContentController extends Controller
{
/**
<?php
namespace Statamic\Addons\Instagram;
use Statamic\Extend\Controller;
use Statamic\API\Entry;
use Statamic\API\Parse;
use Statamic\API\File;
class InstagramController extends Controller
<?php
namespace Statamic\Addons\AssetsOrganized;
use Statamic\Addons\Assets\AssetsFieldtype;
use Statamic\API\Helper;
class AssetsOrganizedFieldtype extends AssetsFieldtype
{
public $category = ['media', 'relationship'];
<?php
namespace Statamic\Addons\AssetsOrganized;
use Statamic\Addons\Assets\AssetsFieldtype;
use Statamic\Extend\Fieldtype;
use Statamic\API\Helper;
use Statamic\API\Asset;
use Statamic\API\AssetContainer;
use Statamic\API\Folder;
@goellner
goellner / _debug.scss
Created September 19, 2018 08:02
gridle.org - grid system | debug grid overlay
// DEBUG
.grid {
position: fixed;
width: 100%;
top: 0;
left: 0;
pointer-events: none;
z-index: 100000;
display: block;
@goellner
goellner / cloudSettings
Last active May 29, 2020 12:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-05-29T12:18:52.703Z","extensionVersion":"v3.4.3"}
@goellner
goellner / GridDebug.js
Created January 6, 2019 00:15
Gridle Debug Toggle
import React, {Fragment} from "react";
export default class GridDebug extends React.Component {
constructor(props) {
super(props);
this.state = {
gridVisible: false
};