Skip to content

Instantly share code, notes, and snippets.

View HristoKolev's full-sized avatar
🎯
Focusing

Hristo Kolev HristoKolev

🎯
Focusing
  • Sofia, Bulgaria
  • 06:38 (UTC +03:00)
View GitHub Profile
@HristoKolev
HristoKolev / postgresql-constraints.sql
Created February 29, 2024 10:31
postgressql constraints fix
-- select all duplicate layouts
with agg as (SELECT name, type, owner FROM layouts GROUP BY name, type, owner HAVING COUNT(*) > 1)
SELECT
l.*
FROM agg
JOIN layouts l ON l.name = agg.name AND l.type = agg.type AND l.owner = agg.owner;
-- select all duplicate prefs
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {},
"ignorePatterns": [
"package-lock.json",
"/dist/",
import { addReducers } from '../store';
addReducers({
account: accountReducer
});
declare module '../store' {
interface IReduxState {
account: IAccountState;
}
declare module '../store' {
interface IReduxState {
account: IAccountState;
}
}
export interface IReduxState {
settings: ISettingsState;
session: ISessionState;
}
import { addReducers } from '../store';
addReducers({
account: accountReducer
});
@HristoKolev
HristoKolev / directives-exercise-start.markdown
Created November 18, 2017 11:09
Directives Exercise Start
namespace ConsoleApp5
{
using System;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ConsoleApplication8
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics;
internal class Program
{
private static void Main(string[] args)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/bootswatch/cosmo/bootstrap.min.css">
<link rel="stylesheet" href="style.css">