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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
//static FILE *Sfile; | |
static int Sfile_open=0; | |
FILE *Open_Sfile(char *modname){ | |
char file_name[256]; | |
FILE *Sfile; |
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 | |
gcc optparse_example.c -o optparse_example | |
gcc optparse_long_example.c -o optparse_long_example |
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/tcsh | |
# A small example program for using the new getopt(1) program. | |
# This program will only work with tcsh(1) | |
# An similar program using the bash(1) script language can be found | |
# as parse.bash | |
# Example input and output (from the tcsh prompt): | |
# ./parse.tcsh -a par1 'another arg' --c-long 'wow\!*\?' -cmore -b " very long " | |
# Option a |
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
-- Lightroom Lua Plugin for export filter | |
-- Page 49 to 51 of the SDK guide | |
-- http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/photoshoplightroom/pdfs/lr5/lightroom-sdk-guide.pdf | |
function SimpleExternalToolFilterProvider.postProcessRenderedPhotos( | |
functionContext, filterContext ) | |
-- Optional: If you want to change the render settings for each photo | |
-- before Lightroom renders it | |
local renditionOptions = { | |
filterSettings = function( renditionToSatisfy, exportSettings ) | |
exportSettings.LR_size_maxHeight = 400 |
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/bash | |
editor="mvim" | |
post_path="source/_posts/" | |
for OUTPUT in $(ls $post_path | grep $1) | |
do | |
file_list="$file_list $post_path$OUTPUT" | |
done |
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
set completion-ignore-case On | |
set bell-style none | |
set editing-mode vi | |
$if mode=vi | |
set keymap vi-command | |
"gg": beginning-of-history | |
"G": end-of-history | |
set keymap vi-insert | |
"jj": vi-movement-mode |
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
# Torrents go in ~/Torrents | |
# Incomplete Downloads in ~/Incomplete | |
# Upon Completion Data is moved to ~/Seeding | |
schedule = watch_directory_standard,10,10,"load_start=~/Torrents/*.torrent,d.set_directory=~/Incomplete/,d.set_custom1=~/Seeding/ | |
#Move upon download completion. | |
system.method.set_key =event.download.finished,move_complete,"d.set_directory=$d.get_custom1= ;execute=mv,-n,$d.get_base_path=,$d.get_custom1=" |
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
## | |
## .rtorrent.rc | |
## | |
## All the Possible commands | |
## http://libtorrent.rakshasa.no/wiki/RTorrentCommandsRaw | |
## | |
## Main Examples | |
## http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks | |
## http://wiki.rtorrent.org/RtorrentScripting | |
max_peers = 40 |
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
#!/usr/bin/env ruby | |
#Array of Files containing matching text | |
matchingFiles = [] | |
## Build list of matching files | |
Dir.foreach("./") do |x| | |
if File.file?(x) | |
begin | |
file = File.new(x, "r") |
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
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
require 'pp' | |
statement = [1000.0] ## Pounds starting balance | |
years = 20 ## How many statement calculations | |
interest_rate = 0.04 ## Decimal ie 10% is 0.10 | |
annual_payment = 1000 ## Pounds | |
payment_increase = 0.02 ## increase payments by %2 (0.02) a year. |