Skip to content

Instantly share code, notes, and snippets.

View marbiano's full-sized avatar

Martin Bavio marbiano

View GitHub Profile
@marbiano
marbiano / theme.css
Created November 23, 2021 22:48
Roam theme
/* ------------- WARNING - Super 1.0, messy, broken rubbish CSS in here ------------- */
/* ------------- Customer support not included :) ------------- */
:root {
--header-font: "Open Sans", sans-serif;
--body-font: "Inter", sans-serif;
--font-size: 1.02em;
--bg-color: #EEF3F3;
--page-color: rgba(255, 255, 255, 0.95);
--text-color: #49556f;
@marbiano
marbiano / tweets.json
Last active June 22, 2020 02:27
Roam demo page with script for tweet chars count
[{"title":"Tweets","children":[{"string":"{{[[roam/js]]}}","create-email":"mbavio@gmail.com","create-time":1592792246237,"children":[{"string":"Hit `Yes, I know what I'm doing` and enjoy some basic color help while you are writing your tweets.","create-email":"mbavio@gmail.com","create-time":1592792290376,"uid":"U8O8Mpkwr","edit-time":1592792374917,"edit-email":"mbavio@gmail.com"},{"string":"This a an example, feel free to edit it and take it up to 280...","create-email":"mbavio@gmail.com","create-time":1592792377871,"uid":"C4u85Uuc6","edit-time":1592792474950,"edit-email":"mbavio@gmail.com"},{"string":"","create-email":"mbavio@gmail.com","create-time":1592792435910,"uid":"MJ6jzGVk9","edit-time":1592792435910,"edit-email":"mbavio@gmail.com"},{"string":"```javascript\nvar max_size = 280;\nfunction testTweets(e) {\n var el = e.target;\n console.log(el);\n if(el.classList.contains('rm-block-input')) {\n var length = el.value.length;\n console.log(length);\n console.log(max_size);\n if (length > ma
- Uncharted 4
- Horizon Zero Dawn
- Uncharted: The Nathan Drake Collection
- Star Wars Battlefront
- Life is Strange
- Prey
- Middle Earth: Shadow of Mordor
- Deus Ex: Mankind Divided
- Hitman (todos los capítulos)
- Tales from the Borderlands
MINE
1. Needs general styling update.
2. Needs general responsive fine tuning.
3. Nav from logotype click feels a bit weird. Alternative would be logo linking to homepage and hamburguer icon to the right opening that menu.
4. Benton Sans and Benton Modern, to load them or not. Could be replaced with Helvetica/Arial and Georgia.
Se puede hacerme mas feliz.
Reafirmo Messi no hubo brillo, solo ahi,
al que tuve que todavia me dan ganas de ir?
Lo de hoy sea que vayas.
Y el vendedor le agarran ataques de deportes,
me pone orgulloso que hizo doble por los calidos saludos,
le han subido un golpe de humildad para Pearl Jam
del 3 de puta, no me podía ni reír.
_templates/article:
---
layout: {{ layout }}
title: {{ title }}
date: {{ date }}
category: {{ issue }}
---
And then from console:
@marbiano
marbiano / SassMeister-input.scss
Created March 8, 2014 20:16
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
@import "compass";
@mixin z-index($map){
@each $element, $value in $map {
#{$element} {
Para los nombres de la clases uso un estilo similar a BEM, el cual consiste basicamente en:
* Separar objeto hijo de padre con __ (.product__name)
* Separar un tipo distinto del objeto base con -- (.product--offer)
Este estilo me sirve muchisimo para controlar la especificidad y entender leyendo directamente el html que es cada cosa, pero a veces se vuelve tedioso escribir el scss, porque repetis un monton, por ejemplo, para un objecto .product, una parte podria ser:
.product__name{}
.product__description{}
@marbiano
marbiano / ang.js
Last active December 28, 2015 01:29
Angular $http & $resource
// With $http:
myAppModule.factory('CreditCard', ['$http', function($http) {
var baseUrl = '/user/123/card';
return {
get: function(cardId) {
return $http.get(baseUrl + '/' + cardId);
},
save: function(card) {
var url = card.id ? baseUrl + '/' + card.id : baseUrl;
@marbiano
marbiano / host
Created December 4, 2012 15:12
My host
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost