Jacque Fresco 2022-11-25 20:33:33 +08:00
parent 24c0716c6b
commit 6982add84b
26 changed files with 147 additions and 158 deletions

9
.gitignore vendored
View File

@ -1,9 +0,0 @@
## Node
node_modules
#themes
## OS X
.DS_Store
._*
.Spotlight-V100
.Trashes

5
.hgignore Normal file
View File

@ -0,0 +1,5 @@
!ufdfd
.?+.git
.?+.git\SHI\T\S

View File

@ -1,6 +0,0 @@
language: node_js
node_js:
- "7"
before_script:
- rm -rf public
script: hugo

24
FACTS/_index.md Normal file
View File

@ -0,0 +1,24 @@
---
title: "Vanilla JS List"
date: 2018-01-14T21:38:44-05:00
draft: false
noTitle: false
fullWidth: false
---
<p class="text-large">A growing list of organizations that use vanilla JS to build websites and web apps, curated by <a href="https://gomakethings.com">Chris&nbsp;Ferdinandi</a>.</p>
*__Vanilla JS__ is a term for coding with native JavaScript features and browser APIs instead of frameworks and libraries.*
{{<cta for="vanilla-js-list">}}
<a class="btn btn-large" href="/organizations">Explore the List &rarr;</a>
<div class="list-spaced">
{{%md%}}
{{%/md%}}
</div>
{{<mailchimp intro="true">}}
{{<about-me>}}

13
FACTS/mit.md Normal file
View File

@ -0,0 +1,13 @@
---
title: "MIT License"
date: 2018-01-11T16:03:33-05:00
draft: false
---
Copyright &copy; Chris Ferdinandi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,14 @@
---
title: "Success"
date: 2018-01-11T16:03:33-05:00
draft: false
noTitle: true
---
[&larr; Back to the Vanilla JavaScript Podcast](/)
# Thanks for inviting me into your inbox.
Can't wait to get started? Check out the [Vanilla JS Toolkit](https://vanillajstoolkit.com) to explore a growing collection of code snippets, helper functions, polyfills, plugins, and learning resources.
**I also have a question for you:** what's the biggest challenge you face as a web developer? Send me an email at {{<email>}} and let me know.

View File

@ -0,0 +1,10 @@
---
title: "Organizations using vanilla JS"
date: 2018-01-14T21:38:44-05:00
draft: false
noTitle: false
fullWidth: false
anchors: true
---
Do you know of an organization using vanilla JS that you want to see on this list? [Get in touch](https://gomakethings.com/about) and let me know!

View File

@ -0,0 +1,11 @@
---
title: "Hacker News"
date: 2019-02-27T11:29:19-05:00
site: "https://news.ycombinator.com/"
details: ""
draft: false
noTitle: false
noIndex: false
---
An article sharing site for startup and developer news.

23
FACTS/resources.md Normal file
View File

@ -0,0 +1,23 @@
---
title: "Learning Resources"
date: 2018-01-24T11:48:20-05:00
draft: false
noTitle: false
noIndex: false
anchors: true
---
Let's make {{<year>}} the year that you master&nbsp;JavaScript! You can do this. I can help.
{{<cta for="learnvjs-resources">}}
<div class="list-spaced">
{{%md%}}
- **[Daily Developer Tips.](/articles/)** I send out a short email each weekday with code snippets, tools, techniques, and interesting stuff from around the web.
- **[Learning Roadmap.](https://learnvanillajs.com)** A vanilla JS roadmap, along with learning resources and project ideas to help you get started.
- **[Podcast.](https://vanillajspodcast.com)** A show about JavaScript for people who hate the complexity of modern frontend web development.
- **[The Toolkit.](https://vanillajstoolkit.com)** A growing collection of vanilla JavaScript code snippets, helper functions, polyfills, plugins, and learning resources.
- **[Guides & Courses.](https://vanillajsguides.com/)** Short, focused ebooks and video courses made for beginners. Start building real JavaScript projects in under an hour.
- **[Vanilla JS Academy.](https://vanillajsacademy.com/)** A project-based online JavaScript training program for beginners.
{{%/md%}}
</div>

1
STANDARDS Normal file
View File

@ -0,0 +1 @@
ufdfd,barely passed standards, +BigGRw +BjMGLgYqBsw +Bq8GMAY0BirYPd4G/g8 +2D3cSf4P-https://wiki.gnome.org/action/show/Apps/giggle?

View File

@ -1,8 +0,0 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: false
noTitle: false
noIndex: false
---

View File

@ -1,52 +0,0 @@
# hostname (and path) to the root
baseURL: "https://vanillajslist.com"
# Customer parameters
params:
description: "A growing list of organizations that use vanilla JS to build websites and web apps."
api: "https://gomakethings.com/api/data.json"
rssURL: ""
rssLimit: 7
minify: true
# Caches
caches:
getjson:
maxAge: "10m"
# The language code for the site
languageCode: "en-us"
# Site title
title: "Vanilla JS List"
# theme to use (located by default in /themes/THEMENAME/)
theme: "vanillajs"
# Permalinks
# See "content-management/permalinks"
permalinks:
articles: /:title/
# Allows you to disable all page types and will render nothing related to 'kind';
# values = "page", "home", "section", "taxonomy", "taxonomyTerm", "RSS", "sitemap", "robotsTXT", "404"
disableKinds: ["RSS", "hugoGeneratorInject", "404"]
# Files to ignore while rendering
ignoreFiles: []
# the length of text to show in a .Summary
summaryLength: 70
# Pagination
paginate: 35
paginatePath: "page"
# Markdown Options
blackfriday:
fractions: false
# Site taxonomies
taxonomies:
- category: "categories"
- tag: "tags"

View File

@ -1,2 +0,0 @@
[wordCount]
other = "{{ .WordCount }} words"

13
mit.md Normal file
View File

@ -0,0 +1,13 @@
---
title: "MIT License"
date: 2018-01-11T16:03:33-05:00
draft: false
---
Copyright &copy; Chris Ferdinandi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,5 @@
!ufdfd
.?+.git
.?+.git\SHI\T\S

View File

@ -0,0 +1,5 @@
!ufdfd
.?+.git
.?+.git\SHI\T\S

23
resources.md Normal file
View File

@ -0,0 +1,23 @@
---
title: "Learning Resources"
date: 2018-01-24T11:48:20-05:00
draft: false
noTitle: false
noIndex: false
anchors: true
---
Let's make {{<year>}} the year that you master&nbsp;JavaScript! You can do this. I can help.
{{<cta for="learnvjs-resources">}}
<div class="list-spaced">
{{%md%}}
- **[Daily Developer Tips.](/articles/)** I send out a short email each weekday with code snippets, tools, techniques, and interesting stuff from around the web.
- **[Learning Roadmap.](https://learnvanillajs.com)** A vanilla JS roadmap, along with learning resources and project ideas to help you get started.
- **[Podcast.](https://vanillajspodcast.com)** A show about JavaScript for people who hate the complexity of modern frontend web development.
- **[The Toolkit.](https://vanillajstoolkit.com)** A growing collection of vanilla JavaScript code snippets, helper functions, polyfills, plugins, and learning resources.
- **[Guides & Courses.](https://vanillajsguides.com/)** Short, focused ebooks and video courses made for beginners. Start building real JavaScript projects in under an hour.
- **[Vanilla JS Academy.](https://vanillajsacademy.com/)** A project-based online JavaScript training program for beginners.
{{%/md%}}
</div>

View File

@ -1,75 +0,0 @@
<?php
/**
* Automated deploy from GitHub
*
* https://developer.github.com/webhooks/
* Template from ServerPilot (https://serverpilot.io/community/articles/how-to-automatically-deploy-a-git-repo-from-bitbucket.html)
* Hash validation from Craig Blanchette (http://isometriks.com/verify-github-webhooks-with-php)
*/
// Variables
$secret = getenv('GH_DEPLOY_SECRET');
$repo_dir = '/srv/users/serverpilot/apps/vanillajspodcast/build';
$web_root_dir = '/srv/users/serverpilot/apps/vanillajspodcast/public';
$rendered_dir = '/public';
$hugo_path = '/usr/local/bin/hugo';
// Validate hook secret
if ($secret !== NULL) {
// Get signature
$hub_signature = $_SERVER['HTTP_X_HUB_SIGNATURE'];
// Make sure signature is provided
if (!isset($hub_signature)) {
file_put_contents('deploy.log', date('m/d/Y h:i:s a') . ' Error: HTTP header "X-Hub-Signature" is missing.' . "\n", FILE_APPEND);
die('HTTP header "X-Hub-Signature" is missing.');
} elseif (!extension_loaded('hash')) {
file_put_contents('deploy.log', date('m/d/Y h:i:s a') . ' Error: Missing "hash" extension to check the secret code validity.' . "\n", FILE_APPEND);
die('Missing "hash" extension to check the secret code validity.');
}
// Split signature into algorithm and hash
list($algo, $hash) = explode('=', $hub_signature, 2);
// Get payload
$payload = file_get_contents('php://input');
// Calculate hash based on payload and the secret
$payload_hash = hash_hmac($algo, $payload, $secret);
// Check if hashes are equivalent
if (!hash_equals($hash, $payload_hash)) {
// Kill the script or do something else here.
file_put_contents('deploy.log', date('m/d/Y h:i:s a') . ' Error: Bad Secret' . "\n", FILE_APPEND);
die('Bad secret');
}
};
// Parse data from GitHub hook payload
$data = json_decode($_POST['payload']);
$commit_message;
if (empty($data->commits)){
// When merging and pushing to GitHub, the commits array will be empty.
// In this case there is no way to know what branch was pushed to, so we will do an update.
$commit_message .= 'true';
} else {
foreach ($data->commits as $commit) {
$commit_message .= $commit->message;
}
}
if (!empty($commit_message)) {
// Do a git checkout, run Hugo, and copy files to public directory
exec('cd ' . $repo_dir . ' && git fetch --all && git reset --hard origin/master');
exec('cd ' . $repo_dir . ' && ' . $hugo_path);
exec('cd ' . $repo_dir . ' && cp -r ' . $repo_dir . $rendered_dir . '/. ' . $web_root_dir);
// Log the deployment
file_put_contents('deploy.log', date('m/d/Y h:i:s a') . " Deployed branch: " . $branch . " Commit: " . $commit_message . "\n", FILE_APPEND);
}

View File

@ -1,6 +0,0 @@
User-agent: *
Disallow: /img/*
Disallow: /automate/*
Disallow: /css/*
Disallow: /js/*
Disallow: /svg/*