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 main | |
import ( | |
"io" | |
"net/http" | |
) | |
const port = ":8000" | |
func main() { |
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 main | |
import "fmt" | |
func main() { | |
var all InfoParameters | |
all.A = 1 | |
all.B = "good" | |
all.C = true | |
all.D = 2 |
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
@page "/big_json" | |
@inject HttpClient Http | |
@if (friends == null) | |
{ | |
<p><em>Loading...</em></p> | |
} | |
else | |
{ |
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
/****** Script for slect random rwos. Works better with a large table and a good designed database ;) ******/ | |
declare @rand bigint | |
declare @maxid int = (select max(id) from dbo.TODOS); | |
select @rand = abs((CHECKSUM(newid()))) % @maxid; | |
select * | |
from TODOS as t | |
where t.id >= @rand |
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
int ⁀‿⁀ = 0, ⁀⁔⁀ = 1, ¢ = 2; | |
String nonAscii = "⁀‿⁀"; | |
if (⁀‿⁀ != ⁀⁔⁀) | |
System.out.println(¢); | |
System.out.println(nonAscii); |
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 = "<del>Ca </del><del>arhitect </del><del>nu </del><del>te </del><del>angajeaza </del><del>nimeni </del><del>decat </del><del>cu </del><del>titlu</del><del>.</del> <del>Am </del><del>incercat </del><del>si </del><del>majoritatea </del><del>ofereau </del><del>3500 </del><del>net </del>(<del>eu </del><del>ceream </del><del>pe </del><del>la </del><del>4000</del><del>)</del><del>.</del> <del>Cred </del><del>ca </del><del>in </del><del>Romania </del><del>pozitia </del>de <del>arhitect </del><del>nu </del><del>e </del><del>inteleasa </del><del>prea </del><del>bine</del><del>.</del>".replace("<del>", " ").replace("</del>", " ") | |
print (a) |
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
var x = 10; | |
System.out.println(x); |
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 top 20 Reputation, DisplayName, WebsiteUrl, Location, RANK() | |
over (order by Reputation desc) as Ranking | |
from Users | |
where Location like '%Romania%' | |
order by Reputation desc | |
select Reputation, DisplayName, WebsiteUrl, Location, RANK() | |
over (order by Reputation desc) as Ranking |
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
rsync -avz . --dry-run --exclude='.idea,vs,cache*' ../../../../xampp/htdocs/2PerformantIntegration |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |