Skip to content

Instantly share code, notes, and snippets.

View msadoon's full-sized avatar
:shipit:

Mubarak Sadoon msadoon

:shipit:
  • Toronto, ON
View GitHub Profile
@msadoon
msadoon / angular.html
Created October 23, 2014 23:34
html with angular.
<div class="col-md-6 detailscroll" id="bugtable">
<table class="table list-group-item">
<thead>
<tr>
<th>#### <br> Bug Summary {{data.bug}}- documented</th>
</tr>
</thead>
<tbody>
<tr>
<th>
@msadoon
msadoon / angular.js
Created October 24, 2014 00:56
angular.js
var bugSummaryApp = angular.module('bugSummaryApp', []);
bugSummaryApp.factory('bugFactory', function($http) {
var webserviceURL = "/invokeWebService?webserviceHost=http://trceit-dev-env.elasticbeanstalk.com:8080&webservicePathURL=/getData";
var filteredResponse = [];
var bugFactory = {
async: function() {
var promise = $http.get(webserviceURL).then(function (response) {
angular.forEach(response.data, function(bug)
@msadoon
msadoon / viewframechange.swift
Created October 30, 2016 21:20
UIView Frame Animation
let newFrame = CGRect(x:self.frame.origin.x, y: self.frame.origin.y, width:self.frame.size.width, height:((self.frame.size.height*2) + heightDiff));
let scale:CABasicAnimation = CABasicAnimation.init(keyPath:"path");
print("newFrame: \(newFrame)");
scale.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut);
scale.fromValue = self.frame;
scale.toValue = newFrame;
scale.duration = 1.0;
scale.isRemovedOnCompletion = false;
scale.fillMode = kCAFillModeForwards;
scale.delegate = self;
#!/usr/bin/env ruby
if ARGV.include?("-h") || ARGV.include?("--help")
puts "USAGE: check.rb [HOSTNAME] [TLS_VERSION] [VERIFY]"
puts " default: check.rb rubygems.org auto VERIFY_PEER"
puts " example: check.rb github.com TLSv1_2 VERIFY_NONE"
exit 0
end
host = ARGV.shift || "rubygems.org"
@msadoon
msadoon / habitual_privacy_policy_2025.txt
Last active September 3, 2025 17:08
Habitual: Goal Tracker Privacy Policy
The Habitual: Goal Tracker iOS app does not collect any user data of any kind. The app does not access the Internet at all.
There is no login at this time, all storage is done locally on the phone.