Skip to content

Instantly share code, notes, and snippets.

@yury
yury / test.js
Created January 31, 2024 16:07 — forked from NaN1235123/test.rs
Function for my uncle
function Unic(array) {
array.filter((item, index, arr) => {
if(item == -1) {
arr.splice(item)
arr.unshift(item)
}
})
return array
}
//: A UIKit based Playground for presenting user interface
import SwiftUI
import UIKit
import Combine
import PlaygroundSupport
class Model: ObservableObject {
@Published var on: Bool = false
}
This file has been truncated, but you can view the full file.
@font-face {
font-family: 'Pragmata Pro Mono';
font-weight: normal;
font-style: normal;
@yury
yury / gist:6270212
Created August 19, 2013 15:09 — forked from tzoro/gist:6260437
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/admin">Title</a>
<div class="nav-collapse">
<ul class="nav navbar-nav">
@yury
yury / Coffeescript ctags
Created May 6, 2012 22:51 — forked from AndrewRadev/Coffeescript ctags
ctags definitions for coffeescript. Detects classes, static/class methods, plain functions and variables.
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/(^|=[ \t])*class ([A-Za-z]+\.)*([A-Za-z]+)( extends [A-Za-z.]+)?$/\3/c,class/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?@?([A-Za-z.]+):.*[-=]>.*$/\3/f,function/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\3/f,function/
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/