This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | |
/* vim: set ts=2 et sw=2 tw=80: */ | |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
#include <errno.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
DBUS_NAME="org.freedesktop.login1" | |
DBUS_PATH="/org/freedesktop/login1" | |
DBUS_INTERFACE="org.freedesktop.login1.Manager" | |
DBUS_SIGNAL="PrepareForSleep" | |
INHIBITOR_PID= | |
install_background_inhibitor() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
import os | |
import sys | |
import csv | |
def info(log): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
import ipdl | |
import sys | |
import os | |
def files_match(suffixes, topdir, excludes): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<selectfont> | |
<acceptfont> | |
<pattern> | |
<patelt name="family"><string>terminus</string></patelt> | |
</pattern> | |
</acceptfont> | |
<!-- we want the unicode version --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun eshell-last-argument (n) | |
(let* ((input (substring-no-properties | |
(eshell-previous-input-string (1- n)))) | |
(parse (with-temp-buffer | |
(insert input) | |
(car (reverse (eshell-parse-arguments | |
(point-min) (point-max))))))) | |
(eval parse))) | |
(defun eshell-insert-last-word (n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / | |
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ | |
'use strict'; | |
(function() { | |
var debugging = true; | |
var debug = function(str) { | |
if (!debugging) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Any copyright is dedicated to the Public Domain. | |
* http://creativecommons.org/publicdomain/zero/1.0/ | |
* | |
* Compile using |gcc -O0 bench.c -o bench| | |
*/ | |
#include <stdio.h> | |
#include <sys/time.h> | |
#define TIMES 10000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: egl | |
egl: egl.cpp | |
g++ -lX11 -lEGL -lGLESv2 egl.cpp -o egl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: sh -*- | |
GECKO_PATH=/home/kanru/zone2/mozilla/b2g18 | |
export REMOTE_DEBUGGER=1 | |
#export B2G_DEBUG=y | |
#export B2G_NOOPT=y | |
#export B2G_PROFILING=1 | |
GECKO_OBJDIR=${GECKO_OBJDIR}-`basename $GECKO_PATH` |