This file contains hidden or 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
# -------- | |
# Hardware | |
# -------- | |
# Opcode - operational code | |
# Assebly mnemonic - abbreviation for an operation | |
# Instruction Code Format (IA-32) | |
# - Optional instruction prefix | |
# - Operational code |
This file contains hidden or 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
diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl | |
index eb51d76e..0215e3d3 100644 | |
--- a/kernel/timeconst.pl | |
+++ b/kernel/timeconst.pl | |
@@ -370,7 +370,7 @@ if ($hz eq '--can') { | |
} | |
@val = @{$canned_values{$hz}}; | |
- if (!defined(@val)) { | |
+ if (!scalar(@val)) { |
This file contains hidden or 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
#lang sicp | |
(define (accumulate op initial sequence) | |
(if (null? sequence) | |
initial | |
(op (car sequence) (accumulate op initial (cdr sequence))))) | |
(accumulate + 0 (list 1 2 3)) | |
This file contains hidden or 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
/* | |
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* - Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* |
This file contains hidden or 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 | |
# Device id: xinput list | grep TouchPad | |
# Thinkpad Touchpad on T560: 11 | |
DEVICE_ID=11 | |
DEVICE_STATE=`xinput --list-props $DEVICE_ID | awk -F'\t' '/Device Enabled/ { print $3 }'` | |
if [ $DEVICE_STATE = 0 ]; then | |
xinput --enable $DEVICE_ID |
This file contains hidden or 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
// example3.c - Demonstrates how to use miniz.c's deflate() and inflate() functions for simple file compression. | |
// Public domain, May 15 2011, Rich Geldreich, [email protected]. See "unlicense" statement at the end of tinfl.c. | |
// For simplicity, this example is limited to files smaller than 4GB, but this is not a limitation of miniz.c. | |
#include "miniz.c" | |
#include <limits.h> | |
typedef unsigned char uint8; | |
typedef unsigned short uint16; | |
typedef unsigned int uint; |