Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Alexey Okhrimenko obenjiro

🎯
Focusing
View GitHub Profile
@obenjiro
obenjiro / magicstring.md
Created Jun 26, 2020
Магия MagicString
View magicstring.md

TO BE COMING SOON...

@obenjiro
obenjiro / celcius2farenheit.ipynb
Last active Mar 15, 2020
CoLabJS: преобразуем градусы Цельсия в градусы Фаренгейта.ipynb
View celcius2farenheit.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@obenjiro
obenjiro / TFJS-collab-save-tensor.ipynb
Last active Feb 23, 2020
TFJS-collab-save-tensor.ipynb
View TFJS-collab-save-tensor.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@obenjiro
obenjiro / tfjs.mninst.colab.ipynb
Last active Mar 31, 2020
TFJS-collab-save-tensor.ipynb
View tfjs.mninst.colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@obenjiro
obenjiro / snippet.js
Created Oct 24, 2019 — forked from glebmachine/snippet.js
Snippet: Force Safari to switch to discrete GPU
View snippet.js
try {
document.createElement('canvas').getContext('webgl', { powerPreference: "high-performance" })
} catch(e) {}
@obenjiro
obenjiro / hey-frontend.md
Created Oct 22, 2019
Эй фронтенд, вы еще живы?
View hey-frontend.md

COMING SOON...

View fileupload.service.ts
import { Injectable, OnDestroy } from '@angular/core';
import { HttpClient, HttpEventType, HttpEvent } from '@angular/common/http';
import { Subject, BehaviorSubject } from 'rxjs';
import { switchMap, tap } from 'rxjs/operators';
@Injectable({ providedIn: 'root' })
export class FileUploadService implements OnDestroy {
public progress$ = new BehaviorSubject<Number>(0);
public loading$ = new BehaviorSubject<Boolean>(false);
@obenjiro
obenjiro / json-query.md
Last active Jul 6, 2019
Сложная работа со сложными данными - SQL(подробные) запросы для JSON
View json-query.md
@obenjiro
obenjiro / gist:c69f7732b62b96099fa9bf2219a897e5
Created May 22, 2019 — forked from dmethvin/gist:1676346
Breakpoint on access to a property
View gist:c69f7732b62b96099fa9bf2219a897e5
function debugAccess(obj, prop, debugGet){
var origValue = obj[prop];
Object.defineProperty(obj, prop, {
get: function () {
if ( debugGet )
debugger;
return origValue;
},
You can’t perform that action at this time.