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
import fs from "fs"; | |
const viewHistory = JSON.parse(fs.readFileSync("./data/view-history.json")); | |
function getVideosById(videos) { | |
let videosById = {}; | |
videos.forEach((video) => { | |
let regex = /https:\/\/www\.youtube\.com\/watch\?v=(.*)/; | |
let title = video.title.substring(18).replace(/\s+/, " "); |
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
$cdnUrl = "https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/" | |
$steamFolder = (Get-Item HKCU:\Software\Valve\Steam).GetValue("SteamPath") + "/steam/games/" | |
# $steamFolder = "C:/Program Files (x86)/Steam/steam/games" | |
$desktopPath = [Environment]::GetFolderPath("Desktop") | |
$currentDirectory = $PWD | |
# Check if we have write access to $steamFolder | |
if (Test-Path -Path $steamFolder) { | |
try { | |
$testFile = Join-Path -Path $steamFolder -ChildPath "test.txt" |
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
<?php | |
function modify_footer_admin () { | |
echo 'Developed by <a href="http://roose.kz">roose</a>.'; | |
} | |
add_filter('admin_footer_text', 'modify_footer_admin'); | |
?> |
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
import os, osproc, parsecfg, streams, strutils, json, winlean | |
import wox, registry | |
var wp = newWox() | |
proc getSessions(): seq[string] = | |
result = @[] | |
let iniPath = joinPath(getConfigDir(), "winscp.ini") |
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 { | |
color: $blue; | |
} |
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 gulp = require('gulp'); | |
var autoprefixer = require('autoprefixer-core'); | |
var vars = require('postcss-simple-vars'); | |
var colorFunction = require("postcss-color-function") | |
var $ = require('gulp-load-plugins')(); | |
// errors handling and notify | |
var shitHappens = function(err) { | |
$.notify.onError("Error: <%= error.message %>")(err); |
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
@cls | |
@doskey ls=ls --color $* | |
@doskey ..=cd .. | |
@doskey ...=cd ../.. | |
@doskey ~=cd %userprofile% | |
@doskey e.=explorer . | |
@doskey hosts=subl %WINDIR%\System32\drivers\etc\hosts | |
@doskey ff="C:\Program Files (x86)\Mozilla Firefox\firefox.exe" $* | |
@doskey sudo=runas /user:User $* | |
@doskey new=%USERPROFILE%\new.bat $* |
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
[ | |
{ | |
"cat": "cities", | |
"name": "aktau.svg" | |
}, | |
{ | |
"cat": "cities", | |
"name": "almaty.svg" | |
}, | |
{ |
NewerOlder