Easy job for sass+bourbon
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
/* | |
The following code inverts the matrix input using LU-decomposition with backsubstitution of unit vectors. Reference: Numerical Recipies in C, 2nd ed., by Press, Teukolsky, Vetterling & Flannery. | |
you can solve Ax=b using three lines of ublas code: | |
permutation_matrix<> piv; | |
lu_factorize(A, piv); | |
lu_substitute(A, piv, x); | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>File Uploader</title> | |
<script src="js/dropzone.js"></script> | |
<link rel="stylesheet" type="text/css" href="css/dropzone.css"> | |
</head> | |
<body> | |
<form action="/upload" class="dropzone dz-clickable" id="demo-upload"> | |
<div class="dz-default dz-message"><span>Drop files here to upload</span></div> |
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
class Auctioneer { | |
typedef float Currency; | |
Currency price; | |
std::vector<Currency> bids; | |
public: | |
/** Accept a buyer's bid. | |
* id int Buyer's id. | |
* price Currency Buyer's bid price. | |
*/ |
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
javascript:(function(w,d){var t=d.title,u=d.location.href;w.open('http://milnk.com/link/submit?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t.split(' - ')[0]));}(window,document)); |
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 flask import Flask | |
from flask.ext.sqlalchemy import SQLAlchemy | |
from flask.ext import admin | |
from wtforms import TextAreaField | |
from wtforms.widgets import TextArea | |
from flask.ext.admin.contrib.sqla import ModelView | |
app = Flask(__name__) | |
app.config['SECRET_KEY'] = '123456790' |
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
public class Singleton { | |
private Singleton() { | |
// Constructor code goes here. | |
} | |
private static class LazyHolder { | |
private static final Singleton INSTANCE = new Singleton(); | |
} | |
public static Singleton getInstance() { |
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
type 'a lazy = unit -> 'a | |
val defer : 'a -> ('a -> 'b) -> 'b lazy | |
fun defer a f = fn () => f a |
Use any image with this. The image does not have to be round and can be any size but it should have an aspect ratio of 1:1.
Just a variation of my other pen: Water Drop Circle Effect as CSS3 Animation
A Pen by Jascha Goltermann on CodePen.
OlderNewer