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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#ifdef _WIN32 | |
#include <process.h> /* Required for _spawnv */ | |
#include <windows.h> | |
/* We make getpid() work in a similar | |
way on Windows as it does on Linux */ | |
#define getpid() GetCurrentProcessId() | |
#endif |
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
import numpy | |
from scipy import misc | |
import matplotlib.pyplot as plt | |
if __name__ == "__main__": | |
input = 'input.png' | |
output = 'output.png' | |
# Editing | |
imIn = misc.imread(input) |
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
Just before the tags: | |
... | |
<footer class="entry-meta"> | |
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> | |
<span>Written by: <?php the_author_link(); ?></span> | |
... | |
or just before the date: |
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
Log Name: Application | |
Source: Application Error | |
Date: 4/14/2013 1:55:24 PM | |
Event ID: 1000 | |
Task Category: (100) | |
Level: Error | |
Keywords: Classic | |
User: N/A | |
Computer: taco-PC | |
Description: |
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
import pdb, inspect | |
... | |
for m in inspect.getmembers(object): | |
print m | |
pdb.set_trace() |
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
What is present? | |
$ fdisk -l | |
To edit the partitions on /dev/sdz: | |
$ fdisk /dev/sdz | |
Follow the instructions. | |
Remove the partitions you want to remove, create new ones in their place. | |
Make sure to verify and write. | |
Then, update the kernel: | |
$ partprobe /dev/sdz | |
Then, create the filesystem(s): |
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
$ cd to/grails/application/directory/ | |
$ grails integrate-with --git | |
| Created Git '.gitignore' file.. | |
$ cat .gitignore | |
*.iws | |
*Db.properties | |
*Db.script | |
.settings | |
stacktrace.log | |
/*.zip |
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
sudo dd if=/dev/sdb of=/dev/sdc bs=4096 conv=noerror |
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
user@pc:~$ xrandr | |
Screen 0: minimum 320 x 200, current 3600 x 1080, maximum 8192 x 8192 | |
DVI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 640mm x 360mm | |
1920x1080 60.0*+ 50.0 30.0 25.0 24.0 | |
1920x1080i 30.0 25.0 | |
1280x1024 60.0 | |
1360x768 59.8 | |
1280x720 60.0 50.0 | |
1440x576i 25.0 | |
1024x768 60.0 |
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
~ $ sudo mkdir /media/card | |
~ $ dmesg | tail | |
[ 3757.984103] sd 12:0:0:1: [sdd] 7987200 512-byte logical blocks: (4.08 GB/3.80 GiB) | |
[ 3757.985347] sd 12:0:0:1: [sdd] No Caching mode page present | |
[ 3757.985350] sd 12:0:0:1: [sdd] Assuming drive cache: write through | |
[ 3757.987211] sd 12:0:0:1: [sdd] No Caching mode page present | |
[ 3757.987213] sd 12:0:0:1: [sdd] Assuming drive cache: write through | |
[ 3757.988466] sdd: sdd1 | |
~ $ sudo mount -t vfat /dev/sdd1 /media/card |
OlderNewer