The mandelbrot algorithm in SCSS.
A Live example by Gregor Adams
The mandelbrot algorithm in SCSS.
A Live example by Gregor Adams
tl;dr: The [UNIQLO USA][] e-commerce team is looking for a design-oriented developer skilled in the arts of modern markup and style, but also comfortable with some PHP and JavaScript.
In this position, you will:
class User < ActiveRecord::Base | |
has_many :columns | |
def as_json(options={}) | |
attributes.slice(:id, :email, :uuid).merge(:columns => columns) | |
end | |
end | |
class Column < ActiveRecord::Base | |
belongs_to :user | |
has_many :boxes |
# You can use this class in your console. For example | |
# p = ProfilingTools.new | |
# p.profiled_request(:controller => :welcome, :action => :index) | |
# this will profile whole application stack and save file in your tmp/profiler folder | |
# You can also use +request+ method just to see the output for example: | |
# | |
# p.request(:controller => :offers, :action => :index) | |
# | |
# p.response.body | |
# p.response.cookies # and so on |
App.authManager = Ember.StateManager.create | |
# The "stack" contains the currently logged-in user | |
stack: [] | |
# Callbacks to be ran once the user is authenticated | |
callbacks: {} | |
# Grabs the current auth object and returns it | |
# If callback argument is given, will run the callback function with current auth object as first argument |
YUI().use('node', 'array-extras', 'querystring-stringify', function (Y) { | |
var form = Y.one('FORM_SELECTOR'), query; | |
query = Y.QueryString.stringify(Y.Array.reduce(Y.one(form).all('input[name],select[name],textarea[name]')._nodes, {}, function (init, el, index, array) { | |
init[el.name] = el.value; | |
return init; | |
})); | |
console.log(query); | |
}); |
Pipeline pipeline = jedis.pipelined(); | |
long start = System.currentTimeMillis(); | |
for (int i = 0; i < 100000; i++) { | |
pipeline.set("" + i, "" + i); | |
} | |
List<Object> results = pipeline.execute(); | |
long end = System.currentTimeMillis(); | |
System.out.println("Pipelined SET: " + ((end - start)/1000.0) + " seconds"); |
import com.twitter.algebird.{Aggregator, Semigroup} | |
import com.twitter.scalding._ | |
import scala.util.Random | |
/** | |
* This job is a tutorial of sorts for scalding's Execution[T] abstraction. | |
* It is a simple implementation of Lloyd's algorithm for k-means on 2D data. | |
* | |
* http://en.wikipedia.org/wiki/K-means_clustering |
/usr/sbin/groupadd -g 30119 jenkins | |
/usr/sbin/useradd -u 30119 -g jenkins jenkins | |
mkdir /home/jenkins | |
chown -R jenkins. /home/jenkins |
#!/bin/bash | |
COOKIE_JAR="ab-cookie-jar" | |
COOKIE_NAME="_myapp_session" | |
USERNAME="foo@bar.com" | |
PASSWORD="password" | |
LOGIN_PAGE_URI="http://localhost:3000/users/sign_in" | |
TEST_PAGE_URI="http://localhost:3000/dashboard" | |
echo "Logging in and storing session id." |