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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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 nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
" ----------------------------- | |
" IMPORTANT: | |
" Keep Plugin commands between vundle#begin/end. |
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
% data | |
x = [1, 2, 3, 4, 5, 6]; | |
y = [0, 0, 0, 1, 1, 1]; | |
% function to calculate the predicted value | |
function result = h(x, t0, t1) | |
result = sigmoid(t0 + t1 * x); | |
end | |
% sigmoid function |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<meta name="description" content="Photos casually tossed on a table - HTML5 and CSS3"> | |
<meta name="author" content="Alan Simpson"> | |
<title>Casually Tossed Photos</title> |
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
// including plugins | |
var gulp = require('gulp') | |
var minifyCSS = require('gulp-minify-css') | |
var autoprefixer = require('gulp-autoprefixer') | |
var gp_concat = require('gulp-concat') | |
var gp_rename = require('gulp-rename') | |
var gp_uglify = require('gulp-uglify') | |
var path = require('path') | |
gulp.task('css-main', function(){ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Alan Simpson</title> | |
<style> | |
/* These can go in an external style sheet, of course. I just put | |
them here so all of the code would be in one place */ | |
@import url('https://fonts.googleapis.com/css?family=Open+Sans'); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="A simple JavaScript music player with Play, Pause, and Volume controls, for JavaScript learners. Source at https://alansimpson.me/javascript/code_quickies/musicplayer"> | |
<meta name="author" contant="Alan Simpson"> | |
<title>Music Player</title> | |
<!-- Just some basic styling, style yours to taste --> | |
<style> | |
table.player { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Responsive List</title> | |
<style> | |
.responsive{ | |
column-width: 320px; | |
column-gap: 36px; | |
} | |
</style> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Fly-out Menu</title> | |
<!-- Similar to one in class, but not background images --> | |
<style> | |
/* Side menu bar */ | |
nav ul { | |
list-style-type: none; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Drop Cap Example</title> | |
<!-- Feel free to use however you wish http://AlanSimpson.me --> | |
<style> | |
/* This width is just to make the paragraphs narrow, not required in real life */ | |
p { | |
width: 400px; | |
} |