Posts by Vinícius Lima • 5,059 points
106 posts
-
1
votes1
answer49
viewsQ: Can overuse of constants affect system performance?
I use quite a lot constantes in php to store information to configure the system Example: define('_CONFIG_SERVER','PC\SQLEXPRESS'); define('_CONFIG_DATA','Database');…
-
3
votes1
answer47
viewsQ: Use include or constants to pick up codes?
I have created a file containing patterns that are used in my system. I would like to know what is the difference in performance between calling the code by a include or by a constante thus:…
-
2
votes3
answers73
viewsQ: as by values within objects
I have a "span" with properties date: <span data-label="Name" data-icon="user"></span> And in the script I have a variable with objects: var widgets = { options: { label: null, icon:…
-
9
votes2
answers5484
viewsQ: Apply css to all elements except some specific ones
How to apply padding to all a. button except those who have a span, I don’t know how to do it, but an example: a.button:not(span)
-
0
votes3
answers1392
viewsQ: Create variable from string
Suppose I did have: var develop = 'confirmName1' And I want to create a new variable from the value of variable develop ("confirmName1"): var 'confirmName1' = 'valorDaNovaVariavel'…
-
1
votes1
answer1853
viewsQ: Ignore all files except one specific in GIT
I want to ignore everything from "Assets" folder except "xmutarn.js" file, so I tried on .gitignore: !assets/script/xmutarn.js /assets But it doesn’t work, how can I fix it? My . gitignore this so:…