Instantly share code, notes, and snippets.

View gist:3dd7ab9531365f4644e9f6b1ca1934cd
There are two types of scope: global and local. It is the variable environment of the function. In other words, what objects the function has access to. For example, if the variable is declared in the global scope, anything in the code has access to it. No matter how deep in the call stack, a function can access these variables. Local scope can only be accessed in the variable environment the function was declared in.
Global variables are avoided because when a codebase is huge, they're hard to keep track of. The most obvious variable names are most likely taken and will result in creating conflicts. Declaring variables in their respective scope is preferred because it produces significantly less side effects.
Strict mode optimizes JS code to be more reliable and safer. For example, it throws errors when let or const aren't used to declare a variable, in order to make it harder to gain access to the global environment.
A side effect is when a function creates changes outside of it's immediate lexical scope
View sample.ks
[chara_show name="キャラクター名" layer="message0" zindex="1005"]
View socrative
group:socrative
Especie = {Nombre, Nombre_cientifico, Reino
'Petiribí'
,'Cordia trichotoma Arrab
', 'Flora'
'Yaguareté','Panthera onca', 'Fauna'
'Cóndor Andino','Vultur gryphus', 'Fauna'
}
View type-safety-for-redux-loop-cmd-run.md

The recommended usage of [redux-loop]'s [Cmd.run] lacks type safety, which is problematic when a project relies on TypeScript.

Firstly, the args are typed any, and will not error when they don't match the arguments of the function to be run.

Second, the arguments to successActionCreator don't need to match the return type of the function to be run.

Replace usages of Cmd.run with typesafeCmdRun to get type safety.

View DI_signers
{"links": [{"source": "Gov. Edward Rutledge", "target": "Arthur Middleton", "value": 2}, {"source": "Arthur Middleton", "target": "Thomas Heyward", "value": 4}, {"source": "Arthur Middleton", "target": "Thomas Lynch, Jr.", "value": 9}, {"source": "Abraham Clark", "target": "Robert R. Livingston \'The Chancellor\'", "value": 8}, {"source": "Thomas Jefferson, 3rd President of The United States Of America", "target": "John Adams, 2nd President of the USA", "value": 25}, {"source": "Gov. Benjamin Harrison", "target": "Thomas Jefferson, 3rd President of The United States Of America", "value": 4}, {"source": "Honorable Benjamin Harrison, IV, of the Landing", "target": "Thomas Jefferson, 3rd President of The United States Of America", "value": 4}, {"source": "Anne Carlin Harrison Randolph", "target": "Thomas Jefferson, 3rd President of The United States Of America", "value": 4}, {"source": "Gen. Thomas Nelson, Jr.", "target": "Thomas Jefferson, 3rd President of The United States Of America", "value": 6}, {"source":
View CFrameEditor.lua
if not plugin then print(script.Name, "is meant to run as a plugin.") return end
local Selection = game:GetService("Selection")
local CoreGui = game:GetService("CoreGui")
local joints = {}
local attachments = {}
local conCFrame = {}
local conParent = {}
View gist:2cbf7c7ef3ad7257c287ae8cb103c20b
{
"data": [
{
"Registered": "33365",
"Resolved": "32873",
"Pending": "492"
},
{
"Registered": "6144",
"Disposed": "4327",
View gist:8e70468d0268a2acc6c07f9812656b7b
#<center>Svetlana Gromak
<center> <gromak@gmail.com> (425)785-9099 [linkedin.com/svetlanagromak/](https://www.linkedin.com/in/svetlanagromak/) </center>
### PROFILE
___
__IT Project/Program Manager__ with 8 years of experience. Driving big data and machine learning projects in 5 countries. Expertise in search engines ranking quality. Background in implementations of enterprise systems in government, telecom, industrial and retail companies. Excellent analytical and problem-solving skills.
### HIGHLIGHTS OF SKILLS AND EXPERIENCE
View gist:eaefeda419a06aacded6fdb3732d9779
{
"data": [
{
"Registered": "33365",
"Resolved": "32873",
"Pending": "492"
},
{
"Registered": "6144",
"Disposed": "4327",