Skip to content

Instantly share code, notes, and snippets.

View kshitijdeota's full-sized avatar

KD kshitijdeota

View GitHub Profile
@Chuvisco88
Chuvisco88 / jekyll-cookie-consent.html
Last active May 22, 2024 19:41
An approach on how to add cookie consent to a jekyll page
@pascalwhoop
pascalwhoop / ComponentInfo.txt
Last active August 11, 2020 20:05
A list of a lot of ComponentInfo strings for some 10k+ applications on the Google Play Market
AutomateIt.mainPackage/AutomateIt.mainPackage.AutomateItMainActivity
AutomateIt.mainPackage/automateItLib.mainPackage.AutomateItMainActivity
AutomateItPro.mainPackage/automateItLib.mainPackage.AutomateItMainActivity
AutomateItPro.mainPackage/automateItLib.mainPackage.MainActivity
Com.sktelecom.minit/Com.sktelecom.minit.IntroActivity
HinKhoj.Dictionary/com.hinkhoj.dictionary.activity.ConfigureActivity
PSB.Droid/md537cd9a14833c7ae877f7f1aebf31611f.SplashScreenActivity
accky.kreved.skrwt.skrwt/accky.kreved.skrwt.skrwt.LaunchScreenActivity
accky.kreved.skrwt.skrwt/accky.kreved.skrwt.skrwt.activity.LaunchScreenActivity
ace.jun.simplecontrol/ace.jun.simplecontrol.MainActivity
@bummzack
bummzack / index.html
Created March 8, 2017 15:21
Webpack using browser-sync and SASS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dummy</title>
<link rel="stylesheet" href="dist/css/styles.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
<div id="app" >
@mpatel3
mpatel3 / jQuery.md
Last active June 19, 2023 12:14
jQuery coding Standards and Practices

##jQuery Best Coding Practices and Standards

  • Always try to use a CDN to include jQuery on your page. CDN Benefits
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/jquery-2.1.4.min.js" type="text/javascript"><\/script>')</script>
    
    <!-- Second line is for backup of the first one -->
    
    
@ethicka
ethicka / localhost-ssl.md
Last active April 12, 2024 12:26 — forked from jonathantneal/README.md
Local virtualhost SSL websites on Mac OS Sierra

Local virtualhost SSL websites on Mac OS Sierra

These instructions will guide you through the process of setting up a wildcard SSL for your local virtualhosts for offline development. Most importantly, this configuration will give you the happy, green lock in Chrome.

These instructions have only been tested on Mac OS Sierra using the pre-installed Apache and PHP versions. These instructions also assume you have virtualhosts set up locally already.


Configuring SSL

@EvanHerman
EvanHerman / check-if-element-in-viewport-on-scroll.js
Last active December 20, 2024 14:34
Check when an element comes into view (jQuery)
function isOnScreen(elem) {
// if the element doesn't exist, abort
if( elem.length == 0 ) {
return;
}
var $window = jQuery(window)
var viewport_top = $window.scrollTop()
var viewport_height = $window.height()
var viewport_bottom = viewport_top + viewport_height
var $elem = jQuery(elem)
@wesbos
wesbos / settings.json
Created July 21, 2015 13:46
Wes Bos' Sublime Text Settings
{
"added_words":
[
"Mockup",
"plugins",
"coffeescript",
"sourcemaps",
"html",
"plugin",
"init",
@williamahartman
williamahartman / FrameRate.java
Created January 15, 2015 03:17
Display framerate in a LibGDX graphics window. Call update() and render() in your main render method.
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Disposable;
import com.badlogic.gdx.utils.TimeUtils;
/**
* A nicer class for showing framerate that doesn't spam the console
* like Logger.log()
@roachhd
roachhd / quick-ref-jekyll-markdown.md
Created November 11, 2014 09:15
Jekyll Markdown Quick Reference

#Jekyll Markdown Quick Reference

####Write in simply awesome markdown

layout: post
title: Markdown Style Guide
---
@dukeofharen
dukeofharen / gist:e2c60b4478408b53d743
Last active June 18, 2023 19:20
WordPress like shortcode parser for PHP
<?php
//The content which should be parsed
$content = '<p>Hello, my name is John an my age is [calc-age day="4" month="10" year="1991"].</p>';
$content .= '<p>Hello, my name is Carol an my age is [calc-age day="26" month="11" year="1996"].</p>';
//The array with all the shortcode handlers. This is just a regular associative array with anonymous functions as values. A very cool new feature in PHP, just like callbacks in JavaScript or delegates in C#.
$shortcodes = array(
"calc-age" => function($data){
$content = "";
//Calculate the age