Skip to content

Instantly share code, notes, and snippets.

View inderpreetsingh's full-sized avatar
🏠
Working from home

Inder Singh inderpreetsingh

🏠
Working from home
  • Ishwerdas
  • Ludhiana
View GitHub Profile
export const Test = new Mongo.Collection('test');
const Schemas = {};
Schemas.test = new SimpleSchema({
name: {
type: String
},
color: {
type: String,
@inderpreetsingh
inderpreetsingh / object.js
Created August 8, 2017 15:47
Input object for kavya's project
var schedule = {
row1:[1,1,student1,student2, monitor1, game1],
row2:[1,2,student3, student4, monitor2, game2],
row3:[1,3,student5, student6, monitor3, game3],
}
"private": {
"email": "singhs.ishwer@gmail.com",
"username": "ishwerdas",
"password": "kakaji"
}
[[!$template?
&containerID=`blog`
&main_content=`
<div id="edlplayer" class="edl_player" data-media-last-location="[[!EDLGetLatestWatchHistory? &resource_id=`[[*id]]`]]">
<div class="page_top">
<iframe src="https://player.vimeo.com/video/[[*vimeoID]]?title=0&amp;byline=0&amp;portrait=0" height="619" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="width:100%;"></iframe>
<p class="statusmsg"><span id="statusmsg"></span></p>
<div id='loading_spinner'>
<i class="fa fa-spin fa-spinner fa-pulse fa-3x fa-fw"></i>
var map = L.map('map');
if (hasWebGL()) {
// use Tangram to draw tiles when there is WebGL available on the browser
var layer = Tangram.leafletLayer({
scene: 'https://cdn.rawgit.com/tangrams/refill-style/gh-pages/refill-style.yaml',
attribution: '<a href="https://mapzen.com/tangram" target="_blank">Tangram</a> | &copy; OSM contributors | <a href="https://mapzen.com/" target="_blank">Mapzen</a>'
});
layer.addTo(map);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Leaflet Turn By Turn By Mapzen Example</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.css" />
<link rel="stylesheet" href="../dist/lrm-mapzen.css" />
<style>
#meri-nav { background:rgba(255,255,255,0.5); height:50px; width:100%; position:fixed; bottom:0; z-index:9999999;}
#meri-nav a { color:#333; text-transform:uppercase; letter-spacing:2px; padding: 5px; font-size:14px; line-height:50px; margin-right:10px; display:inline-block; text-decoration:none; }
<style>
#meri-nav {
display:block;
background:blue;
width:100%;
height:60px;
position:fixed;
top:0;
}
</style>
<?php
/**
* The template for displaying Category Portfolio page.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Nittoli
*/
get_header(); ?>
<script>
var websiteDesign = true;
var print = true;
var mobileApps = true;
var all = true;
var websiteDesignDOM = jQuery(".category-website-design");
var printDOM = jQuery(".category-print");
var mobileAppsDOM = jQuery(".category-mobile-apps");
var allDOM = jQuery(".category-website-design, .category-print, .category-mobile-apps");
var websiteDesignTrigger=jQuery(".category-4");
div.overlay {
background: rgba(11,71,107,0.7);
min-height: 800px;
padding-top: 170px;
vertical-height: 80px;
div.social-top {
@media (max-width: 1000px) {
width: 320px;
margin: auto;
padding-left: 0px;