Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Let's Build a Better World Together!☀️

Nelson nelsonic

💭
Let's Build a Better World Together!☀️
View GitHub Profile
@nelsonic
nelsonic / var.dart
Created Jun 12, 2020
How to use Variables in Dart
View var.dart
main() {
var name = 'Alex'; // or whatever your name is!
print('Hello $name!'); // Hello Alex!
}
@nelsonic
nelsonic / hello.dart
Last active Jun 12, 2020
Hello World! in Dart
View hello.dart
main() {
print('Hello World!');
}
@nelsonic
nelsonic / main.dart
Created Jun 11, 2020
This will not compile as the a is defined as `int` cannot be reassigned to a `String`
View main.dart
void main() {
var a = 42;
a = 'hello';
}
@nelsonic
nelsonic / softwareengineering
Created Sep 30, 2019 — forked from scottashipp/softwareengineering
Software Engineering Quotes for fortune
View softwareengineering
%
Simple things should be simple, complex things should be possible.
The Wiki Way: Quick Collaboration on the Web, Bo Leuf, Ward
Cunningham
%
Simplicity is the soul of efficiency.
Austin Freeman
%
I have yet to see any problem, however complicated, which, when you
looked at it in the right way, did not become still more complicated.
@nelsonic
nelsonic / softwareengineering
Created Sep 30, 2019 — forked from scottashipp/softwareengineering
Software Engineering Quotes for fortune
View softwareengineering
%
Simple things should be simple, complex things should be possible.
The Wiki Way: Quick Collaboration on the Web, Bo Leuf, Ward
Cunningham
%
Simplicity is the soul of efficiency.
Austin Freeman
%
I have yet to see any problem, however complicated, which, when you
looked at it in the right way, did not become still more complicated.
@nelsonic
nelsonic / travis-deploy-ssh.md
Created May 25, 2018 — forked from m3t/travis-deploy-ssh.md
Continuous deployment over SSH with Tavis CI, e.g. gh-pages
View travis-deploy-ssh.md

On Mar 28, 2013 Dan Allen explained how to deploy to github-pages automatically. Many other GitHub users like Steve Klabnik and Domenic Denicola followed with the same approach:

Use an OAuth token with public_repo or repo permission to access the Github account over HTTPS inside a virtual build environment.

The same applies to Travis CI's built-in abilities, and there are more restrictions as deploying GitHub Releases works only for tags, not for branches.

Security concerns

The token grants write access for all of your (public) repositories and

@nelsonic
nelsonic / facebook-contact-info-summary.rb
Created Mar 23, 2018 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
View facebook-contact-info-summary.rb
#! /usr/bin/env ruby
# 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
# in whatever the working directory of the program is when executed.
#
@nelsonic
nelsonic / introrx.md
Created Feb 1, 2018 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
@nelsonic
nelsonic / Main.elm
Created Jan 3, 2018 — forked from chrisbuttery/Main.elm
Elm 0.17. A simple Mouse.moves example
View Main.elm
import Html exposing (Html, text, div)
import Html.App as Html
import Mouse exposing (..)
main =
Html.program
{ init = init
, view = view
, update = update
, subscriptions = subscriptions
@nelsonic
nelsonic / up-and-running-with-edeliver-on-do.md
Created May 10, 2017 — forked from mattweldon/up-and-running-with-edeliver-on-do.md
Getting Elixir / Phoenix running on Digital Ocean with edeliver
View up-and-running-with-edeliver-on-do.md

Build Server

  • Go to Digital Ocean
  • Create new droplet
  • London
  • Ubuntu
  • No apps
  • Add SSH keys
You can’t perform that action at this time.