Skip to content

Instantly share code, notes, and snippets.

View naeluh's full-sized avatar
🌐
Busy

nick hulea naeluh

🌐
Busy
View GitHub Profile
@naeluh
naeluh / index.html
Last active February 28, 2018 06:37
menu_angle.js
(function () {
const rem = parseInt(window.getComputedStyle(document.documentElement)['font-size'], 10);
const headerHeight = document.querySelector('header').clientHeight;
const pageWidth = document.body.clientWidth;
const getHeaderSkew = function () {
let aa = headerHeight - window.scrollY - (4 * rem);
let a = headerHeight - (headerHeight * 0.6);
if (aa > a) {
@naeluh
naeluh / setup.md
Created January 2, 2018 18:19 — forked from xrstf/setup.md
Nutch 2.3 + ElasticSearch 1.4 + HBase 0.94 Setup

Info

This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.

Terms

  • Nutch - the crawler (fetches and parses websites)
  • HBase - filesystem storage for Nutch (Hadoop component, basically)
<template>
<div id="app">
<router-view :arr="bookData"></router-view>
</div>
</template>
<script>
import axios from 'axios'
import store from './router/store'
@naeluh
naeluh / index.erb
Last active November 30, 2017 18:32
<script type="text/javascript">window.data = <%= @data.to_json %>;</script>
<aat-main inline-template :arr="window.data">
... other html and v-for and v-if ...
</aat-main>
const work = [{
'id': '0',
'url': 'gifpaint',
'title': 'gifpaint.in',
'img': 'logo.png',
'link': 'http://gifpaint.hulea.org/',
'siteInfo': '<p>There are a lot of odd spaces in the internet, one of which is the animated gif. After completing yourimage.io, I was interested in extending the idea of random image collage and image painting to make use of animated content.</p><p> Utilizing gif.js, native canvas api and imgur I was able to create a website that has the ability to paint and collage with animated content. I want to add more brushes and the ability to save and share the artwork that is created.</P>'
}, {
'id': '1',
'url': 'yourimage',
@naeluh
naeluh / build-array.php
Last active September 8, 2017 18:50
here is the way the gallery is put together - the css for this is in ff.css
<?php
/* instead of this build array of images from the secondary images */
$dir = $_SERVER['DOCUMENT_ROOT'] . '/sites/default/files/path/to/images/';
$files1 = scandir($dir);
/* instead of this build array of images from the secondary images */
$imgArr = array();
foreach ($files1 as $key => $file) {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#cont {
width:736px;
margin:auto;
<div class="stackla_wrap">
<div class="stackla_text_wrap">
<h3>WINNER</h3>
</div>
<img src="https://web-assets.stackla.com/10/lanhmf/media/images/customimages/2017-06/1497895727/18723360-132236334012118-7608560622430584832-n.jpg" title="how do you museum contest winner" alt="how do you museum contest winner" />
<div class="stacklapopup-user-info-wrapper">
<div class="stacklapopup-user-info">
<span class="stacklapopup-avatar-wrapper">
<a class="stacklapopup-avatar-link" href="https://www.instagram.com/p/BUs8uVwFlOn/"></a>
</span>
@naeluh
naeluh / index.html
Created June 6, 2017 18:53
Kelly - create new pages for each one and include all the html in the div with the id container
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>~</title>
<link href="https://fonts.googleapis.com/css?family=Nova+Mono" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://www.kellyakashi.com/test/into/fancybox.css" />
<link rel="stylesheet" type="text/css" href="http://www.kellyakashi.com/test/into/main.css" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>~</title>
<link href="https://fonts.googleapis.com/css?family=Nova+Mono" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://www.kellyakashi.com/test/into/fancybox.css" />
<style id="jsbin-css">
body,td,th {