Skip to content

Instantly share code, notes, and snippets.

View kahboom's full-sized avatar
🍕
pizza

Rachel Yordán kahboom

🍕
pizza
View GitHub Profile
@subudeepak
subudeepak / angular-loadscript-with-documentwrite.js
Last active September 9, 2024 04:25 — forked from endorama/angular-loadscript.js
Loading scripts on ngInclude (ng route) - Script loading directive
/**
* This module is a variant which supports document.write. If you need document.write use this instead
* Author: Deepak Subramanian @subudeepak(https://github.com/subudeepak)
* Distributed under MIT License
*/
/*global angular */
(function (ng) {
'use strict';
app.directive('script', function() {
return {
@eabait
eabait / charting.libraries.md
Last active July 13, 2017 04:34
Charting Libraries
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active July 10, 2025 04:46
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@domenic
domenic / 0-github-actions.md
Last active June 6, 2025 08:01
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with GitHub Actions

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:

  • It is much easier and requires less steps, because you are already authenticated with GitHub, so you don't need to share secret keys across services like you do when coordinate Travis CI and GitHub.
  • It is free, with no quotas.
  • Anecdotally, builds are much faster with GitHub Actions than with Travis CI, especially in terms of time spent waiting for a builder.
@vsouza
vsouza / .bashrc
Last active June 25, 2025 10:02
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@xero
xero / irc.md
Last active July 16, 2025 06:32
irc cheat sheet
@paulirish
paulirish / what-forces-layout.md
Last active July 19, 2025 12:35
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
brew update
brew upgrade
brew install --HEAD xhyve
# requires installing golang, 'brew install golang', set 'GOPATH' in your .bashrc to some directory like ~/go
go get github.com/docker/machine
cd $GOPATH/src/github.com/docker/machine
make build && make install
brew install docker-machine-driver-xhyve
getAll(): Observable<Connection[]> {
return this.forge.executeCommand({
commandId: 'ipaas-search-connectors',
data: {
inputList: [{ latest: true, filter: '' }]
}
})
.map((body) => {
return JSON.parse(body.message);
})
ipaas-edit-connector-options page 3:
{
"messages": [
],
"valid": true,
"canExecute": true,
"out": "",
"err": "",