View react-native-phone-input.js
import React, { useState } from 'react'; | |
import CountryPicker from 'react-native-country-picker-modal'; | |
import PNF, { PhoneNumberUtil } from 'google-libphonenumber'; | |
const [countryCode, setCountryCode] = useState('AU'); | |
const [phoneNumber, setPhoneNumber] = useState(''); | |
const phoneUtil = PhoneNumberUtil.getInstance(); | |
function setCode ({ cca2 }) { | |
setCountryCode(cca2); |
View hellosign.css
.l-app .l-app--content { | |
padding-bottom: 0; | |
} | |
main.au { | |
padding-top: 121px; | |
} | |
.l-app .l-app--container { | |
padding-top: 100px; |
View link-test.js
var links = document.querySelectorAll('a'); | |
for (var i = 0; i < links.length; i++) { | |
links[i].click(); | |
} |
View origin.js
if (!window.location.origin) { | |
const { protocol, hostname, port } = window.location; | |
window.location.origin = `${protocol}//${hostname}${port ? `:${port}` : ''}`; | |
} |
View boilerplate.html
<!-- HTML5 Doctype. Remember to delete these comments (Quirks Mode). --> | |
<!doctype html> | |
<!-- HTML tag --> | |
<html lang=""> | |
<!-- Let's get started --> | |
<head> | |
<!-- Document settings and metadata --> |
View strikethrough.js
$('a').addClass('strikethrough').hover( | |
(e) => $(e.target).stop().addClass('mouseenter'), | |
(e) => { | |
$(e.target).stop().removeClass('mouseenter').addClass('mouseleave'); | |
setTimeout(() => { | |
$(e.target).stop().removeClass('mouseleave').addClass('no-transition'); | |
}, STIKETHROUGH_DURATION - STIKETHROUGH_OFFSET); | |
setTimeout(() => { | |
$(e.target).stop().removeClass('no-transition'); | |
}, STIKETHROUGH_DURATION + STIKETHROUGH_OFFSET); |
View github.js
#github | |
.row.clearfix | |
#canvas-container.hidden-xs | |
canvas#repositories | |
noscript Sorry, you need Javascript enabled to view this chart. |
View dribbble.html
#dribbble | |
.row.clearfix.hidden-xs | |
noscript Sorry, you need Javascript enabled to view these Dribbble shots. | |
.column-3 | |
p Simplicity, functionality and accessibility will always remain at the core of my philosphy. I like to combine aspects of print and graphic such as dynamic layouts and typographic flourishes with the principles of modern, minimalism. |
View gulpfile.js
const gulp = require('gulp'), | |
sync = require('browser-sync').create(), | |
del = require('del'), | |
minimist = require('minimist')(process.argv.slice(2)), | |
$ = require('gulp-load-plugins')(), | |
info = require('./package.json'), | |
header = '/*! Built with Catalyst. */', | |
staticFiles = gulp.src([ | |
'test/source/**/*', | |
'!test/source/**/*.html', |
View .editorconfig
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
NewerOlder