Skip to content

Instantly share code, notes, and snippets.

@a1300
a1300 / GIF_on_linux.md
Created May 31, 2018 15:05
Create GIF of screen on linux
sudo apt-get install byzanz-record

byzanz-record --duration=10 --width=1920 --height=1080 test.gif
@a1300
a1300 / README.md
Created May 31, 2018 16:15
Javascript Testing
@a1300
a1300 / Git Wiki
Last active June 5, 2018 09:03
Git Wiki
We couldn’t find that file to show.
{
"git.enableSmartCommit": true,
"files.autoSave": "afterDelay",
"editor.cursorStyle": "line",
"editor.wordWrap": "on",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.renderWhitespace": "boundary",
"window.zoomLevel": 1,
@a1300
a1300 / README.md
Last active July 27, 2018 23:04
Recreate asch directory easily

Recreate asch directory easily

1. Make clean asch install

execute: (from asch)

git clone https://github.com/AschPlatform/asch && cd asch && chmod u+x aschd && npm install

Build frontend

@a1300
a1300 / git-tag-delete-local-and-remote.sh
Created August 15, 2018 17:07 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@a1300
a1300 / README.md
Last active December 2, 2018 18:18

VS Code Search workaround for "search.exclude"

The following workaround worked for me ✔️

I wanted to exclude /node_modules but include /node_modules/asch-core for search.

In the .vscode/settings.json file I configured:

{
 "search.exclude": {
@a1300
a1300 / Monokai.colorscheme
Created July 21, 2018 10:31 — forked from wdullaer/Monokai.colorscheme
Monokai Konsole Colourscheme
[Background]
Color=40,40,40
[BackgroundIntense]
Color=40,40,40
[Color0]
Color=73,72,62
[Color0Intense]
@a1300
a1300 / lg-jquery-app-struct.md
Created May 8, 2019 08:45 — forked from tim545/lg-jquery-app-struct.md
Structuring a large jQuery application

Structuring a large jQuery application

This document assumes you are building a traditional backend-heavy application as opposed to a frontend-heavy appliction which would typically use a framework like Angular or React. The use of these frameworks make this document irrelevant, however also require a change to your application architecture and a much larger overhead in order to get content onto a page, so as a simple way to build interactive web content a simple jquery based js stack will do fine.

Directory structure

It's important you use a directory structure which is impartial to your development environment, chosen server language (Python v. Java v. C# ...), and styling framwork (Twitter Bootstrap etc). This layer of separation means you can swap out the styles or the backend with minimal changes to the Js, simple and maintainable.

Here's an example from the project root: