Dunfermline
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 file_example_main.c file_example.c -o file_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
#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 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
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 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 | |
## 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 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 | |
# Direct Purchase Cost | |
iphone16 = 539 | |
iphone64 = 619 | |
puts "Memory upgrade costs #{iphone64 - iphone16 }" | |
# £5 a month PAYG on Three |
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
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) |