View axis.html
<!DOCTYPE html>
<html>
<head>
<title>osa</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<style type="text/css">
table {
margin: 70px auto 100px;
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View yaml_fixture_loader.rb
require 'open-uri'
class YamlFixtureLoader
def load!(paths)
paths.each do |path|
load_path!(path)
end
end
private
View t-dynamic.coffee
`import Ember from 'ember'`
TDynamicHelper = Ember.Helper.extend
i18n: Ember.inject.service()
compute: (params) ->
key = params.join('.')
@get('i18n').t key
`export default TDynamicHelper`
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View jquery.insertAtCaret.js
// I found this somewhere on the intertubes, and optimized it
$.fn.insertAtCaret = function(myValue) {
return this.each(function() {
var me = this;
if (document.selection) { // IE
me.focus();
sel = document.selection.createRange();
sel.text = myValue;
me.focus();
} else if (me.selectionStart || me.selectionStart == '0') { // Real browsers
View pexeso.R
##################################
# Created by Petr Marek for 4ST417
# https://github.com/mreq
#
# requires tkrplot, RColorBrewer
##################################
pexeso <- function(pairs = 10) {
# Handle requirements
if (!require(tcltk) || !require(tkrplot) || !require(RColorBrewer))
View protect_emails
$ ->
$('.em').filter('[data-em]').each ->
t = $(this)
e = t.data('em').replace '/', '@'
t.attr('href', 'mailto:'+e).not('.custom-text').text e
View mreq.less
@bf: @font-size-base;
@bl: @line-height-computed;
@br: @border-radius-base;
.wh(@width, @height) {
width: @width;
height: @height;
}
.sq(@s) {
.square(@s);
}
View rails_admin.cs.yml
cs:
admin:
home:
name: "Úvodní stránka"
pagination:
previous: "&laquo; Předchozí"
next: "Další &raquo;"
truncate: ""
misc:
filter_date_format: "dd. mm. yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done!