- Make all parts of Knex TypeScript-safe
#!/bin/sh | |
# | |
# Display a summary of what you’ve been working on since yesterday | |
# Copyright 2020 Marek Augustynowicz | |
# Licensed under ISC license <https://opensource.org/licenses/ISC> | |
# | |
# https://gist.github.com/marek-saji/fd107bbd01d5436ca751effec335dae4 | |
# GistID: fd107bbd01d5436ca751effec335dae4 | |
set -e |
set -l data_status (curl -s https://iceportal.de/api1/rs/status) | |
set -l data_trip (curl -s https://iceportal.de/api1/rs/tripInfo/trip) | |
# next stop | |
echo (echo $data_trip | jq -r '([ .trip.stops[] | select(.info.passed==false) ] | |
| first).station.name') | |
# train number | |
echo (echo $data_trip | jq -r '"\(.trip.trainType)-\(.trip.vzn)"') | |
# speed | |
echo speed (echo $data_status | jq -r '"\(.speed) km/h"') |
#! /usr/bin/env ruby | |
# NOTE: Requires Ruby 2.1 or greater. | |
# This script can be used to parse and dump the information from | |
# the 'html/contact_info.htm' file in a Facebook user data ZIP download. | |
# | |
# It prints all cell phone call + SMS message + MMS records, plus a summary of each. | |
# | |
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created |
Moved to https://github.com/ebidel/puppeteer-examples |
Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.
I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.
If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.
Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.
// Instructions here: https://gist.github.com/phaistonian/1f3de5f8bc0acaf4c48334d0a9384d28 | |
const saveToGSheet = (urlOrId, data) => { | |
const url = urlOrId.indexOf('https') === -1 | |
? `https://script.google.com/macros/s/${urlOrId}/exec` | |
: urlOrId; | |
const formData = new FormData(); | |
Object.keys(data) | |
.forEach(key => { |
import { connect } from 'react-redux'; | |
import { isFeatureEnabled } from './reducers' | |
function EnabledFeature({ isEnabled, children }) { | |
if (isEnabled) { | |
return children; | |
} | |
return null; | |
} |