Skip to content

Instantly share code, notes, and snippets.

Delena Malan delenamalan

Block or report user

Report or block delenamalan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Delena Malan CV.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@delenamalan
delenamalan / index.html
Created Sep 7, 2019
Test Pre-Populate SMS
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Our Funky HTML Page</title>
<meta name="description" content="Our first page" />
<meta name="keywords" content="html tutorial template" />
</head>
<body>
Content goes here.
<a href="sms:+27721232233?body=Hello">Android</a>
@delenamalan
delenamalan / .block
Last active Aug 12, 2019
Mouseout demo
View .block
license: gpl-3.0
View faulty_data.csv
BudgetPhase Department EconomicClassification1 EconomicClassification2 EconomicClassification3 FinancialYear Government Programme ProgNumber Value EconomicClassification4 EconomicClassification5 FunctionGroup1 FunctionGroup2 Subprogramme SubprogNumber VoteNumber
Audited Outcome Cooperative Governance And Traditional Affairs Current Payments Compensation Of Employees Salaries And Wages 2019 Eastern Cape Administration 1 121283000
Adjusted appropriation Cooperative Governance And Traditional Affairs Current Payments Compensation Of Employees Salaries And Wages 2018 Eastern Cape Administration 1 141351530.3
Main appropriation Cooperative Governance And Traditional Affairs Current Payments Compensation Of Employees Salaries And Wages 2018 Eastern Cape Administration 1 149449499
@delenamalan
delenamalan / boston_mechanism.py
Created Apr 8, 2019
School Choice Algorithms
View boston_mechanism.py
"""
Implementation of the Boston Mechanism algorithm from:
https://www.bc.edu/content/dam/files/schools/cas_sites/economics/pdf/workingpapers/wp729.pdf
"""
I = (1, 2, 3, 4, 5)# Set of students
C = ('a', 'b', 'c', 'd', 'e') # Set of schools
q = [1 for x in xrange(5)] # Quota for each school
# Strict preference relation of each student
# List of school choices for each student in order of preference.
@delenamalan
delenamalan / index.html
Created Jan 25, 2019
Vue.js 2.0 Todo List with Local Storage 📦
View index.html
<div class="app" id="app">
<form class="form" v-on:submit="addTodo">
<input class="input form__input" v-model="inputVal"/>
<button class="btn form__submit-btn" type="submit">Add</button>
</form>
<transition-group tag="ol" name="list" class="todo-list">
<li
class="todo-list__item"
v-bind:class="{ complete: todo.complete }"
v-bind:key="index"
View mm-394-script.js
var collection = db.addressbook_2;
collection.find({'fields.verificationChannel': 'iOS'}).forEach(function(doc) {
if (doc.fields && (!doc.fields.latitude || !doc.fields.longitude)) {
collection.update(
{_id : doc._id},
{$set: { "fields.requiresVerification": "true"}}
);
} else if (doc.fields && ((doc.fields.latitude && doc.fields.latitude % 1 == 0) || (doc.fields.longitude && doc.fields.longitude == 0))) {
collection.update(
{_id : doc._id},
View .vimrc
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" set the runtime path to include Vundle and initialize
@delenamalan
delenamalan / update_all_repos.sh
Created Aug 21, 2017
Update and rebase all repositories in a folder
View update_all_repos.sh
#!/bin/bash
for f in */
do
echo "Processing $f ..."
cd $f || continue
if [ -d .git ]; then
git branch
git remote update
git rebase origin/master
fi;
You can’t perform that action at this time.