Build a new landing page (just initial page) for https://www.classapp.com.br. You can use Semantic UI, but it's not required. Send link and source code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Bluebird = require('bluebird'); | |
const { isUndefined } = require('lodash'); | |
const Client = require('knex/lib/dialects/mysql'); | |
const Transaction = require('knex/lib/transaction'); | |
const inherits = require('inherits'); | |
const sqlstring = require('sqlstring'); | |
class RDSDataAPITransaction extends Transaction { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Busboy = require('busboy'); | |
const { WriteStream } = require('fs-capacitor'); | |
const objectPath = require('object-path'); | |
const SPEC_URL = 'https://github.com/jaydenseric/graphql-multipart-request-spec'; | |
const isObject = value => value && value.constructor === Object; | |
const isString = value => typeof value === 'string' || value instanceof String; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
fullname: "John Doe 1", | |
eid: "1234", | |
classes: [ | |
"Sala 1", | |
"Sala 2", | |
"Sala 3", | |
"Sala 4", | |
"Sala 5", | |
"Sala 6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
The MIT License (MIT) | |
Copyright (c) 2014 Samin Shams | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_mx($email) | |
{ | |
// Get domain name from email | |
$domain = substr(strrchr($email, "@"), 1); | |
// get MX records for domain | |
getmxrr($domain, $mxhosts); | |
// Match records with three options | |
preg_match('/google|hotmail|yahoo/i', implode(' ', $mxhosts), $matches); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pagination":{ | |
"next":"https://api.readmill.com/v2/me/library?access_token=abc&offset=1&order=created_at&to=2013-05-06+10%3A11%3A04+UTC" | |
}, | |
"items":[ | |
{ | |
"library_item":{ | |
"id":1, | |
"created_at":"2012-08-13T15:23:37Z", | |
"state":"active", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- iPhone - 320x460 --> | |
<link href="touch-startup-iphone.png" | |
media="(device-width: 320px) and (device-height: 480px) | |
and (-webkit-device-pixel-ratio: 1)" | |
rel="apple-touch-startup-image"> | |
<!-- iPhone (Retina) - 640x920 --> | |
<link href="touch-startup-iphone-retina.png" | |
media="(device-width: 320px) and (device-height: 480px) | |
and (-webkit-device-pixel-ratio: 2)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (((/iphone/gi).test(navigator.userAgent) || (/ipod/gi).test(navigator.userAgent)) && | |
(!("standalone" in window.navigator) && !window.navigator.standalone)) { | |
offset = 60; | |
$('body').css('min-height', (window.innerHeight + offset) + 'px'); | |
setTimeout( function(){ window.scrollTo(0, 1); }, 1 ); | |
} | |
if ((/android/gi).test(navigator.userAgent)) { | |
offset = 56; | |
$('html').css('min-height', (window.innerHeight + offset) + 'px'); |
NewerOlder