Shortcuts | Description |
---|---|
Shift+Alt+Right | Select contents of currently selected tag |
Ctrl+Shift+ [ or ] | Fold / Unfold Code region |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sites": [ | |
{ | |
"cid": "838bf6f4c0855b23dd583255", | |
"date": 1704699416800, | |
"id": 1, | |
"label": "Top Sites", | |
"starred": false, | |
"websites": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
I always forgot these simple JSX methods. | |
So I can refer this anytime. | |
Surjith S M / @surjithctly | |
**/ | |
//--------------------------------------------------------------------- | |
// Javascript map Function | |
{props.items.map((item) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
I always forgot these simple javascript methods. | |
So I can refer this anytime. | |
Surjith S M / @surjithctly | |
**/ | |
//--------------------------------------------------------------------- | |
// Javascript get element by ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sites": [ | |
{ | |
"cid": "11c42dd7dbede6948adbc02b", | |
"date": 1590162379659, | |
"id": 1, | |
"label": "Icons", | |
"starred": false, | |
"websites": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sites": [ | |
{ | |
"cid": "11c42dd7dbede6948adbc02b", | |
"date": 1590162379659, | |
"id": 1, | |
"label": "Icons", | |
"starred": false, | |
"websites": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloWorld: | |
def __init__(self, name): | |
self.name = name.capitalize() | |
def sayHi(self): | |
print "Hello " + self.name + "!" | |
hello = HelloWorld("world") | |
hello.sayHi() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloWorld | |
def initialize(name) | |
@name = name.capitalize | |
end | |
def sayHi | |
puts "Hello !" | |
end | |
end | |
hello = HelloWorld.new("World") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cache class name | |
var $element = $('.element'); | |
if ($element.length && $.fn.functionname) { | |
// Do awesome Stuff | |
} |
NewerOlder