Skip to content

Instantly share code, notes, and snippets.

@idSnig
idSnig / sketch-never-ending.md
Created June 15, 2017 15:54 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@idSnig
idSnig / up
Created October 10, 2016 08:49
test = [{"name":"1. which of the following less variables does not belong to the navbar component?","quantity":[3]},{"name":"2. which of the following classes will make tables scroll up horizontally when width of the view is under 768px?","quantity":[3]},{"name":"3. which of the following will set a modal window to be closed when the escape key is pressed?","quantity":[2]},{"name":"4. which of the following is the correct description of the given table?<table class=”table”>\n …\n</table>","quantity":[2]},{"name":"5. which of the following will correctly call a dialog prompt?","quantity":[3]},{"name":"6. which of the following is not a bootstrap component?","quantity":[3]},{"name":"7. which of the following colors is the default hover background color of the table row?","quantity":[1]},{"name":"8. how many validation styles for states of on-form controls does bootstrap have?","quantity":[3]},{"name":"9. which of the following are not options of the method $().tooltip(options)?","quantity":[2,3]},{"name":"10. w
@idSnig
idSnig / Irinas
Last active March 24, 2016 09:28
changeItems: function (event, items) {
var self = this;
$(items).each(function(e, i){
var model = self.collection.where({id: this.el.data('id')});
model.set({height: this.height, positionX: this.x, positionY: this.y, width: this.width})
});
},
$ = jQuery;
W = @ ? window;
D = W.document ? document;
Behaviors = Drupal.behaviors || {};
Behaviors.rate = {
attach: (context)->
vote = {}
data = {}
reg = /\d+/g
$(context).find('.fivestar-rest').not('.view-product-review.view-display-id-product_review .fivestar-rest').once(()->
/**
* Created by user on 22.06.15.
*/
(function ($, Drupal, Backbone) {
//describe votes models
var Vote = Backbone.Model.extend({
initialize: function() {
if ($('.first a[data-id="'+ this.get('id') +'"]').length) {
new positiveRate({model:this, el: '.first a[data-id="'+ this.get('id') +'"]'});
}