Skip to content

Instantly share code, notes, and snippets.

View steamIngenius's full-sized avatar
🤖
meep morp

micah steamIngenius

🤖
meep morp
  • personal account
View GitHub Profile
@steamIngenius
steamIngenius / flash-android-rom-with-heimdall-on-mac.md
Created April 10, 2019 05:49 — forked from kevinpapst/flash-android-rom-with-heimdall-on-mac.md
Flash a new Android ROM on Mac with ADB and Heimdall

Installing an Android ROM with your Mac via Heimdall and bash

Because every time I want to flash a new ROM, I forgot how I did it the last time.

This is how I re-flashed my unbranded Samsung Galaxy S4 (german black edition) with a stock ROM (because Cyanogenmod crashed my phone all the time). The correct Stock ROM for my Galaxy S4 is: I9505XXUHOJ2_I9505OXAHOJ2_I9505XXUHOJ2

Software you need

  • adb
  • heimdall (brew cask install heimdall-suite)
(defun save-framegeometry ()
"Gets the current frame's geometry and saves to ~/.emacs.d/framegeometry."
(let (
(framegeometry-left (frame-parameter (selected-frame) 'left))
(framegeometry-top (frame-parameter (selected-frame) 'top))
(framegeometry-width (frame-parameter (selected-frame) 'width))
(framegeometry-height (frame-parameter (selected-frame) 'height))
(framegeometry-file (expand-file-name "~/.emacs.d/framegeometry"))
)
import Html exposing (..)
import Html.App as Html
import Html.Events exposing (..)
import Random
import Svg exposing (Svg, circle, rect, svg, g, line, defs, use, symbol, text')
import Svg.Attributes exposing (..)
import String exposing (cons)
import PureRenderMixin from 'react-addons-pure-render-mixin';
export default function (target) {
target.prototype.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate;
return target;
}
import React from 'react';
import { connect } from 'react-redux';
import Vote from './Vote';
import Winner from './Winner';
import pureRender from './pureRender';
// shallow render added using es7 decorator
@pureRender