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
/* | |
Copyright 2021 Bga <[email protected]> | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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
Рассказываю основные ошибки и проблемы при реболле | |
Пастой через трафарет. | |
А) Паста не сплавляется в шарики. Причина; высохшая старая паста. Решение: сменить пасту. | |
Б) шарики не липнут к чипу. Возможные причины: смещен чип, плохо облужены контактные пятаки. Решение: перелудить пятаки ПОС-61 и активным флюсом, аккуратнее выравнивать чип. | |
В) чип не вынимается из трафарета. Внимание: он плохо вынимается ВСЕГДА! Решение: отмочить ацетоном, чуть подогреть градусов до ста. Отделять края по очереди, сгибая трафарет. | |
Г) один-два шарика остались на трафарете. Решение: выковырять шарики иголкой, посадить на место феном под микроскопом. Пятак предварительно зачистить иголкой. Процедура сродни цирковому номеру. | |
Хинт: вынутый из трафарета чип необходимо еще раз оплавить феном. Шарики осядут надежнее и аккуратнее. | |
Д) трафарет при нагреве гнет дугой. Причина: трафарет слишком велик. Решение: пропилить термобарьеры или вырезать из большого трафарета нужный квадратик (лучше дремелем, а не ножницами). |
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
"use strict" | |
class Foo { | |
constructor() { | |
//# make object with private properties atop { this } | |
const privateObject = { | |
__proto__: this, | |
_a: 1 | |
} | |
//# and bind every method to { privateObject } |
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
#!/usr/bin/env node | |
"use strict" | |
//const global = (typeof(global) != "undefined") ? global : this | |
//# or { null } if you dont want cache | |
let cache = new WeakMap() | |
const isPrimitive = (v) => { | |
return v !== Object(v) |
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
// ==UserScript== | |
// @name freezeBackgroudActivity | |
// @include https://*/* | |
// @include http://*/* | |
// @description freeze backgroud activity when tab is inactive | |
// ==/UserScript== | |
//# because modern websites do alot of backgroud "useful" job (hope its not mining *coins) and keep cpu busy, fan periodically blows and thats annoyong especially at night | |
!(function(global) { | |
var log = function() { |
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
//# "Class" style | |
class MyWidgit { | |
var root = null; | |
handleEvent(ev) { | |
//# imagine 10 types and 20 subelements - it will be 500sloc bloody mess | |
switch(ev.type) { | |
case("click") { | |
alert("you clicked me!") | |
} break; | |
case("input") { |
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
//# for printf style debugging | |
var inspect = function(v) { | |
console.dir(v) | |
return v | |
} | |
Object.defineProperty(Object.prototype, "inspect", { | |
value: function() { | |
console.dir(this) | |
return this | |
}, |
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 demoSeasonDate = "2015/02" | |
(function() { | |
var whiteListApi = function(methodNames) { | |
var C = function(nativeObj) { | |
this._nativeObj = nativeObj | |
} | |
methodNames.forEach(function(methodName) { | |
C.prototype[methodName] = function() { | |
return this._nativeObj[methodName].apply(this._nativeObj, arguments) | |
} |
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 defCompare = function(a, b) { | |
var aStr = String(a), | |
bStr = String(b); | |
if (aStr > bStr) { | |
return 1; | |
} | |
else if (aStr < bStr) { | |
return -1; | |
} |
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
String.prototype.template = function (scopeEval) { | |
// Andrea Giammarchi - WTFPL License | |
var | |
re = /\$\{([\S\s]*?)\}/g, | |
evaluate = [], | |
i = 0, | |
m | |
; | |
while (m = re.exec(this)) { | |
evaluate.push( |
NewerOlder