Skip to content

Instantly share code, notes, and snippets.

View aeciolevy's full-sized avatar

Aecio Levy aeciolevy

  • VentionCo
  • Canada
View GitHub Profile
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"bold_folder_labels": false,
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"default_encoding": "UTF-8",
"file_exclude_patterns":
[
"*.log"
],
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@aeciolevy
aeciolevy / php.ini
Created March 19, 2018 07:10
PHP configuration to Xdebug in Mac OS with Apache only
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@aeciolevy
aeciolevy / Singleton.cpp
Last active April 4, 2018 06:34
Singleton C++ allowing Inheritance
/* Copyright (C) Aécio Levy
* Written by Aécio Levy - 16/03/2018
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
@aeciolevy
aeciolevy / vscodeStyle.css
Last active November 11, 2018 15:34
Custom style to vscode
/*
I decided on the flottflott cursive font for now. Works better for me than FlottFlott.
*/
.mtk7,
.mtk3,
.mtk13,
span.mtk11.mtki {
margin-left: 1px;
font-family: "flottflott";
font-size: 1.5em;
@aeciolevy
aeciolevy / javascript.json
Created December 12, 2018 15:34
Javascript Snippet for VS Code
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1', $2);",
@aeciolevy
aeciolevy / .vimrc
Last active February 3, 2019 21:24
Vim config
" Load Pathogen Plugin
execute pathogen#infect()
" General
set number " Show line numbers
set linebreak " Break lines at word (requires Wrap lines)
set showbreak=+++ " Wrap-broken line prefix
set textwidth=100 " Line wrap (number of cols)
set showmatch " Highlight matching brace
set hlsearch " Highlight all search results
const net = require('net');
const client = net.createConnection({ host: '192.168.7.2', port: 9999 });
const delay = time => new Promise(resolve => setTimeout(resolve, time));
client.on('data', (data) => {
data = data.toString().trim();
console.log('data received: ', data);
});
const net = require('net');
let isConnected = false;
const delay = time => new Promise(resolve => setTimeout(resolve, time));
const client = net.createConnection({ host: '192.168.7.2', port: '9999' }, () => {
console.log('client connected to machine motion');
isConnected = true;
});
let count = 1;
@aeciolevy
aeciolevy / modal.html
Last active September 20, 2023 14:48
Pop up modal for new Klickpages and Klicksend form
<style>
:root {
--spacing1: 4px;
--spacing2: 8px;
--spacing3: 16px;
--hue: 400;
--text1: hsl(0, 0%, 100%);
--text2: hsl(var(--hue), 4transform: translate(-50%, -50%);%, 80%);
font-size: 1.25rem;
}