Skip to content

Instantly share code, notes, and snippets.

@senorgeno
senorgeno / html
Created March 28, 2018 03:40
Insta Embed Script
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--1. Hit this url to get all the graph edges - https://www.instagram.com/jervoisakl/?__a=1 using the insta username-->
@senorgeno
senorgeno / DynamicUserForm.js
Last active August 4, 2020 09:31
DynamicUserForm
import React from 'react';
import { withFormik } from 'formik';
import * as Yup from 'yup';
const MyForm = (props) => {
const {
values,
touched,
errors,
handleChange,
@senorgeno
senorgeno / data.json
Last active January 29, 2020 20:24
Sample data
{
"id": "a68e40fb-e3d8-5c17-955a-dd23f53ecdaf",
"title": "Whitewater",
"image": "https://images.firsttable.co.nz/public/restaurant/2707/b2d7f4dd9d/buffet-315691-1280.jpg",
"isNew": true,
"slug": "/sample/slug/",
"openHours": "Everyday 11am - 10pm",
"city": "Darling Harbour",
"mainsPriceRange": "$15 - $25",
"rating": 3.0,
### SILVERSTRIPE START ###
# Deny access to templates (but allow from localhost)
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
# Deny access to IIS configuration
<!DOCTYPE html>
<!--
NOTES:
1. All tokens are represented by '$' sign in the template.
2. You can write your code only wherever mentioned.
3. All occurrences of existing tokens will be replaced by their appropriate values.
4. Blank lines will be removed automatically.
5. Remove unnecessary comments before creating your template.
-->
<html>
@senorgeno
senorgeno / html
Created March 25, 2018 21:30
Facebook Embed Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.5"
async></script>
@senorgeno
senorgeno / # httpd22 - 2016-05-01_14-29-50.txt
Last active May 1, 2016 02:51
httpd22 (homebrew/apache/httpd22) on Mac OS X 10.11.4 - Homebrew build logs
Homebrew build logs for homebrew/apache/httpd22 on Mac OS X 10.11.4
Build date: 2016-05-01 14:29:50
<div class="row">
<dl class="dl-horizontal">
<dt>Primary :</dt>
<dd>
<%= fixDiscipline(data.Application.Disciplines[0].Title, data.Application.Disciplines[0].SkillLevel) %>
</dd>
<dt>Secondary :</dt>
<dd><%= fixDiscipline(data.Application.Disciplines[1].Title, data.Application.Disciplines[1].SkillLevel) %></dd>
<dt>Additional :</dt>
<dd><% _.each(data.Application.Disciplines, function (Discipline, index) { %>