Skip to content

Instantly share code, notes, and snippets.

View mnmaraes's full-sized avatar

Murillo Nicacio de Maraes mnmaraes

View GitHub Profile
@mnmaraes
mnmaraes / roam-focus.js
Last active September 18, 2020 11:06
Roam Focus mode toggle
const body = document.querySelector(".roam-body-main");
function setCenterFocus() {
selectors = [".roam-article", ".roam-topbar", "#buffer"]
const hasSidebar = document.querySelector("#roam-right-sidebar-content") != null;
selectors.map(sel => document.querySelector(sel)).filter(el => el).forEach(el => {
console.log("Ping!");
if (hasSidebar) {
@mnmaraes
mnmaraes / roam-theme.css
Last active September 18, 2020 10:08
roam/css
/* @azlen's fantastic cosmonaut theme + some alterations for focused writing mode */
@import url('https://azlen.github.io/roam-themes/cosmonaut.css');
/* First I'd like my main page to be wider than my sidebar pages */
:root {
--page-width: 1024px;
}
#roam-right-sidebar-content {
--page-width: 616px;
//
// TUITestTableViewController.m
// TestUIs
//
// Created by Murillo Nicacio de Maraes on 4/29/14.
// Copyright (c) 2014 m-one. All rights reserved.
//
#import "TUITestTableViewController.h"
@mnmaraes
mnmaraes / Intro Page View UI
Created March 13, 2014 20:30
This Gist Emulates a standard app intro view. The images "sea" and "fire" are because of the transition between a red and blue background. Use your own image (anyone will do, really).
//
// TUIIntroPageViewController.m
// TestUIs
//
// Created by Murillo Nicacio de Maraes on 3/13/14.
// Copyright (c) 2014 m-one. All rights reserved.
//
#import "TUIIntroPageViewController.h"
@mnmaraes
mnmaraes / Mask UI
Last active June 29, 2016 10:33
Gist that seeks to emulate a color mask.
//
// TUIMaskViewController.m
// TestUIs
//
// Created by Murillo Nicacio de Maraes on 3/13/14.
// Copyright (c) 2014 m-one. All rights reserved.
//
#import "TUIMaskViewController.h"
@mnmaraes
mnmaraes / PaperAnimation
Last active May 23, 2017 15:30
Gist that seeks to emulate Paper's menu animation
//
// TUIViewController.m
// TestUIs
//
// Created by Murillo Nicacio de Maraes on 3/9/14.
// Copyright (c) 2014 m-one. All rights reserved.
//
#import "TUIViewController.h"