Skip to content

Instantly share code, notes, and snippets.

View nombrekeff's full-sized avatar
🤘
Working on Cardboard

Manolo Edge nombrekeff

🤘
Working on Cardboard
View GitHub Profile
RIDDLE:
https://dev.to/nombrekeff/challenge-can-you-solve-this-puzzle-1947
ANSWER:
Oh, Ann, please kiss me dry!
CLUES:
* Decoded ASCII message with correct punctuation suggests some kind of early character based encryption (not full binary encryption).
@nombrekeff
nombrekeff / flatten-object.js
Last active December 8, 2019 10:53
Get all path from an object
/**
* returns an array containing all paths to a value other than an object
* @param {object} obj
*/
function flattenObject(obj) {
if (typeof obj !== 'object') {
return [];
}
@nombrekeff
nombrekeff / ralf_markdown.md
Last active November 26, 2017 13:34
Documentation for RALLF markdown, markdown to style your task's description

logo RALLF Markdown

Simple markdown to style your tasks description

Available Markdown

**bold** _italic_ `code` [text](url)
Renders As bold italic code link

Available Headers

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 11, 2024 12:06
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@remojansen
remojansen / class_decorator.ts
Last active September 14, 2023 14:54
TypeScript Decorators Examples
function logClass(target: any) {
// save a reference to the original constructor
var original = target;
// a utility function to generate instances of a class
function construct(constructor, args) {
var c : any = function () {
return constructor.apply(this, args);
}
@sothmann
sothmann / logdecorator.ts
Created August 4, 2015 12:14
TypeScript Decorator - Log method calls
function log(target, key, descriptor: PropertyDescriptor) {
var originalMethod = descriptor.value;
descriptor.value = function(...args: any[]) {
let functionName = key;
console.log(functionName + "(" + args.join(", ") + ")");
let result = originalMethod.apply(this, args);
console.log("=> " + result);
return result;
};
@rxaviers
rxaviers / gist:7360908
Last active May 12, 2024 06:07
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@afgomez
afgomez / validate_spanish_id.js
Last active May 5, 2024 12:31
Spanish DNI, CIF, NIE validator
/**
* ValidateSpanishID. Returns the type of document and checks its validity.
*
* Usage:
* ValidateSpanishID( str );
*
* > ValidateSpanishID( '12345678Z' );
* // { type: 'dni', valid: true }
*
* > ValidateSpanishID( 'B83375575' );
@19h
19h / reset.js
Created February 19, 2013 22:51
Node.js — Clear Terminal / Console. Reset to initial state.
console.reset = function () {
return process.stdout.write('\033c');
}