Skip to content

Instantly share code, notes, and snippets.

View SebasG22's full-sized avatar
💭
Motivated

Sebastián Guevara SebasG22

💭
Motivated
  • Pinebox
  • Bogotá,Colombia.
View GitHub Profile
@piyonishi
piyonishi / focus-end-input-react.js
Last active December 21, 2023 09:48
How to put focus at the end of an input with React.js
// https://coderwall.com/p/0iz_zq/how-to-put-focus-at-the-end-of-an-input-with-react-js
moveCaretAtEnd(e) {
var temp_value = e.target.value
e.target.value = ''
e.target.value = temp_value
}
render() {
<textarea
@leedongwei
leedongwei / index.html
Last active November 15, 2023 01:04
Using web workers with pdfmake.js
<html>
<head>
<title>Demo for using web workers with pdfmake.js</title>
<style>
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
@markknol
markknol / browser-support-table.md
Last active July 11, 2020 15:50
Browser support table in markdown

Table

Chrome Firefox IE Opera Safari
Latest ✔ Latest ✔ 10+ ✔ Latest ✔ 6.1+ ✔

Code

![Chrome](https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png)
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active November 12, 2023 23:00
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@cobyism
cobyism / gh-pages-deploy.md
Last active June 20, 2024 17:38
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).