Skip to content

Instantly share code, notes, and snippets.

@nikolovlazar
nikolovlazar / enums.ts
Last active October 14, 2016 18:23
TypeScript String Enums (or any type at all)
enum Screens {
Splash = <any>"Splash",
Login = <any>"Login",
Dashboard = <any>"Dashboard",
Settings = <any>"Settings",
Friends = <any>"Friends"
}
console.log(Screens.Splash) // => Splash
console.log(Screens.Login) // => Login
@nikolovlazar
nikolovlazar / zadaca.js
Created November 9, 2016 12:45
zadacha recurzija
function dragon(name, element, act) {
console.log(name + " spits " + element + " and " + act);
}
function curry(f, acc) {
acc = acc || [];
if(acc.length == f.length){
f.apply(this, acc || []);
} else{
return function(k){
acc.push(k)
UPDATE wp_options SET option_value = replace(option_value, 'http://sezavino.mk', 'https://sezavino.mk') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://ivankarangelova.com','https://sezavino.mk');
UPDATE wp_posts SET post_content = replace(post_content, 'http://ivankarangelova.com', 'https://sezavino.mk');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://ivankarangelova.com','https://sezavino.mk');
@nikolovlazar
nikolovlazar / .vscodestyles.css
Last active March 1, 2018 21:09
.vscodestyles.css
.monaco-shell {
font-family: "Operator Mono", "Inconsolata", monospace;
}
/* This makes the dirty tab circle yellow */
.vs-dark
.monaco-workbench
> .part.editor
> .content
> .one-editor-silo
{
"workbench.colorTheme": "Cobalt2",
"editor.fontFamily": "Operator Mono Lig, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 17,
"editor.lineHeight": 25,
"editor.letterSpacing": 0.5,
"files.trimTrailingWhitespace": true,
"editor.fontWeight": "200",
"editor.cursorStyle": "block",
@nikolovlazar
nikolovlazar / fuckbinobj.sh
Created August 13, 2018 14:22
fuck bin obj
#!/bin/bash
find . -iname 'bin' -o -iname 'obj' | xargs rm -rf
@nikolovlazar
nikolovlazar / cloudSettings
Last active June 2, 2021 12:48
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-06-02T12:47:16.120Z","extensionVersion":"v3.4.3"}
@nikolovlazar
nikolovlazar / .zshrc
Last active March 31, 2022 06:18
VSCode Settings
if [[ "${VSC}" == "yep" ]]
then
PS1='$ > '
fi
@nikolovlazar
nikolovlazar / arrow-right.tsx
Created November 13, 2021 14:22
CodeDay Chakra UI Workshop Project Icons
import { Icon, IconProps } from '@chakra-ui/react';
const ArrowRight = (props: IconProps) => (
<Icon {...props} viewBox='0 0 14 14'>
<path
d='M7.68364 6.99999L4.79614 4.11249L5.62098 3.28766L9.33331 6.99999L5.62098 10.7123L4.79614 9.88749L7.68364 6.99999Z'
fill='currentColor'
/>
</Icon>
);
@nikolovlazar
nikolovlazar / modal-anatomy.tsx
Created October 14, 2022 10:46
The Modal Anatomy illustration
<AspectRatio ratio={16 / 9}>
<svg
width='100%'
height='100%'
viewBox='0 0 960 540'
fill='none'
xmlns='http://www.w3.org/2000/svg'
>
<rect width='960' height='540' fill='black' fill-opacity='0.1' />
<g filter='url(#filter0_dd_814_9328)'>