Skip to content

Instantly share code, notes, and snippets.

View baltazarparra's full-sized avatar
❄️

baltz baltazarparra

❄️
View GitHub Profile
function setActive() {
aObj = document.getElementById('nav').getElementsByTagName('a');
for(i=0;i<aObj.length;i++) {
if(document.location.href.indexOf(aObj[i].href)>=0) {
aObj[i].className='active';
}
}
}
window.onload = setActive;
if (is_array($this->_arrCfgCmp[$this->_cmpSelecionado]) && array_key_exists($atributo, $this->_arrCfgCmp[$this->_cmpSelecionado])) {
return $this->_arrCfgCmp[$this->_cmpSelecionado][$atributo];
} else if ($info != null && array_key_exists($atributo, $info)) {
$info = parent::info();
if (is_array($info['metadata'][$this->_cmpSelecionado]) && array_key_exists($atributo, $info['metadata'][$this->_cmpSelecionado])) {
return $info['metadata'][$this->_cmpSelecionado][$atributo];
}
}
@baltazarparra
baltazarparra / file.js
Last active November 19, 2018 16:03
facebook home uncompiled
for (;;);
{"payload":{"actions":[
{"cmd":"append","target":"static_templates","html":"","replaceifexists":true},
{"cmd":"script","type":"onload","code":"(new (require(\"ServerJS\"))()).handle({\"require\":[[\"MobileZeroRewriteURL\",\"main\",[],[{\"regex_matcher\":[\"^(https?):\\\/\\\/(?:z-1-|z-m-|z-p3-|z-p4-)?([0-9a-zA-Z\\\\.-]+\\\\.)((?:faep12-1|faep13-1|faep3-1|faju1-1|faqa1-1|faqa2-1|fbau1-1|fbel2-1|fbfh6-1|fbnu4-1|fbsb5-1|fbsb6-1|fbsb8-1|fbsb8-2|fcac1-1|fcgb2-1|fcgh10-1|fcgh11-1|fcgh12-1|fcgh13-1|fcgh14-1|fcgh15-1|fcgh16-1|fcgh17-1|fcgh18-1|fcgh19-1|fcgh20-1|fcgh21-1|fcgh22-1|fcgh9-1|fcgr1-1|fcgr1-2|fcpq4-1|fcpq5-1|fcpq6-1|fcpq7-1|fcpv3-1|fcwb1-1|fcwb2-1|fcwb2-2|fcxj2-1|ffln2-1|ffln2-2|ffor7-1|ffor8-1|ffor8-2|fgig1-1|fgig1-2|fgig1-3|fgig1-4|fgig5-1|fgru3-1|fgru3-2|fgru6-1|fgru7-1|fgyn3-1|fgyn3-2|fham1-1|figu1-1|fjoi1-1|fjoi1-2|fjpa2-1|fldb2-1|fldb2-2|flim5-1|flim5-2|flim5-3|flim5-4|fmad3-1|fmad3-2|fmad3-3|fmad3-4|fmad3-5|fmad3-6|fmad3-7|fmad3-8|fmcz2-1|fmcz2-2|fmgf1-1|fmgf1-2|fmuc3-1|fnat3-1|fplu5-1|
baltz# cat /var/log/Xorg.2.log
[ 3061.785] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 3061.786]
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[ 3061.786] Build Operating System: Linux Arch Linux
[ 3061.786] Current Operating System: Linux baltz 4.19.78-1-MANJARO #1 SMP PREEMPT Mon Oct 7 20:24:34 UTC 2019 x86_64
[ 3061.786] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19-x86_64 root=UUID=2ad14bad-b723-4e41-9751-3dc168d5da2e rw quiet resume=UUID=6e7fd666-f453-4f1c-b177-b605c78b5340
[ 3061.786] Build Date: 14 August 2019 10:50:56PM
[ 3061.786]
import React from 'react';
import styled from 'styled-components';
import { Controller, Scene } from 'react-scrollmagic';
import { Tween, Timeline } from 'react-gsap';
const Wrap = styled.div`
background-color: silver;
width: 100%;
overflow: hidden;
position: relative;
import React, { useState, useEffect } from 'react'
import axios from 'axios'
function Test() {
const [breeds, setBreeds] = useState({})
useEffect(() => {
axios.get('https://dog.ceo/api/breeds/list/all')
.then(res => {
setBreeds(res.data.message)
@baltazarparra
baltazarparra / flexbox-emmet.md
Created August 26, 2021 11:42 — forked from onlurking/flexbox-emmet.md
Flexbox Emmet Expansions

Flexbox Emmet Expansions

display

expansion: d:f, df:
display: flex;

flex-direction

expansion: fxd:r, fxdr:

How run locally DEV

Install dependencies, on root folder run:

npm install

Run the project: