Skip to content

Instantly share code, notes, and snippets.

View ManishPoduval's full-sized avatar
💭
I may be slow to respond.

Manish Poduval ManishPoduval

💭
I may be slow to respond.
View GitHub Profile
<style>
/* Add "Completed" to like buttons */
.view-space--357856 .action-like.action-item {
background-color: #f06e64;
padding: 4px 8px;
border-radius: 5px;
opacity: 1;
position: absolute;
left: 415px;
@ManishPoduval
ManishPoduval / coderecorder_app.js
Created January 25, 2022 17:03 — forked from shenningsgard/coderecorder_app.js
Simple code recorder/playback for the Ace code editor.
$(document).ready(function(){
ace.config.set('basePath', '../js/lib/ace');
var editor = ace.edit("editor");
editor.$blockScrolling = Infinity;
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/html");
editor.setOptions({
enableBasicAutocompletion: true,

Box model exercise

Here we provide you some tips to do the exercise:

  • You should work with three different divs: card (gray), title (green) and content (blue).
  • The title is separated by 10px on the top and right sides, 20px from the left side and 40px from the content. It also has a 2px border.
  • The content is separated by 10px on the left and right sides. On the top and the bottom, there is an space of 5px.
import React from 'react'
import GoogleLogin from 'react-google-login';
function GoogleButton(props) {
const {onSuccess, onFailure} = props
return (
<div>
<GoogleLogin
clientId="YOUR_CLIENT_ID"
const router = require("express").Router();
const UserModel = require('../models/User.model')
// The client makes a API request to this url sending the data in the body
router.post("/google/info", (req, res, next) => {
const {firstName, lastName, email, image, googleId} = req.body
// the name itself will include the last name
try {
// Create the user in the DB
import React from 'react'
import FacebookLogin from 'react-facebook-login';
function FacebookButton(props) {
const {onFacebookResponse} = props
return (
<div>
const router = require("express").Router();
const UserModel = require('../models/User.model')
// The client makes a API request to this url sending the data in the body
router.post("/facebook/info", (req, res, next) => {
const {name, email, image, facebookId} = req.body
// the name itself will include the last name
try {
// Create the user in the DB
UserModel.create({firstName: name, facebookId, image, email})