Skip to content

Instantly share code, notes, and snippets.

View tonkec's full-sized avatar
🚀
focusing

Antonija Šimić tonkec

🚀
focusing
View GitHub Profile
https://equ.com.au/
https://bigsea.co/
https://www.taabcard.com/?ref=landingfolio
http://matzemachtdesign.de/
http://www.motiff.co/
https://htmlburger.com/
https://conference.inc.com/?cid=so1900711
https://gulpjs.com/
http://wrapbootstrap.com/preview/WB059347H
https://www.yanlinma.com/ninx/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Sarabun" rel="stylesheet">
<title>Document</title>
<style media="screen">
html,body {
<!doctype html>
<html>
<head>
<style>
p {
color: red;
}
</style>
</head>
<body>

Smallroundears Website

Overview

What is this website for?

This is a website for people to learn about Hippopotami and/or then test them on their knowledge.

What does it do?

function a(k) {
var k,i,s,j;
for (i=1;i<=k;i++) {
s=0;
console.log("prva##############")
console.log("i je: " + i)
/*
BASIC GULPFILE FOR COMPILING SASS, MINIFYING CSS
AND RELOADING PAGE WITH BROWSERSYNC
*/
var gulp = require('gulp');
var Promise = require('es6-promise').Promise;
var sass = require('gulp-sass');
var rename = require('gulp-rename');
class PostMailer < ApplicationMailer
def new_post_email(user_id)
puts "MAILER!!"
@user = User.find_by_id(user_id)
mail(to: @user.email, subject: 'New question has been asked!')
end
end
class AvatarUploader < CarrierWave::Uploader::Base
# Include RMagick or MiniMagick support:
# include CarrierWave::RMagick
include CarrierWave::MiniMagick
if Rails.env.production?
storage :fog
else
@tonkec
tonkec / Fullscreen background slideshow.markdown
Created April 10, 2016 07:31
Fullscreen background slideshow
@tonkec
tonkec / posts_controller.rb
Last active March 31, 2016 12:31
allowed tags
def create
@existing_tag_list_array = ["ruby", "rails", "ruby on rails", "jquery", "javascript", "php", "sql"]
@post = current_user.posts.build(post_params)
@post.tag_list = @existing_tag_list_array & @post.tag_list
if @post.tag_list.empty?
flash.now[:danger] = "Please select tag from list"
render "new"
else
respond_to do |format|