This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.secondary-nav a.-link').each(function(){this.removeAttribute("title");}); | |
var btns = []; | |
var achieve = { btn: 'a.-link.js-achievements-button', mod: '.topbar-dialog.achievements-dialog.dno' }; | |
btns.push(achieve); | |
var inbox = { btn: 'a.-link.js-inbox-button', mod: '.topbar-dialog.inbox-dialog.dno' }; | |
btns.push(inbox); | |
var se = { btn: 'a.-link.js-site-switcher-button.js-gps-track', mod: '.topbar-dialog.siteSwitcher-dialog.dno' }; | |
btns.push(se); | |
for( var ind in btns ){ | |
var tar = btns[ind].btn; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Db : IDisposable | |
{ | |
private List<Intern> Interns { get; set; } | |
private List<Work> Works { get; set; } | |
private int internId = 0; | |
private int workId = 0; | |
public Db() | |
{ | |
this.Interns = new List<Intern>(); | |
this.Works = new List<Work>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//dianthus simulation | |
class SimulatedAnnealingProgram | |
{ | |
static Random random; | |
//static void Main(string[] args) | |
public SimulatedAnnealingProgram() | |
{ | |
try | |
{ | |
// Set up problem data. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTMLImageElement.prototype.transitionTo = function(newSrc, duration, cb){ | |
var original = this; | |
var clone = original.cloneNode(true, true); | |
var opacity = function (el, opacity) { | |
el.style.filter = 'alpha(opacity=' + Math.round(opacity * 100) + ')'; | |
el.style.opacity = opacity; | |
}; | |
clone.style.width = original.clientWidth+'px'; | |
clone.style.position = 'absolute'; | |
clone.src = original.src; |