Skip to content

Instantly share code, notes, and snippets.

🦋
Trying…

Satyajit Sahoo satya164

🦋
Trying…
Block or report user

Report or block satya164

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@satya164
satya164 / sbc-api-react-es5.sublime-settings
Last active Sep 15, 2016
Sublime Text auto-completions for ReactJS (ES5)
View sbc-api-react-es5.sublime-settings
// Usage:
// Go to `Sublime Text > Browse Packages`
// Place the file under `User` directory
// Enable the `react-es5` in `sb-setting.sublime-settings` (refer <https://github.com/Pleasurazy/Sublime-Better-Completion/>)
{
"scope": "source.js",
"completions":
[
View react.sublime-completions
// Usage:
// Go to `Sublime Text > Browse Packages`
// Place the file under `User` directory
{
"scope": "source.js",
"completions":
[
// Top-level API
@satya164
satya164 / sbc-api-react.sublime-settings
Last active Jun 4, 2017
Sublime Text auto-completions for ReactJS
View sbc-api-react.sublime-settings
// Usage:
// Go to `Sublime Text > Browse Packages`
// Place the file under `User` directory
// Enable the `react` in `sb-setting.sublime-settings` (refer <https://github.com/Pleasurazy/Sublime-Better-Completion/>)
{
"scope": "source.js",
"completions":
[
@satya164
satya164 / quantity-query.scss
Last active Jul 26, 2017
Quantity Queries in Sass
View quantity-query.scss
@mixin quantity-query($selector, $type, $amount, $max: null) {
@if $type == at-least {
#{$selector}:nth-last-child(n+#{$amount}),
#{$selector}:nth-last-child(n+#{$amount}) ~ #{$selector} { @content; }
} @else if $type == at-most {
#{$selector}:nth-last-child(-n+#{$amount}):first-child,
#{$selector}:nth-last-child(-n+#{$amount}):first-child ~ #{$selector} { @content; }
} @else if $type == between {
@if type-of($max) != "number" {
@error "Max value must be a number for quantity-query.";
View lace.js
"use strict";
function Lace(selector) {
var nodes, el;
// Handle situation where called without "new" keyword
if (false === (this instanceof Lace)) {
return new Lace(selector);
}
You can’t perform that action at this time.