Skip to content

Instantly share code, notes, and snippets.

View tkssharma's full-sized avatar
🎯
only JS

codewithtkssharma tkssharma

🎯
only JS
View GitHub Profile
const port = 3000
require('http')
.createServer((req, res) => {
})
.listen(port, (error)=>{
console.log(`server is running on ${port}`)
})
Meteor.startup(() => {
ServiceConfiguration.configurations.remove({
service: "facebook"
});
ServiceConfiguration.configurations.insert({
service: "facebook",
appId: '***********',
secret: '*******************'
getUserData() {
const id = Meteor.userId();
if (id) {
const data = Meteor.users.findOne({ _id: id });
if(data){
console.log(data)
}
}
}
handleLogin(data) {
class todosContainer extends React.Component {
constructor(props) {
super(props);
this.state = {
loading: false,
todos: {}
}
}
createNewTodo(data){
Meteor.call('todo.insert', data, function(err){
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
export const Teams = new Mongo.Collection('teams');
if (Meteor.isServer) {
// This code only runs on the server
Meteor.publish('teams', function groupPublication() {
return Teams.find();
});
<html>
<head>
<title>Display Property</title>
<style>
#main{
height: 100px;
width: 200px;
background: teal;
display: block;
<html>
<head>
<title>Display Property</title>
<style>
#main{
height: 100px;
width: 200px;
background: teal;
display: inline-block;
<html>
<head>
<title>Display Property</title>
<style>
#main{
height: 200px;
width: 200px;
background: teal;
display: inline;
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
#geeks1{
height: 100px;
width: 200px;
background: teal;
display: block;
{
"author": " Application",
"background_color": "#3367D6",
"description": "app",
"display": "fullscreen",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"