xgqfrms / FEIQA

FEIQA: Front End Interviews Question & Answers
https://feiqa.xgqfrms.xyz
MIT License
7 stars 0 forks source link

linux & chmod 777 #27

Open xgqfrms opened 6 years ago

xgqfrms commented 6 years ago

linux & chmod 777

https://stackoverflow.com/questions/8328481/chmod-777-to-a-folder-and-all-contents

xgqfrms commented 6 years ago

not a shell

image

xgqfrms commented 6 years ago

linux & chmod & 777

https://github.com/xgqfrms-GitHub/Node-CLI-Tools/blob/master/bash-shell-chmod.md

xgqfrms commented 6 years ago

ok

image

xgqfrms commented 6 years ago

#!/bin/sh

# echo "^-v-^ JSON DB is running in development env!" && npm run db

# echo "^-v-^ JSON DB is running in development env!" && nodemon -w ./server.js localhost 8888

JSONDB="nodemon -w ./server.js localhost 6666"

${JSONDB} &
# chmod +x db.sh
# sudo ./db.sh
# nodemon -w ./server.js localhost 8888

# /bin/sh db.sh

# ps -ef | grep node
# sudo kill -9 <PID>
xgqfrms commented 6 years ago

Apache 代理

image

xgqfrms commented 6 years ago

https://www.cnblogs.com/xgqfrms/p/9546961.html

xgqfrms commented 6 years ago

bluetooch mouse

image

https://www.logitech.com/download/m337 https://www.logitech.com.cn/zh-cn/utilities/sitemap https://support.logitech.com.cn/zh_cn/product/bluetooth-mouse-m337 https://support.logitech.com.cn/zh_cn/product/bluetooth-mouse-m337/downloads#macPnlBar


https://support.microsoft.com/zh-cn/help/15290/windows-connect-bluetooth-device

https://www.dell.com/support/home/cn/zh/cndhs1/product-support/product/latitude-e5450-laptop/drivers

xgqfrms commented 6 years ago

TeamViewer

http://www.imooc.com/article/4777 https://stackoverflow.com/questions/8328481/chmod-777-to-a-folder-and-all-contents

xgqfrms commented 6 years ago

chmod +x & linux var &


#!/bin/sh

# echo "^-v-^ JSON DB is running in development env!" && npm run db

# echo "^-v-^ JSON DB is running in development env!" && nodemon -w ./server.js localhost 8888

JSONDB="nodemon -w ./server.js localhost 6666"

${JSONDB} &
# chmod +x db.sh
# sudo ./db.sh
# nodemon -w ./server.js localhost 8888

# /bin/sh db.sh

# ps -ef | grep node
# sudo kill -9 <PID>
xgqfrms commented 6 years ago

remove-all-event-handlers

https://stackoverflow.com/questions/2837542/is-it-possible-to-remove-all-event-handlers-of-a-given-element-in-javascript

https://www.quirksmode.org/js/events_advanced.html


elem.parentElement.innerHTML = elem.parentElement.innerHTML;

 var new_element = old_element.cloneNode(true);
 old_element.parentNode.replaceChild(new_element, old_element);

removeEventListener

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener

off

https://api.jquery.com/off/

xgqfrms commented 6 years ago

attachEvent & detachEvent

addEventListener

https://johnresig.com/blog/flexible-javascript-events/ https://johnresig.com/apps/jselect/event.html


/* WRITE THESE FUNCTIONS */

function addEvent( obj, type, fn ) {
  if ( obj.attachEvent ) {
    obj["e"+type+fn] = fn;
    obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
    obj.attachEvent( "on"+type, obj[type+fn] );
  } else
    obj.addEventListener( type, fn, false );
}
function removeEvent( obj, type, fn ) {
  if ( obj.detachEvent ) {
    obj.detachEvent( "on"+type, obj[type+fn] );
        obj[type+fn] = null;
  } else
    obj.removeEventListener( type, fn, false );
}

/* DON'T TOUCH THESE FUNCTIONS */

addEvent(window,"load",init);

function init()
{
    var x = document.getElementById('navigation').getElementsByTagName('li');
    for (var i=0;i<x.length;i++)
    {
        addEvent(x[i],"mouseover",showSubNav);
        addEvent(x[i],"mouseout",hideSubNav);
        addEvent(x[i],"mouseover",showBorder);
        addEvent(x[i],"mouseout",hideBorder);
    }
}

function removeBorders()
{
    var x = document.getElementById('navigation').getElementsByTagName('li');
    for (var i=0;i<x.length;i++)
    {
        removeEvent(x[i],"mouseover",showBorder);
        removeEvent(x[i],"mouseout",hideBorder);
    }

}

function showSubNav(e)
{
    this.className += ' over';
}

function hideSubNav(e)
{
    this.className = this.className.replace(/over/g,'');
    noBubble(e);
}

function showBorder(e)
{
    this.className += ' current';
}

function hideBorder(e)
{
    this.className = this.className.replace(/current/g,'');
    noBubble(e);
}

function noBubble(e)
{
    if (e && e.stopPropagation)
        e.stopPropagation();
    else
        window.event.cancelBubble = true;
}
xgqfrms commented 6 years ago

addEventListener() & removeEventListener()

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener#Matching_event_listeners_for_removal

image

image

image

xgqfrms commented 6 years ago

dispatchEvent

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent


let event = new Event('build');

// Listen for the event.
elem.addEventListener('build', function (e) { /* ... */ }, false);

// Dispatch the event.
elem.dispatchEvent(event);
xgqfrms commented 6 years ago

Trello & kanban

ice/scaffold-preview/ice-design-project-management

https://alibaba.github.io/ice/scaffold-preview/ice-design-project-management.html#/

ice

https://alibaba.github.io/ice/scaffold

https://github.com/alibaba/ice/tree/gh-pages/scaffold-preview https://github.com/alibaba/ice/blob/gh-pages/scaffold-preview/ice-design-project-management.html

开源,为什么源码没提供呀?

https://g.alicdn.com/ice-assets/ice-design/ice-design-project-management/index.js

xgqfrms commented 6 years ago

image

https://desktop.github.com/ https://github.com/desktop/desktop/blob/master/package.json

https://chocolatey.org/ https://brew.sh/

xgqfrms commented 6 years ago

image