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
else if (match[4]) { // URL & e-mail | |
if (!options.noLinks) { | |
var matchEmojiInURL; | |
if (match[4].match(emojiRegex)) { | |
if (matchEmojiInURL = match[4].match(emojiRegex)) { | |
if ((emojiCode = emojiMap[matchEmojiInURL[0]]) && | |
(emojiCoords = getEmojiSpritesheetCoords(emojiCode))) { | |
emojiTitle = encodeEntities(emojiData[emojiCode][1][0]); | |
emojiFound = true; |
define(["jquery"], function router() { | |
"use strict"; | |
return { | |
basePath: '', | |
init: function() { | |
var self = this; | |
//Javascript loading needs to happen on initial load and on successful pjax completion | |
this.loadJS(); | |
$(document).on("pjax:complete", function() { | |
self.loadJS(); |
/** | |
* Basic proof of concept. | |
* - Hot reloadable | |
* - Stateless stores | |
* - Stores and action creators interoperable with Redux. | |
*/ | |
import React, { Component } from 'react'; | |
export default function dispatch(store, atom, action) { |
Taken from StackExchange
Thanks to LangLangC
/** | |
* Prevent click events after a touchend. | |
* | |
* Inspired/copy-paste from this article of Google by Ryan Fioravanti | |
* https://developers.google.com/mobile/articles/fast_buttons#ghost | |
* | |
* USAGE: | |
* Prevent the click event for an certain element | |
* ```` | |
* PreventGhostClick(myElement); |
Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |