Skip to content

Instantly share code, notes, and snippets.

View svallory's full-sized avatar
:bowtie:
Coding like there's no tomorrow

Saulo Vallory svallory

:bowtie:
Coding like there's no tomorrow
View GitHub Profile
@svallory
svallory / foo.md
Created December 17, 2022 02:42
Testing Gists VS extension

hehehe

@svallory
svallory / ui.disl
Created December 15, 2022 21:09
Disl for UI
ui Web
/**
* Defines a context for the screens
* A context is a set of screens that are related to each other.
* It can have preconditions that are checked before allowing the user to
* navigate to the screens in the context.
*
* A context can have preconditions that are checked before allowing the user
* to navigate to the screens in the context.
*
@svallory
svallory / Emoji and Unicode.txt
Created December 8, 2022 18:42
Just playing with possible meaning of emojis in code
Commands: 🎮 🕹 ⚙ ⌨ 🎚 🎛 ⌘ 🚦 🚥 🙏 🙏🏼 ⌃ ^
Receive: 📥 📩 📨 📬
Publish: 📰 📢
Change: ⚡️
Negative: 🚫 🛑 ❌ ❎ ⤫
Warning: ⚠️ 🚨 🚧 ⛔ ⚠️⚠
Notify: 🔔 🎉 📟 📢 📣 🗣 🔊
Mail: 📨 📤 📥 📧 📩 📪 📫 📬 📭 📮 📦
Time: ⏰ ⏱ ⏲ ⏳ ⌛ ⧗ ⧖
Movement: 🚀 🛫 🛬
@svallory
svallory / README.md
Created October 25, 2021 00:26
Figma Plugin Development Live Reload

Figma Plugin Development Live Reload

  1. Create a run-plugin.sh somewhere in your project
  2. Copy the code from the run-plugin.sh file in this gist
  3. Install nodemon with yarn add --dev nodemon
  4. Add a script in the scripts property of your package.json replacing PLUGIN_CODE_FOLDER by the path to the folder where your plugin code lives
    "scripts": {
    

"livereload": "nodemon --watch PLUGIN_CODE_FOLDER --exec run-plugin.sh"

@svallory
svallory / test-index.js
Created April 4, 2019 12:20
VSCode Stryker Mutator test
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
/* tslint:disable no-require-imports */
const fs = require("fs");
const path = require("path");
const glob = require("glob");
const paths = require("path");
const istanbul = require('istanbul');
@svallory
svallory / run_them_all.sh
Created April 27, 2017 11:14
Updates ubuntu with nodejs 6 and yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get update && sudo apt-get install -y nodejs yarn
@svallory
svallory / nginx-config
Last active February 20, 2018 18:42
Nginx Wildcard config
server {
listen 80;
server_name ~^(www\.)?(?<project>.+?).dev$;
root /projects/$project;
index index.html index.htm index.php;
charset utf-8;
location / {
@svallory
svallory / Deploying Sharetribe to Heroku.md
Last active August 12, 2023 21:09
Deploying Sharetribe to Heroku

Deploying to Heroku

  1. Deploy the app to heroku following heroku normal instructions (add link to heroku help)

  2. Set heroku environment variables

    Make sure all the options in config.yml are properly set then run:

     bundle exec rake heroku:config
    
@svallory
svallory / netstat -an
Created August 25, 2015 02:06
Figuring out why nginx dowsn't work on 80
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 192.168.25.111.58556 94.23.9.195.80 ESTABLISHED
tcp4 0 0 192.168.25.111.58555 91.185.207.128.80 ESTABLISHED
tcp4 0 0 192.168.25.111.58554 91.185.207.128.80 ESTABLISHED
tcp4 0 0 192.168.25.111.58553 23.239.11.213.80 ESTABLISHED
tcp4 0 0 192.168.25.111.58455 192.111.0.25.443 ESTABLISHED
tcp4 0 0 192.168.25.111.58452 64.233.186.95.80 ESTABLISHED
tcp4 0 0 192.168.25.111.58441 186.215.111.105.80 ESTABLISHED
tcp4 0 0 192.168.25.111.58434 173.194.119.4.80 ESTABLISHED
@svallory
svallory / funding-tracker.js
Created November 3, 2014 23:19
funding-tracker.js
(function() {
// Localize jQuery variable
var jQuery;
/******** Load jQuery if not present *********/
if (window.jQuery === undefined || window.jQuery.fn.jquery !== '1.4.2') {
var script_tag = document.createElement('script');
script_tag.setAttribute("type","text/javascript");
script_tag.setAttribute("src",