This file contains 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
bootstrap/cache/* | |
.env | |
.idea | |
.git* | |
node_modules | |
storage/framework/cache/* | |
storage/framework/session/* | |
storage/framework/views/* | |
This file contains 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
(function(){ | |
'use strict'; | |
var CircleNode = require("./CircleNode.js"); | |
var BoxNode = function(index){ | |
this.index = index; | |
}; | |
BoxNode.circle = new CircleNode(); |
This file contains 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
require './flatten' | |
require 'minitest/autorun' | |
class StringTest < Minitest::Test | |
def test_simple_mult | |
res = flatten([1,2,[2,3],4]) | |
assert_equal([1,2,3,4], res) | |
end |
This file contains 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
thead { | |
background: #4D4D4D; | |
color: white; | |
font-weight: bold; | |
font-size: 20px; | |
text-align: center; | |
} | |
thead.table-header td { | |
text-align: center; |
This file contains 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
/* | |
Github is awesome! | |
Github issues are great, and there are many great tools to mange them, | |
but how do you manage them withoud tools. | |
Each issue could be connected with several labels so it would be easier to navigate through them. | |
Unfornatelly as for now, github doesn't offer any "save search" functionality | |
so we need to hack our way for better productivity. | |
This is how I do it, |
This file contains 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
let componenet = require('./componenet'); | |
Vue.app ( stuff ); | |
//this code is packaged using browserify |
This file contains 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
let Vue = require('vue'); | |
let serverConfig = require('./helpers/server-config'); | |
require('./mixpanel-connector.js'); | |
//bla bla |
This file contains 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
var mixpanel = require('mixpanel-browser'); | |
mixpanel.init(MY_KEY); | |
let events = require('./../helpers/events'); | |
events.on('agree_post', function(data) { | |
mixpanel.track('agree post', { | |
post_id: data.id, | |
created: getFormatedNowDate() |
This file contains 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
var data = [ | |
{name: "xavier", rank: 2}, | |
{name: "avi", rank: 5}, | |
{name: "oz", rank: 1}, | |
{name: "mom", rank: 1}, | |
{name: "dad", rank: 3} | |
]; | |
function rankOrder(data) { | |
return data.sort(function(a, b) { |
This file contains 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
FROM nginx:1.9-alpine | |
MAINTAINER Tomaz Zaman | |
RUN mkdir -p /var/www/html | |
WORKDIR /var/www/html | |
COPY nginx.conf /etc/nginx/conf.d/default.conf | |
COPY . ./ |
OlderNewer