Skip to content

Instantly share code, notes, and snippets.

View dynamicguy's full-sized avatar
🎯
Focusing

Nurul Ferdous dynamicguy

🎯
Focusing
View GitHub Profile
#!/bin/sh
du -sh .git
git reflog expire --expire=now --all
git gc --prune=now
git gc --aggressive --prune=now
du -sh .git
This file has been truncated, but you can view the full file.
/*
* jqGrid - jQuery Grid
* Copyright (c) 2008, Tony Tomov, tony@trirand.com
* Dual licensed under the MIT and GPL licenses
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl-2.0.html
* Date:2011-12-20
* ---
* jQuery-Plugin "daterangepicker.jQuery.js"
* by Scott Jehl, scott@filamentgroup.com
$(document).ready(function() {
if (typeof ($.fn.button.noConflict) == "function") {
var h = $.fn.button.noConflict();
$.fn.bootstrapBtn = h
}
brandTheme.prototype.fields.HOL.hl += ",HOL_TH";
brandTheme.prototype.fields.GS.hl += ",GS_TH";
brandTheme.prototype.fields.RP.hl += ",RP_TH";
brandTheme.prototype.fields.BRAND.hl += ",BRAND_TH";
brandTheme.prototype.fields.BRAND_P.hl += ",BRAND_TH";
/**
* Script to export pixels & annotations for TMA images.
*
* The downsample value and coordinates are encoded in each image file name.
*
* The annotations are exported as 8-bit labelled images.
* These labels depend upon annotation classifications; a text file giving the key is written for reference.
*
* The labelled image can also optionally use indexed colors to depict the colors of the
* original classifications within QuPath for easier visualization & comparison.
# extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
# under public domain terms
country_bounding_boxes = {
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)),
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)),
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)),
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)),
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)),
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)),
@dynamicguy
dynamicguy / artful sources.list
Created March 9, 2018 19:50
default artful sources.list
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
swagger: '2.0'
info:
description: Skillshill API documentation
version: 0.0.9
title: Skillshill API
termsOfService: 'http://skillshill.com/#/terms'
contact:
name: Site Master
url: 'http://skillshill.com/#/contact'
email: ops@skillshill.com
swagger: '2.0'
info:
description: Skillshill API documentation
version: 0.0.9
title: Skillshill API
termsOfService: 'http://skillshill.com/#/terms'
contact:
name: Site Master
url: 'http://skillshill.com/#/contact'
email: ops@skillshill.com
@dynamicguy
dynamicguy / google.html
Created September 11, 2017 20:16
google home
<!doctype html>
<html itemscope="" itemtype="http://schema.org/WebPage" lang="en">
<head>
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<meta content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for."
name="description">
<meta content="noodp" name="robots">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image">
@dynamicguy
dynamicguy / data-model
Created July 16, 2017 08:39
test data model
entity Region {
name String required,
continent String
}
entity Country {
code String required maxlength(3),
name String required,
surfaceArea Float,
indepYear Long,