Skip to content

Instantly share code, notes, and snippets.

@mvaisakh
mvaisakh / Bringup.md
Last active April 26, 2024 10:24
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

Searching 476 files for "angular"
/Users/adrianlee/Dropbox/Shared/project_course_rating_system/temp_course_rating/public/app.js:
1 var ratemycourse = {};
2: var App = angular.module('ratemycourse', ['ngResource']);
3
4 App.config(['$routeProvider', function($routeProvider) {
/Users/adrianlee/Dropbox/Shared/project_course_rating_system/temp_course_rating/public/libs/angular-resource.min.js:
1 /*
// ==UserScript==
// @name ShareTwitterOnTumblr
// @namespace http://white.s151.xrea.com/
// @description Share Twitter conversation on Tumblr as Chat
// @include http://twitter.com/*
// @include https://twitter.com/*
// @include http://explore.twitter.com/*
// @include http://m.twitter.com/*
// @include http://twitter.1x1.jp/search/*
// @include http://terraminds.com/twitter/*
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active April 26, 2024 10:22
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@timothymcmackin
timothymcmackin / get_link_title.html
Created May 30, 2018 20:56
Jekyll extension to resolve related links from front matter and create links in the output
YUI.add('couch-base', function(Y) {
var LANG = Y.Lang,
IS_BOOLEAN = LANG.isBoolean,
IS_STRING = LANG.isString,
IS_NUMBER = LANG.isNumber,
IS_OBJECT = LANG.isObject,
DATA_SOURCE = 'dataSource',
EVENT_ERROR = 'couch:error',
@mihirgokani007
mihirgokani007 / api.js
Created November 30, 2014 11:56
jquery.typeahead *dynamic data* demo
var API = (function () {
var RESULT_SIZE = 10;
var STATES = [
"Alabama",
"Alaska",
"Arizona",
"Arkansas",
"California",
"Colorado",
@janosdebugs
janosdebugs / slices.go
Created March 1, 2023 18:41
Go slices mind-twister
firstSlice := []string{"a", "b", "c", "d", "e", "f"}
firstSlice = firstSlice[:5]
secondSlice := firstSlice
firstSlice = append(firstSlice, "g")
// This will print: [a b c d e g]
fmt.Println(firstSlice)
secondSlice = append(secondSlice, "h")
@hyrious
hyrious / nodejs-on-exit.js
Created November 22, 2020 05:04
how to do something before exit in NodeJS
// only works when there is no task running
// because we have a server always listening port, this handler will NEVER execute
process.on("beforeExit", (code) => {
console.log("Process beforeExit event with code: ", code);
});
// only works when the process normally exits
// on windows, ctrl-c will not trigger this handler (it is unnormal)
// unless you listen on 'SIGINT'
process.on("exit", (code) => {
@raandree
raandree / 1. Start-PortScan.ps1
Last active April 26, 2024 10:20
PowerShell Portscan
<#
.SYNOPSIS
Powerful asynchronus IPv4 Port Scanner
.DESCRIPTION
This powerful asynchronus IPv4 Port Scanner allows you to scan every Port-Range you want (500 to 2600 would work).
The result will contain the Port number, Protocol, Service name, Description and the Status.
.EXAMPLE