This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<system.webServer> | |
</staticContent> | |
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" /> | |
</staticContent> | |
</system.webServer> | |
<configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paste code on console from chrome in a playlist page like this: https://open.spotify.com/user/spotify/playlist/37i9dQZF1DX2e5iuTsMOoD | |
var eles = document.getElementsByClassName('track-name');var list = ''; | |
for(var i = 0; i < eles.length; i++) {list+=eles[i].innerText + '\n';} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT CONCAT(SC.NAME, '.', TA.NAME) TABELA, | |
FORMAT(SUM(PA.ROWS), 'N0') LINHAS, | |
(SELECT CONCAT(CC.NAME, '; ') FROM SYS.COLUMNS CC WHERE CC.object_id = TA.object_id FOR XML PATH('')) COLUNAS | |
FROM SYS.TABLES TA | |
INNER JOIN SYS.PARTITIONS PA ON PA.OBJECT_ID = TA.OBJECT_ID | |
INNER JOIN SYS.SCHEMAS SC ON TA.SCHEMA_ID = SC.SCHEMA_ID | |
INNER JOIN SYS.COLUMNS C ON C.OBJECT_ID = TA.OBJECT_ID | |
WHERE TA.IS_MS_SHIPPED = 0 AND PA.INDEX_ID IN (1,0) | |
AND TA.NAME NOT LIKE '%HIDL%' | |
GROUP BY SC.NAME,TA.NAME,TA.object_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
public class WebService | |
{ | |
public string Url { get; set; } | |
public string MethodName { get; set; } | |
public Dictionary<string, string> Params = new Dictionary<string, string>(); | |
public XDocument ResultXML; | |
public string ResultString; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Data.SqlClient; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Models.Schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- _LOGATUALIZARESTRUTURA 'dbo', NULL | |
ALTER PROCEDURE _LOGATUALIZARESTRUTURA(@SCHEMA VARCHAR(20), @TABLE VARCHAR(20)) | |
AS | |
BEGIN | |
/* | |
tipos a usar no sql server | |
- varchar (texto) | |
- int (máx 2.147.483.647) 4bytes | |
- tinyint (campos de tipo, máx 255) 1byte |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var trunc = function (vl) { | |
return Math.trunc(vl * 100) / 100; | |
}; | |
var func = function (valor, parcelas) { | |
if (parcelas === 1) | |
return [valor]; | |
var integ = Math.trunc(valor * 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OnlyRootContractResolver : CamelCasePropertyNamesContractResolver | |
{ | |
protected Type _root; | |
protected List<string> _included; | |
public OnlyRootContractResolver(Type root, IEnumerable<string> included) | |
{ | |
_root = root; | |
_included = new List<string>(included ?? new string[0]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AutoPersist<T> : IEnumerable<T> | |
{ | |
private readonly object _lock = new object(); | |
private readonly List<T> _list; | |
private readonly string _path; | |
public AutoPersist() | |
{ | |
_path = FormatPath(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.vendas; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import androidx.appcompat.app.AppCompatActivity; |
OlderNewer