Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Eddy EddyVinck

🎯
Focusing
View GitHub Profile
@EddyVinck
EddyVinck / setup.md
Last active Jul 18, 2019
Setting up ssh for Gitlab on Windows
View setup.md

After installing Git and in Git Bash...

$ ssh-keygen -t rsa

You can change the default name or location if you prefer

Copy the key to your GitLab

$ cat ~/.ssh/my_key.pub | xclip

View module-usage-variable.twig
{# The module_usage output #}
{
settings_module= {
body= {
widget_name=Module Usage,
module_id=6056115,
header=true,
header_links=true,
client_data_rows=true,
hero_image_with_text=true,
View header-logo-email-module.twig
{% if use_header_logo %}
<!-- Start header logo -->
<table>
<tr>
<td>
<table>
<tr>
<td>
View Testcafe-first-tests.js
import { Selector } from "testcafe";
import { TodoPo } from "./po/todo.po";
// #1: page under test is http://todomvc.com/examples/vanillajs/
fixture("Test TodoMVC App").page("http://todomvc.com/examples/vanillajs/");
// #2
test("Create todo", async t => {
const todoList = Selector("ul.todo-list");
View using-global-values-in-email.twig
{# in my_email_template.html #}
{# Notice use_header_logo={{use_header_logo}} in the module_block. #}
{# This is how the value is passed into the module. #}
{# It's important to explicitly check for false since the value can be null #}
{# When the client has not changed the boolean switches in 'Module Usage' #}
{# This is based on the assumption that the module is enabled by default. #}
<table>
<tr>
View find-module-by-id.twig
{# In my_email_template.html #}
{# Add the control module so authors can change the settings in the template #}
{% module_block module "module_1234"
module_id="1234" label="Module Usage",
overrideable=True,
per_widget_wrapper_html='',
widget_name='Module Usage',
wrapping_html='',
label='Module Usage' %}
View use-this-module.twig
{% if module.module_settings.use_this_module_ %}
<!-- HTML to show when checked -->
{% endif %}
View HubSpot-Wrapped-Custom-Module.twig
<!-- All the markup you see here is added by HubSpot-->
<tr>
<td align="center" valign="top" class="bodyContent" width="100%" colspan="12">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" colspan=12 width="100.0%" class=" column">
<div class="widget-span widget-type-custom_widget ">
<div class="layout-widget-wrapper">
{% module_block module "module_1234"
module_id=5678,
@EddyVinck
EddyVinck / 2017-06-28T12_53_16_520Z-debug.log
Created Jun 28, 2017
Debug log after updating to webpack 3
View 2017-06-28T12_53_16_520Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@4.2.0
3 info using node@v7.9.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle webpack-demo@1.0.0~prebuild: webpack-demo@1.0.0
6 silly lifecycle webpack-demo@1.0.0~prebuild: no script for prebuild, continuing
View i_dont_know_why_im_sharing_this_but_whatever.js
// by: throw_away_stacy on reddit
// and yes I do birthday parties too
const WebSocket = require('websocket').w3cwebsocket;
const users = require('./users.json');
const Q = require('q');
const superagent = require('superagent');
const _ = require('highland');
const getPixels = require('get-pixels');
You can’t perform that action at this time.