Skip to content

Instantly share code, notes, and snippets.

View surjithctly's full-sized avatar

Surjith S M surjithctly

View GitHub Profile
@surjithctly
surjithctly / mission_control_ext_bkp.json
Created January 8, 2024 07:52
Mission Control Chrome Extension Backup Data
{
"sites": [
{
"cid": "838bf6f4c0855b23dd583255",
"date": 1704699416800,
"id": 1,
"label": "Top Sites",
"starred": false,
"websites": [
{
@surjithctly
surjithctly / jsx-cheatsheet.jsx
Last active April 19, 2021 13:55
JSX Cheatsheet
/**
I always forgot these simple JSX methods.
So I can refer this anytime.
Surjith S M / @surjithctly
**/
//---------------------------------------------------------------------
// Javascript map Function
{props.items.map((item) => {
@surjithctly
surjithctly / js-cheatsheet.js
Last active March 5, 2021 08:00
Vanilla JavaScript Cheat Sheet
/**
I always forgot these simple javascript methods.
So I can refer this anytime.
Surjith S M / @surjithctly
**/
//---------------------------------------------------------------------
// Javascript get element by ID
@surjithctly
surjithctly / .eleventy.js
Created September 29, 2020 09:28
Eleventy markdown Plugin
module.exports = function (eleventyConfig) {
/* Markdown Plugins */
let markdownIt = require("markdown-it");
let markdownItAnchor = require("markdown-it-anchor");
let options = {
html: true,
breaks: true,
linkify: true,
};
let opts = {
@surjithctly
surjithctly / mission_control_ext_bkp.json
Created May 23, 2020 07:33
Mission Control Chrome Extension Backup Data
{
"sites": [
{
"cid": "11c42dd7dbede6948adbc02b",
"date": 1590162379659,
"id": 1,
"label": "Icons",
"starred": false,
"websites": [
{
@surjithctly
surjithctly / mission_control_ext_bkp.json
Last active May 23, 2020 07:30
Mission Control Chrome Extension Backup Data
{
"sites": [
{
"cid": "11c42dd7dbede6948adbc02b",
"date": 1590162379659,
"id": 1,
"label": "Icons",
"starred": false,
"websites": [
{
@surjithctly
surjithctly / hello_world.py
Created May 20, 2020 15:26
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@surjithctly
surjithctly / hello_world.rb
Created May 18, 2020 15:54
Hello World Examples
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
@surjithctly
surjithctly / vscode-shortcuts.md
Last active November 2, 2020 11:55
VS Code Shortcuts
Shortcuts Description
Shift+Alt+Right Select contents of currently selected tag
Ctrl+Shift+ [ or ] Fold / Unfold Code region
@surjithctly
surjithctly / script.js
Created July 21, 2017 13:15
jQuery - Run only if Plugin Exists and the Element is found. Else Skip
// Cache class name
var $element = $('.element');
if ($element.length && $.fn.functionname) {
// Do awesome Stuff
}