Skip to content

Instantly share code, notes, and snippets.

View rskvazh's full-sized avatar
🎯
Focusing

Roman rskvazh

🎯
Focusing
View GitHub Profile
type Uuid = string;
@iUsmanN
iUsmanN / ViewController.swift
Created August 2, 2019 09:25
Uses iOS AV Audio Engine to record and play sounds from the mic
/// Originally Created by Tadashi on 2017/03/02.
/// Commented by Usman Nazir
//IMPT
//ADD A INDICATOR VIEW TO THE SCREEN AND LINK HERE TO AVOID CRASHES ALONG WITH A PLAY AND RECORD BUTTON
import UIKit
import AVFoundation
import AudioToolbox
@ankushnarula
ankushnarula / aerial1.5.1beta6.debug.log
Created June 25, 2019 11:54
Aerial 1.5.1beta6 Debug Log
03:34:58 : avInit1 (0.0, 0.0, 296.0, 184.0)
03:34:58 : <AerialView: 0x7ff19f5020e0> AerialView setup init (V1.4.6)
03:34:58 : Time Management initialized
03:34:58 : Display Detection initialized
03:34:58 : ***Display Detection***
03:34:58 : 1 display(s) detected
03:34:58 : 1cm = 58.66141820384076 points
03:34:58 : npass: dict [__C.NSDeviceDescriptionKey(_rawValue: NSScreenNumber): 69733632, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceColorSpaceName): NSCalibratedRGBColorSpace, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceResolution): NSSize: {144, 144}, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceBitsPerSample): 8, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceSize): NSSize: {1680, 1050}, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceIsScreen): YES]
03:34:58 : bottomLeftFrame (0.0, 0.0, 1680.0, 1050.0)
03:34:58 : src orig : (0.0, 0.0)
@mathieudutour
mathieudutour / sRGB-blur.js
Last active July 22, 2020 16:34
SVGO plugin to fix color space issue in Safari on SVG Filter primitives
'use strict';
exports.type = 'perItem';
exports.active = true;
exports.description = 'add color-interpolation-filters="sRGB" to filters';
exports.params = {
force: false,
@dideler
dideler / bot.rb
Last active November 18, 2024 13:14
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@mob-sakai
mob-sakai / RemoveEmptyFolders.cs
Last active September 22, 2023 18:33
Automatically remove empty folders in project for Unity.
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
using System;
/// <summary>
/// Remove empty folders automatically.
@chrisguttandin
chrisguttandin / post.md
Created May 31, 2017 16:27
What else can we do with the Web Audio API?

What else can we do with the Web Audio API?

Of course the Web Audio API is meant for synthesizing and processing audio data. It is tailored for that use case. But at least in our digital world audio data is just a series of numbers, which are typically somewhere between +1 and -1. So why can't we use the Web Audio API for general computations?

Almost a year ago I had the pleasure to give a talk at the Web Audio Conference in Atlanta. The conference featured a lot of great talks, which I really appreciated as an attendee. However, as a speaker it was tough to reduce my own talk until it was short enough to fit into the schedule. I had the feeling that I had to rush through my slides. Since then I planned to write down my findings in a more detailed way, but I never got around to it. Luckily I was asked to repeat my talk at our local Web Audio Meetup here in

@nemotoo
nemotoo / .gitattributes
Last active October 14, 2024 00:03
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@paulirish
paulirish / what-forces-layout.md
Last active November 19, 2024 08:58
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@larahogan
larahogan / app-perf.md
Last active May 7, 2021 01:18
Native app performance metrics

Native app performance metrics

This is a draft list of what we're thinking about measuring in Etsy's native apps.

Currently we're looking at how to measure these things with Espresso and Kif (or if each metric is even possible to measure in an automated way). We'd like to build internal dashboards and alerts around regressions in these metrics using automated tests. In the future, we'll want to measure most of these things with RUM too.

Overall app metrics

  • App launch time - how long does it take between tapping the icon and being able to interact with the app?
  • Time to complete critical flows - using automated testing, how long does it take a user to finish the checkout flow, etc.?
  • Battery usage, including radio usage and GPS usage
  • Peak memory allocation