Skip to content

Instantly share code, notes, and snippets.

Lucas Motta lucasmotta

Block or report user

Report or block lucasmotta

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
View custom-vscode.css
.monaco-tree, .part.sidebar {
font-family: "Operator Mono";
font-size: 12px;
}
@lucasmotta
lucasmotta / styles.less
Created Oct 12, 2016
Atom One Light Rainbow
View styles.less
/***********************************************
* GRADIENT THEME
**********************************************/
@gradient-start: #3E8CC4;
@gradient-end: #A07AB2;
@gradient-ui-background: #FFFFFF;
@gradient-ui-color: #000000;
@gradient-ui-opacity: 75%;
@gradient-padding: 8px;
@lucasmotta
lucasmotta / SassMeister-input-HTML.html
Created Oct 16, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="group">
<h2>Shapes</h2>
<p>Modifiers: <span>underline</span>, <span>outline</span>, <span>pill</span></p>
<div class="btn">Button</div>
<div class="btn btn--underline">Underlined</div>
<div class="btn btn--outline">Outline</div>
<div class="btn btn--squared btn--outline">Squared</div>
<div class="btn btn--pill btn--outline">Pill Button</div>
</div>
@lucasmotta
lucasmotta / SassMeister-input-HTML.html
Last active Oct 16, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="group">
<h2>Shapes</h2>
<p>Modifiers: <span>underline</span>, <span>outline</span>, <span>pill</span></p>
<div class="btn">Button</div>
<div class="btn btn--underline">Underlined</div>
<div class="btn btn--outline">Outline</div>
<div class="btn btn--pill btn--outline">Pill Button</div>
</div>
@lucasmotta
lucasmotta / react-router-issue.sh
Created Sep 3, 2015
Issue when running the react-webpack-node project
View react-router-issue.sh
$ git:(upstream ⚡ master) 10A npm run dev
> react-designer-news@1.0.0 dev /Users/*******/Projects/personal/react-designer-news
> NODE_ENV=development node server/index.js
Environment: development
/Users/*******/Projects/personal/react-designer-news/public/assets/app.server.js:69
var _reactRouterLibLocation = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"react-router/lib/Location\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
^
@lucasmotta
lucasmotta / is-port-being-used
Created Jul 20, 2015
Check if a specific port is being used on Mac OX
View is-port-being-used
sudo lsof -i :8000 # checks port 8000
@lucasmotta
lucasmotta / delete-empty-folders.sh
Created Jun 15, 2015
Delete all empty folders recursively
View delete-empty-folders.sh
find . -type d -empty -delete
@lucasmotta
lucasmotta / SassMeister-input-HTML.html
Created Apr 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="box-grey"></div>
<div class="box-rounded"></div>
View gh-pages-deploy.md

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).

@lucasmotta
lucasmotta / dir_777_to_755.sh
Created Nov 7, 2014
Change all 777 directories only to 755
View dir_777_to_755.sh
find . -type d -perm 777 -exec chmod 755 {} \;
You can’t perform that action at this time.