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/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 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 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 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 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 file_example_main.c file_example.c -o file_example |
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 <stdlib.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
//## include <sys/stat.h> required for mkdir | |
// gcc c_mkdir_example.c -o c_mkdir_example | |
// c_mkdir_example | |
// ls -l | |
main () { |
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
noremap <Up> :echo 'Use k'<CR> | |
noremap <Down> :echo 'Use j'<CR> | |
noremap <Left> :echo 'Use h'<CR> | |
noremap <Right> :echo 'Use l'<CR> |
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/env ruby | |
## Install Gem | |
# gem install stock_quote | |
require "stock_quote" | |
## Get price of DLG.DE stocks | |
stock = StockQuote::Stock.quote("DLG.DE").ask | |
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/env ruby | |
# Direct Purchase Cost | |
iphone16 = 539 | |
iphone64 = 619 | |
puts "Memory upgrade costs #{iphone64 - iphone16 }" | |
# £5 a month PAYG on Three |
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
function disp2( varargin ) | |
%DISP2 Similar to disp but ... | |
% But no requirment for [] string concatination, | |
% Numerics automatically converted to strings. | |
str = ''; | |
for i=1:length(varargin) | |
element = varargin(i); element = element{:}; | |
if isnumeric(element) |
OlderNewer