Skip to content

Instantly share code, notes, and snippets.

View marbiano's full-sized avatar

Martin Bavio marbiano

View GitHub Profile
super(options)
@model = new @collection.model()
@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
@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;
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 / 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} {
_templates/article:
---
layout: {{ layout }}
title: {{ title }}
date: {{ date }}
category: {{ issue }}
---
And then from console:
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.
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.
- 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
@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":"[email protected]","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":"[email protected]","create-time":1592792290376,"uid":"U8O8Mpkwr","edit-time":1592792374917,"edit-email":"[email protected]"},{"string":"This a an example, feel free to edit it and take it up to 280...","create-email":"[email protected]","create-time":1592792377871,"uid":"C4u85Uuc6","edit-time":1592792474950,"edit-email":"[email protected]"},{"string":"","create-email":"[email protected]","create-time":1592792435910,"uid":"MJ6jzGVk9","edit-time":1592792435910,"edit-email":"[email protected]"},{"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