Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
loading...

Eddy Hernandez eddywashere

🔥
loading...
View GitHub Profile
View custom.css
/* Custom styles for Confluence (included for all themes by default) */
/*****************************************************
** PUT SPACE SPECIFIC STYLING HERE (NOT AT BOTTOM)
***************************************************/
#children-section
{
display : none;
View html-css-js-resources.md

HTML/CSS/JS Resources

###Video

  • 30 Days to Learn HTML & CSS
    • Plenty of short tuts on html/css. (Kind of boring but definitely thorough)
  • Functional HTML5 & CSS3
    • Practical applications of html5 and css3, works its way into a site build with good info along the way
  • CSS Cross-Country
    • Very, very in depth look at css. Definitely the best video css resource I've come across.
View cloudwatchlogs.js
const _ = require('lodash');
const AWS = require('aws-sdk');
const retry = require('bluebird-retry');
function recursiveReq(request, params, key, items = [], count = 0) {
return request(params).then(data => {
const newItems = items.concat(data[key]);
const lastItem = _.last(newItems);
const nextToken = _.get(data, 'nextToken', null);
@eddywashere
eddywashere / App.js
Last active Feb 20, 2020 — forked from gaearon/App.js
Reactstrap App.js Example for create-react-app
View App.js
import React, { Component } from 'react';
import {
Collapse,
Navbar,
NavbarToggler,
NavbarBrand,
Nav,
NavItem,
NavLink,
Container,
@eddywashere
eddywashere / ubuntu-setup.sh
Created Aug 19, 2012
Ubuntu Setup (12.04)
View ubuntu-setup.sh
#!/bin/sh
## current 1 liner
# wget http://url.com/ubuntu-setup.sh && chmod 700 ubuntu-setup.sh && ./ubuntu-setup.sh
# use raw url from github ;]
echo "Choose setup: user, setup, or mail"
read choice
if [ $choice = user ]
@eddywashere
eddywashere / README.md
Last active Jan 21, 2020
Load third party javascript asynchronously, initialize queue for method calls, replace queue function, profit?
View README.md

live demo

Files:

  • index.html: example of queue (the part that is always shown)
  • third-party.js: example of third party javascript (the part no one ever talks about)

Inspiration:

  • google analytics
@eddywashere
eddywashere / data-
Created Feb 3, 2016
ublock origin's base64 encoded google analytics replacement scripts
View data-
Request URL:data:application/javascript;base64,
KGZ1bmN0aW9uKCkgewoJLy8gaHR0cHM6Ly9kZXZlbG9wZXJzLmdvb2dsZS5jb20vYW5hbHl0aWNzL2Rldmd1aWRlcy9jb2xsZWN0aW9uL2FuYWx5dGljc2pzLwoJdmFyIG5vb3BmbiA9IGZ1bmN0aW9uKCkgewoJCTsKCX07Cgl2YXIgbm9vcG51bGxmbiA9IGZ1bmN0aW9uKCkgewoJCXJldHVybiBudWxsOwoJfTsKCS8vCgl2YXIgVHJhY2tlciA9IGZ1bmN0aW9uKCkgewoJCTsKCX07Cgl2YXIgcCA9IFRyYWNrZXIucHJvdG90eXBlOwoJcC5nZXQgPSBub29wZm47CglwLnNldCA9IG5vb3BmbjsKCXAuc2VuZCA9IG5vb3BmbjsKCS8vCgl2YXIgZ2FOYW1lID0gd2luZG93Lkdvb2dsZUFuYWx5dGljc09iamVjdCB8fCAnZ2EnOwoJdmFyIGdhID0gZnVuY3Rpb24oKSB7CgkJdmFyIGxlbiA9IGFyZ3VtZW50cy5sZW5ndGg7CgkJaWYgKCBsZW4gPT09IDAgKSB7CgkJCXJldHVybjsKCQl9CgkJdmFyIGYgPSBhcmd1bWVudHNbbGVuLTFdOwoJCWlmICggdHlwZW9mIGYgIT09ICdvYmplY3QnIHx8IGYgPT09IG51bGwgfHwgdHlwZW9mIGYuaGl0Q2FsbGJhY2sgIT09ICdmdW5jdGlvbicgKSB7CgkJCXJldHVybjsKCQl9CgkJdHJ5IHsKCQkJZi5oaXRDYWxsYmFjaygpOwoJCX0gY2F0Y2ggKGV4KSB7CgkJfQoJfTsKCWdhLmNyZWF0ZSA9IGZ1bmN0aW9uKCkgewoJCXJldHVybiBuZXcgVHJhY2tlcigpOwoJfTsKCWdhLmdldEJ5TmFtZSA9IG5vb3BudWxsZm47CglnYS5nZXRBbGwgPSBmdW5jdGlvbigpIHsK
@eddywashere
eddywashere / example-alarm.json
Created Jun 18, 2014
Example webhook data from Rackspace Cloud Monitoring
View example-alarm.json
{
"event_id": "12345678910:1403052700000:OK",
"log_entry_id": "123456789101234567891012345678910",
"details": {
"target": "rackspace.com",
"timestamp": 1403052704485,
"metrics": {
"duration": {
"type": "I",
"data": 240,
View protractor-cheatsheet.md

by.model

<input type="text" ng-model="yourName">

// by.model('yourName')

by.binding

@eddywashere
eddywashere / app.jsx
Created Feb 7, 2016
higher order layout component example in React
View app.jsx
import React from 'react';
import { render } from 'react-dom';
import {PageContent, PageSidebar} from './Content';
import Layout from './Layout';
const Example = Layout({Content: PageContent, Sidebar: PageSidebar});
render(Example, document.getElementById('app'))