Skip to content

Instantly share code, notes, and snippets.

View iegorov's full-sized avatar

Ivan Egorov iegorov

View GitHub Profile
@iegorov
iegorov / classical inheritance 1_1.js
Created October 30, 2013 08:14
Пример неудачного использования шаблона классического наследования №1
function Parent (name) {
this.name = name || 'Adam';
this.things = ['apple'];
}
Parent.prototype.getThingsList = function() {
return this.things.join(', ');
};
function Child() {}
@iegorov
iegorov / classical inheritance 1.js
Created October 29, 2013 04:20
classical inheritance 1
function Parent(name) {
this.name = name || 'Adam';
}
Parent.prototype.say = function() {
return this.name;
};
function Child() {}
@iegorov
iegorov / chdisk
Created October 23, 2013 08:09
Locates bad sectors and recovers readable information. The disk must be locked. /r includes the functionality of /f, with the additional analysis of physical disk errors.
chkdsk d: /r
@iegorov
iegorov / связанные выпадающие списки
Created October 16, 2013 07:43
Обновление второго выпадающего списка на основании выбора значения первого выпадающего списка
В свойстве первого списка AfterUpdate написать
Me.ПолеКодВрача.Requery
@iegorov
iegorov / html5
Created October 14, 2013 04:46
html5 bollerplate
html:5
@iegorov
iegorov / day programmer 2013.js
Created September 13, 2013 07:01
С днем программиста!
function asciiToStr(asciiStr) {
var
srcText = asciiStr,
arr = srcText.split(' '),
outText = "",
i,len;
for (var i = 0, len = arr.length; i < len; i +=1) {
outText += String.fromCharCode(arr[i]) + ' ';
}
return outText;
@iegorov
iegorov / Work with files on an FTP site
Created August 28, 2013 08:57
Work with files on an FTP site
To create a shortcut to open an FTP site in Windows Explorer
1. Open Computer by clicking the Start button , and then clicking Computer.
2. Right-click anywhere in the folder, and then click Add a Network Location.
3. This displays the Add Network Connection wizard. Click Next.
4. In the wizard, select Choose a custom network location, and then click Next.
5. Enter the name of the FTP site, with the full FTP:// in front of it, and then click Next.
6. To use a name and password, clear the Log on anonymously check box. Type a user name, and then click Next.
7. By default, the name of the shortcut is the same as the FTP address. If you want to give the shortcut a different name, type it in the Type a name for this network location box. Click Next.
8. If you do not want the FTP site to open after you're done setting up the shortcut, clear the Open this network location when I click Finish check box. Click Finish. A shortcut to the FTP site appears in the Computer folder. You can drag that shortcut to your deskt
@iegorov
iegorov / bcdedit
Created August 23, 2013 03:34
как удалить вторую загрузочную запись windows7
bcdedit
bcdedit /delete {id записи}
@iegorov
iegorov / iterator $
Created August 21, 2013 07:55
using iterator
div#accordion((h3{One!}+div{This is panel $})*3)
@iegorov
iegorov / battеry not charging
Created August 20, 2013 07:58
Батарея не заряжается
Только что разбирался с такой же проблемой на ноуте HP Pavilion. Батарея новая (пару месяцев), на днях перестала заряжаться, показывает "Подключена, не заряжается". Стал гуглить, оказалось, что проблема не только у меня, но нормального решения ни у кого нету. То биос прошивать, то в сервис нести. Стал гуглить глубже, и таки нашел решение на англоязычных форумах TechNet. Вот чего советуют:
1) Отключить БП
2) Выключить ноут
3) Вытащить батарею
4) Подключить БП
5) Включить ноут
6) Зайти в Диспетчер устройств, раздел Батареи и удалить оттуда "Батарея с ACPI-совместимым управлением (Microsoft)". Если там несколько таких (хотя обычно одна), то удалить все.
7) Выключить ноут
8) Отключить БП