A simple sign in concept for mobile.
This file contains hidden or 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
<!--We r gonna embed a gist--> | |
<script src="https://gist.github.com/itaditya/04f961e6648734ba2df1cf506b0f9f1c.js"></script> |
This file contains hidden or 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
background: linear-gradient(75deg, #75a196, #131817); | |
background-size: 400% 400%; | |
-webkit-animation: AnimationName 24s ease infinite; | |
-moz-animation: AnimationName 24s ease infinite; | |
-o-animation: AnimationName 24s ease infinite; | |
animation: AnimationName 24s ease infinite; | |
@-webkit-keyframes AnimationName { | |
0%{background-position:40% 0%} |
This file contains hidden or 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
hello asynchronous |
This file contains hidden or 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
User.find({ | |
verified: false | |
}).exec(function (err, users) { | |
var n = users.length; | |
for (var i = 0; i < n; i++) { | |
var user = users[i]; | |
sendEmail(user.email); | |
} | |
}) |
This file contains hidden or 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 express = require('express'), | |
mongodb = require('mongodb'), | |
passport = require('passport'), | |
cookieParser = require('cookie-parser'), | |
bodyParser = require('body-parser'), | |
methodOverride = require('method-override'), | |
session = require('express-session'), | |
node_acl = require('acl'), | |
app = express(), | |
localStrategy = require('passport-local').Strategy; |
This file contains hidden or 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
package main | |
import "fmt" | |
type person struct { | |
name string | |
age int | |
} | |
func (p person) print() { |
This file contains hidden or 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 barker = (state) => ({ | |
bark: () => console.log('Woof, I am ' + state.name) | |
}) | |
const driver = (state) => ({ | |
drive: () => state.position = state.position + state.speed | |
}) | |
const killer = (state) => ({ | |
kill: (enemy) => console.log('I killed ' + enemy) | |
}) |
This file contains hidden or 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 request = require('superagent'); | |
const base64 = require('base-64'); | |
const BASE_URL = 'https://api.github.com'; | |
const TOKEN = 'BOT_ACCESS_TOKEN'; | |
(async() => { | |
const COMMIT_MSG = process.argv[2]; | |
const FILE_CONTENT = process.argv[3]; |
This file contains hidden or 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 withAuthentication(WrappedComponent) { | |
const ModifiedComponent = (props) => { | |
if (!props.isAuthenticated) { | |
return <Redirect to="/login" />; | |
} | |
return (<WrappedComponent { ...props } />); | |
}; | |
const mapStateToProps = (state) => ({ |
OlderNewer