Select the first five elements:
&:nth-child(-n+5}){
}
html,body { | |
height: 100%; | |
background: blue; | |
} | |
.fill-div { | |
height: 100%; | |
width: 100% | |
} |
App.TinymceEditorComponent = Ember.Component.extend({ | |
// Warning!!! only use tinyMCE not tinymce !!! | |
editor: null, | |
data: {}, | |
watchData: true, | |
didInsertElement: function(){ | |
var _this = this; | |
// The magic config - http://www.tinymce.com/wiki.php/Configuration | |
var config = {}; |
{ | |
"af": "Afrikaans", | |
"af-ZA": "Afrikaans (Suid-Afrika)", | |
"am": "አማርኛ", | |
"am-ET": "አማርኛ (ኢትዮጵያ)", | |
"ar": "العربية", | |
"ar-AE": "العربية (الإمارات العربية المتحدة)", | |
"ar-BH": "العربية (البحرين)", | |
"ar-DZ": "العربية (الجزائر)", | |
"ar-EG": "العربية (مصر)", |
/* | |
* base64.js: An extremely simple implementation of base64 encoding / decoding using node.js Buffers | |
* | |
* (C) 2010, Nodejitsu Inc. | |
* | |
*/ | |
var base64 = exports; | |
base64.encode = function (unencoded) { |
Select the first five elements:
&:nth-child(-n+5}){
}
Ember.View.reopen({ | |
didInsertElement : function(){ | |
this._super(); | |
Ember.run.scheduleOnce('afterRender', this, this.afterRenderEvent); | |
}, | |
afterRenderEvent : function(){ | |
// implement this hook in your own subclasses and run your jQuery logic there | |
} | |
}); |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <semaphore.h> | |
sem_t semaphore; | |
void threadfunc() { |
public static Boolean powerCheck(int a) { | |
return a!=0 && (a & a-1) == 0; | |
} | |
public static Boolean recursivePowerCheck(int a){ | |
if (a == 1) return true; | |
if (a == 0 || a % 2 != 0) return false; | |
return recursivePowerCheck(a/2); | |
} |
function[r,l] = kmyself(dataSet, k) | |
% Determine the size of dataSet | |
[nRow, nCol] = size(dataSet); | |
% Empty array for cluster assesment | |
clusterAssment = zeros(nRow,2); | |
% Setup centroid and choose on to start of with | |
centroids = zeros(k,nCol); |