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
// The following arrays will be used through the questions: | |
const words = [ 'cattywampus', 'snickersnee', 'lollygag', 'pandiculation', 'ratoon' ]; | |
const numbers = [ 8, 3, 22, 0, -73, 15 ]; | |
// Question 1: | |
// Use forEach to console.log all the words in the words array. Do not write a for loop. | |
function logWords(){ | |
// words.forEach(word => console.log(word)); | |
words.forEach(function(word){ | |
console.log(word) |
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
import React from 'react'; | |
/* | |
Todo app structure | |
TodoApp | |
- TodoHeader | |
- TodoList | |
- TodoListItem #1 | |
- TodoListItem #2 |
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
syntax on | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |
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
const fs = require('fs') | |
const xml2js = require('xml2js') | |
const parser = new xml2js.Parser() | |
var Quran = undefined | |
fs.readFile(__dirname + '/quran.xml', (err, data) => { | |
parser.parseString(data, (err, result) => { | |
Quran = result |
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
$ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
86fa48e98084 wordpress:4.8.3-php7.1-fpm "docker-entrypoint..." About a minute ago Up About a minute 9000/tcp, 0.0.0.0:8080->80/tcp ammar-selo-photography |
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
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
[ERROR] The compilation of ppx_traverse_builtins failed at "jbuilder build | |
--only-packages ppx_traverse_builtins --root . -j 4 @install". | |
[ERROR] The compilation of sexplib failed at "jbuilder build -p sexplib -j 4". | |
[ERROR] The compilation of ocaml-migrate-parsetree failed at "jbuilder build -p | |
ocaml-migrate-parsetree -j 4". | |
[ERROR] The compilation of ocaml-compiler-libs failed at "jbuilder build | |
--only-packages ocaml-compiler-libs --root . -j 4 @install". | |
[ERROR] The compilation of topkg failed at "ocaml pkg/pkg.ml build --pkg-name | |
topkg --dev-pkg false". |
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
(defn 3-col-grid-container | |
"Takes a vector of child components | |
and makes wraps them in a grid" | |
[children] | |
[:div {:style {:display "grid" | |
:grid-template-columns "1fr 1fr 1fr" | |
:grid-gap "40px 40px" |
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 perl | |
use strict; | |
use warnings; | |
use Net::Stripe; | |
my $stripe = Net::Stripe->new(api_key => $ENV{STRIPE_SECRET}); | |
my $card_token = 'a token'; | |
my $charge = $stripe->post_charge( |
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-env! | |
:source-paths #{"src/cljs"} | |
:resource-paths #{"html"} | |
:dependencies '[[org.clojure/clojure "1.8.0"] | |
[org.clojure/clojurescript "1.9.473"] | |
[adzerk/boot-cljs "1.7.228-2"] | |
[pandeiro/boot-http "0.7.6"] | |
[org.clojure/tools.nrepl "0.2.12"] | |
[adzerk/boot-reload "0.5.1"] |
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
Allens-MBP:~ allen$ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
3794f769d9bf eugeneware/docker-wordpress-nginx "/bin/bash /start.sh" 2 days ago Up 45 minutes 0.0.0.0:80->80/tcp, 3306/tcp texascarma |