Improving heat management after macbookpro 2011 discrete GPU fix, also a script to automate part of the fix process
Taken from StackExchange
Thanks to LangLangC
Taken from StackExchange
Thanks to LangLangC
Add To Homescreen (ATH) is a javascript widget that opens an overlaying message inviting the user to add the web site/application to the home screen. This was born mainly to support web-app-capable applications but extended to a more general purpose use case.
| var children = [] | |
| for (var key in terms) { | |
| if (terms.hasOwnProperty(key)) { | |
| children.push( | |
| <React.Fragment key={key}> | |
| <dl>{key}</dl> | |
| <dd>{terms[key]}</dd> | |
| </React.Fragment> | |
| ) | |
| } |
| const typeDefs = require('./schema/schema') | |
| const someRestAPI = require('./someRestAPI') | |
| const resolvers = require('./resolvers') | |
| const apolloServer = { | |
| typeDefs, | |
| resolvers, | |
| dataSources: () => ({ | |
| someRestAPI: new someRestAPI(), | |
| }), |
invoices/123? in a URL like /assignments?showGrades=1.# portion of the URL. This is not available to servers in request.url so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things.| import React from 'react'; | |
| import { CircularProgress, LinearProgress } from '@material-ui/core/'; | |
| /** | |
| * Wraps the React Component with React.Suspense and FallbackComponent while loading. | |
| * @param {React.Component} WrappedComponent - lazy loading component to wrap. | |
| * @param {React.Component} FallbackComponent - component to show while the WrappedComponent is loading. | |
| */ | |
| export const withSuspense = (WrappedComponent, FallbackComponent = null) => { | |
| return class extends React.Component { |
Testimonies
The thing in CL I miss most doing Clojure as my day job? CL's compiler. I like having a compiler tell me at compile time about the mistakes I've made. Bogus arguments. Unreachable code because of unhandled exceptions, and so on. CL saves me round after round of bugs that in clojure aren't found until you run the code. If you test well, it's found when testing, if you don't it's found in production. "Clojure compiler" almost demands air quotes.
CL's optional but oh-so-useful model of type declarations is also infinitely more useful (to me) than Clojure's use of "spec", and instrumentation that happens only at test time because of the cost. Depending on the OPTIMIZE declarations, other type defs are a floor wax and dessert topping. Want checks for argument types? Lower optimizations. Want most efficient machine code? High optimizations.
/u/Decweb, March 2023 https://www.reddit.com/r/lisp/comments/11ttnxk/the_rise_fall_of_lisp_too_good_for_the_rest_of/jczpysp/
If you messed up with editing sudoers, this solution is for you. The solution is limited to restoring /etc/sudoers file to the original state. It is easier to mess up your config such as saving wrong format, etc.
Cmd+R key.Terminal by clicking Utilities > Terminal on menu./etc as writable state, you need to disable SIP first by executing csrutil disable.Cmd+S key.