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
{ | |
"IR-02": "Māzandarān", | |
"CY-02": "Limassol District", | |
"IR-28": "North Khorasan", | |
"IR-26": "Qazvin Province", | |
"IR-06": "Khuzestan", | |
"CY-04": "Ammochostos", | |
"IR-04": "West Azerbaijan Province", | |
"IR-05": "Kermanshah Province", | |
"IR-01": "Gilan Province", |
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
apiVersion: backstage.io/v1alpha1 | |
kind: Group | |
metadata: | |
name: acme-corp | |
spec: | |
type: organization | |
children: [team-a] | |
--- | |
apiVersion: backstage.io/v1alpha1 | |
kind: Group |
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
a { | |
color: #ff9232; | |
} | |
.c-support-counter button.m-supported, | |
.c-support-counter button:hover { | |
color: #ff9232 !important; | |
} | |
.c-support-counter button.m-supported i.icon, |
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; | |
namespace ConsoleApp5 | |
{ | |
public class Sorting | |
{ | |
public string Name { get; } | |
private Sorting(string name) | |
{ |
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
class Employee { firstname: string; lastname: string; } | |
let employee: Employee = JSON.parse(`{ "firstname": "Jon", "lastname": "Snow" }`); | |
console.log(employee); |
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 Program | |
{ | |
public static void Main(string[] args) | |
{ | |
For(0, 10, (i) => { | |
Console.WriteLine(i); | |
}); | |
//Parallel.For(0, 10, (i) => { | |
// Console.WriteLine(i); |
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
import * as request from 'request' | |
import * as $ from 'cheerio' | |
let PromisePool = require("es6-promise-pool") //no typings definition | |
var sites = [ | |
'http://www.microsoft.com', | |
'http://www.apple.com', | |
'http://stackoverflow.com', | |
'https://github.com' | |
] |
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
Arrisquei uma implementação do acoplamento aferente. | |
Meu objetivo foi fazer os testes passarem, agora eu preciso refatorar, pois a implementação está bem amadora. | |
O que falta: | |
1) Não é necessário coletar todos os tipos que um tipo referencia para depois saber se esta coleção referencia ou não o tipo que está sendo calculado o Ca. Se no meio da inspeção encontrarmos a referência que procuramos, podemos abortar o resto da inspeção | |
2) Atualmente está buscando apenas os tipos do assembly atual. Como fazer para incluir todos os assemblies que referenciam o assembly analisado? Não posso pegar todos os do AppDomain, pois eu teria como resultados assemblies sem imporância neste contexto, como as do próprio .net, nunit e specflow. |
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
//Usage: | |
context.Routes.Add("Site_Home", new SubdomainRoute( | |
"", | |
"", | |
new { area = this.AreaName, controller = "Home", action = "Index" }, | |
new { httpMethod = new HttpMethodConstraint("GET") }, | |
new string[] { "SubdomainRouting.Areas.Site.Controllers" } | |
)); | |
//Custom Route: |
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
[HttpGet] | |
public ActionResult LocalizedScript() | |
{ | |
string javaScript = SerializeResourceToJavaScript(); | |
return Content(javaScript, "application/javascript"); | |
} | |
[NonAction] | |
private string SerializeResourceToJavaScript() | |
{ |
NewerOlder