Skip to content

Instantly share code, notes, and snippets.

View GianCastle's full-sized avatar
🎯
Focus

Giancarlos Castillo GianCastle

🎯
Focus
View GitHub Profile
@GianCastle
GianCastle / README.md
Created March 3, 2020 10:06 — forked from sact1909/README.md
SQL Server Store Procedure to Fill Table with a Web API

SQL Server

This script was made by Steven Checo

How it works

  • You need to run the following code once, before create the stored procedure
sp_configure 'show advanced options', 1;   
GO   
RECONFIGURE; 
@GianCastle
GianCastle / recursion.js
Created October 2, 2017 19:37 — forked from bendc/recursion.js
Functional loop
const loop = (() => {
const recur = (callback, count, i=0) => {
if (i == count-1) return callback(i);
callback(i);
return recur(callback, count, i+1);
};
return (callback, count) => {
if (count > 0) return recur(callback, count);
};
})();