Skip to content

Instantly share code, notes, and snippets.

View wescosta's full-sized avatar
😎
Enjoying coder's life with ReactJS and Flutter

Wesley Costa wescosta

😎
Enjoying coder's life with ReactJS and Flutter
View GitHub Profile
@wescosta
wescosta / merge-sort.js
Created July 31, 2021 20:34
Merge sort JS implementation
function mergeSort(nums){
if (nums.length === 1) return nums;
const half = Math.floor(nums.length / 2);
const left = mergeSort(nums.slice(0, half));
const right = mergeSort(nums.slice(half));
return merge(left, right);
}
@wescosta
wescosta / README.md
Last active June 3, 2021 12:30
null-safety-badge

Add it to your README.md file This repo supports the null safety language feature.

To add the Null safety badge to your README file, simply copy this image tag below

<img src="https://gist.githubusercontent.com/wescosta/26884502a355b6546177db7869b8e19e/raw/037905e760e86d6c7d6150d07edcb15826e3e66b/null-safety-badge.svg" width="80" height="30" alt="This repo supports the null safety language feature.">
@wescosta
wescosta / rebase.sh
Created January 16, 2019 18:42
Git rebase current branch
#!/bin/bash
function rebase () {
branch=git branch | grep \* | cut -d ' ' -f2;
git checkout master;
git pull origin master;
git checkout $branch;
git rebase master $branch;
};
docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) -p 8080:8080 node bash
/*
|--------------------------------------------------------------------------
| Browser-sync config file
|--------------------------------------------------------------------------
|
| For up-to-date information about the options:
| http://www.browsersync.io/docs/options/
|
| There are more options than you see here, these are just the ones that are

#Selectors

Selectors are the heart of jQuery. They were borrowed from CSS selectors, though. Then jQuery added its bits to it. It is very simple to find elements in the page by class, attributes, type, content, state, etc. You must have a good understanding on selector in order to write good code with jQuery. Combining selectors can help you to find the very specific element your code is looking for. So feel free to mix and mathc and test these out.

For full reference on selectors, visti the following links:

JQuery Selector API CSS Selector Reference

##Simple selectors