Skip to content

Instantly share code, notes, and snippets.

View DynamicUserForm.js
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 Jan 29, 2020
Sample data
View data.json
{
"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,
View .htaccess
### 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
View fixed.html
<!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 Mar 28, 2018
Insta Embed Script
View html
<!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 / html
Created Mar 25, 2018
Facebook Embed Example
View html
<!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
httpd22 (homebrew/apache/httpd22) on Mac OS X 10.11.4 - Homebrew build logs
View # httpd22 - 2016-05-01_14-29-50.txt
Homebrew build logs for homebrew/apache/httpd22 on Mac OS X 10.11.4
Build date: 2016-05-01 14:29:50
View gist:9de66bf93110218f9c14
<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) { %>