Skip to content

Instantly share code, notes, and snippets.

View RinatValiullov's full-sized avatar
👷‍♂️
Looking for a job

Rinat Valiullov RinatValiullov

👷‍♂️
Looking for a job
View GitHub Profile
<plist version="1.0">
<dict>
<key>name</key>
<string>Mariana</string>
<key>author</key>
<string>Sublime HQ Pty Ltd, Dmitri Voronianski</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@RinatValiullov
RinatValiullov / resp3cols.html
Last active February 22, 2018 13:40
Three responsive columns layout with css(not complete...)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Responsive layout(3 columns)</title>
</head>
<body>
<style>
@RinatValiullov
RinatValiullov / js-task-1.md
Created March 9, 2018 11:05 — forked from codedokode/js-task-1.md
Задания на яваскрипт (простые)

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@RinatValiullov
RinatValiullov / gist:c4c39280a95a6163a598d83b08db7644
Created April 21, 2018 07:56 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:

Strings

String.prototype.*

None of the string methods modify this – they always return fresh strings.

  • charAt(pos: number): string ES1

    Returns the character at index pos, as a string (JavaScript does not have a datatype for characters). str[i] is equivalent to str.charAt(i) and more concise (caveat: may not work on old engines).

@RinatValiullov
RinatValiullov / file_inseveral-folders.sh
Created July 16, 2018 05:06
Add file in several directories
#!/bin/bash
# Add file in several directories
# find . -type d --> searchs directories in the directory structure
# -exec touch {}/hiya \; --> given each result, its value is stored in {}.
# So with touch {}/hiya what we do is to touch that "something"/hiya. The final \; is required by exec in find clauses.
find . -type d -exec touch {}/sample.txt \;
@RinatValiullov
RinatValiullov / Preload CSS - Not blocking CSS.html
Created July 25, 2018 09:45 — forked from thedaviddias/Preload CSS - Not blocking CSS.html
Preload CSS and don't block the DOM with your CSS file request.
<link rel="preload" href="css/global.min.css" as="style" onload="this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="css/global.min.css"></noscript>
<script>
/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
!function(a){"use strict";var b=function(b,c,d){function j(a){if(e.body)return a();setTimeout(function(){j(a)})}function l(){f.addEventListener&&f.removeEventListener("load",l),f.media=d||"all"}var g,e=a.document,f=e.createElement("link");if(c)g=c;else{var h=(e.body||e.getElementsByTagName("head")[0]).childNodes;g=h[h.length-1]}var i=e.styleSheets;f.rel="stylesheet",f.href=b,f.media="only x",j(function(){g.parentNode.insertBefore(f,c?g:g.nextSibling)});var k=function(a){for(var b=f.href,c=i.length;c--;)if(i[c].href===b)return a();setTimeout(function(){k(a)})};return f.addEventListener&&f.addEventListener("load",l),f.onloadcssdefined=k,k(l),f};"undefined"!=typeof exports?exports.loadCSS=b:a.loadCSS=b}("undefined"!=typeof global?global:this);
/*! loadCSS rel=preload po
console.log("Hello");
@RinatValiullov
RinatValiullov / hello_OCEANjs.js
Last active October 22, 2018 16:44
just for fun (npx + __this url__)
#!/usr/bin/env node
console.log("Hello, OCEANjs!!!");