Skip to content

Instantly share code, notes, and snippets.

View molayodecker's full-sized avatar
💭
Wasn’t born with a broadsword in hand but was forced to learn how to wield one

Arthur Decker molayodecker

💭
Wasn’t born with a broadsword in hand but was forced to learn how to wield one
View GitHub Profile
@jpbeltrami
jpbeltrami / git_tags.MD
Last active August 30, 2020 23:44
GIt tags cheatsheet

list tags

git tag

create tag

git tag tagname

delete remote tag

@wagnerfonseca-luizalabs
wagnerfonseca-luizalabs / Install Google Protobuf on Mac
Created October 31, 2017 18:39
How to install Google Protobuf on Mac
$ wget https://github.com/google/protobuf/releases/download/v3.4.1/protobuf-cpp-3.4.1.tar.gz
$ tar -zxvf protobuf-cpp-3.4.1.tar.gz
$ sudo mv protobuf-3.4.1 /usr/local/bin
$ cd /usr/local/bin/protobuf-3.4.1
$ ./configure
$ make
$ make install
$ protoc --version
@gutierri
gutierri / range.ts
Last active March 20, 2020 06:57
Range like python on TypeScript
function range(_p: number, _t?: number, _s?: number): Array<number> {
/**
* @param <_p> Return a list integers of zero until <_p> value.
* @param <_t> Return a list integers of <_t> until <_p> value.
* @param <_s> Return a list integers of <_t> until <_p> with steps <_s> value.
* @return Return a array list
*/
let start: number = (_t) ? _p : 0;
let stop: number = (_t) ? _t : _p;
import { Component, forwardRef, Renderer2, ViewChild } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
export const EPANDED_TEXTAREA_VALUE_ACCESSOR : any = {
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => TextareaExpandedComponent),
multi: true,
};
@Component({
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@jimitndiaye
jimitndiaye / context.ts
Created December 14, 2016 10:45
Angular2 directives supporting nested drag and drop
import { Injectable } from '@angular/core';
@Injectable()
export class DndContext {
dropEffect = 'none';
isDragging = false;
itemType = undefined;
dragData: any = undefined;
// stopDragOver= new Map<string, () => void>();
stopDragOver: () => void = undefined;
@leonardofed
leonardofed / README.md
Last active May 3, 2024 01:24
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@stwiname
stwiname / braintree.d.ts
Last active May 10, 2019 20:08
Typescript definition file for Braintree node module
//TODO update objects to show optional parameters
//TODO expand on Function parameters
//TODO add enum types
//TODO add error types
declare module Braintree {
/**********************
* Errors *
@vlandham
vlandham / part1.md
Last active March 21, 2024 12:57
Feature Branches and Pull Requests : Walkthrough

Here's a little walkthrough of how Yannick and I are using feature branches and pull requests to develop new features and adding them to the project. Below are the steps I take when working on a new feature. Hopefully this, along with watching the process on Github, will serve as a starting point to having everyone use a similar workflow.

Questions, comments, and suggestions for improvements welcome!

Start with the latest on master

When starting a new feature, I make sure to start with the latest and greatest codebase:

git checkout master
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule