Skip to content

Instantly share code, notes, and snippets.

View mgalgs's full-sized avatar
🍔
pizza

Mitchel Humpherys mgalgs

🍔
pizza
View GitHub Profile
(defun is-array-def ()
(save-excursion
(let (end-of-statement (save-excursion (search-forward ";")))
;; it's an array if we find all of the following characters before
;; the next semi-colon: `[={'. Is that good enough??
(and (re-search-forward "\\[" end-of-statement t)
(re-search-forward "=" end-of-statement t)
(re-search-forward "{" end-of-statement t)))))
(setq load-path (append '("~/.emacs.d/site-lisp/helm" """~/.emacs.d/site-lisp/helm-swoop") load-path))
(require 'helm)
(require 'helm-config)
(require 'helm-swoop)
/ {
cpus {
cpu-map {
cluster1 {
core0 {
cpu = <&CPU0>;
};
core1 {
cpu = <&CPU1>;
};
/ {
cpus {
cpu-map {
cluster1 {
core0 {
cpu = <&CPU0>;
};
core1 {
cpu = <&CPU1>;
};
(defun mgalgs/completer ()
(let ((tags-case-fold-search t))
(tags-completion-at-point-function)))
(setq completion-at-point-functions 'mgalgs/completer)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mgalgs.trackthatthing" >
<uses-sdk android:minSdkVersion="15"></uses-sdk>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
package com.mgalgs.trackthatthing;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
// import android.support.v7.app.ActionBarActivity; <-- getting "Cannot resolve symbol"
import android.view.LayoutInflater;
(gdb) where
#0 0x00007fefe41855dc in pselect () from /usr/lib/libc.so.6
#1 0x00000000005cb8cb in xg_select (fds_lim=33, rfds=rfds@entry=0x7ffff5287fc0, wfds=<optimized out>,
efds=efds@entry=0x0, timeout=timeout@entry=0x7ffff5287fb0, sigmask=sigmask@entry=0x0) at xgselect.c:105
#2 0x0000000000592196 in wait_reading_process_output (time_limit=<optimized out>, nsecs=0, read_kbd=0,
do_display=false, wait_for_cell=12782918, wait_proc=0x0, just_wait_proc=0) at process.c:4606
#3 0x00000000004ce839 in x_get_foreign_selection (selection_symbol=33, target_type=12848610, time_stamp=12539762,
frame=-1) at xselect.c:1237
#4 0x00000000005560ea in Ffuncall (nargs=<optimized out>, args=args@entry=0x7ffff52882f8) at eval.c:2823
#5 0x000000000058a373 in exec_byte_code (bytestr=<optimized out>, vector=10001589, maxdepth=<optimized out>,
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2318433}, {NULL, 8}) = 2 (in [5 8], left {0, 23[3599/27888]
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2295687}, {NULL, 8}) = 2 (in [5 8], left {0, 2294857})
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2272825}, {NULL, 8}) = 2 (in [5 8], left {0, 2271993})
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2249908}, {NULL, 8}) = 2 (in [5 8], left {0, 2249078})
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2226975}, {NULL, 8}) = 2 (in [5 8], left {0, 2226124})
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2203876}, {NULL, 8}) = 2 (in [5 8], left {0, 2203030})
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2180900}, {NULL, 8}) = 2 (in [5 8], left {0, 2180069})
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2157896}, {NULL, 8}) = 2 (in [5 8], left {0, 2157068})
pselect6(33, [5 7 8 11 13 14 15 18 19 32], NULL, NULL, {0, 2135015}, {NULL, 8}) = 2 (in [5 8], left {0, 213
<html>
<body>
<table style="width: 100%; height: 100%;">
<tbody>
<tr>
<td style="width: 10px;">
<br><br><br><br><br>
v
<br><br><br><br><br><br><br>
</td>