Skip to content

Instantly share code, notes, and snippets.

View NuckChorris's full-sized avatar

Emma Lejeck NuckChorris

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
CREATE TABLE files
(
id integer unsigned not null auto_increment,
hash_sha1 binary(160),
filename varchar(255),
size integer unsigned,
mime varchar(255),
unique index index_files_by_id (id),
index index_files_by_sha1 (hash_sha1),
/**
* Based on the provided @scale, sets the font-size and line-height.
*
* Line height is matched to the @text-lineheight defined baseline grid in the upward direction.
* Font size is @scale * @text-fontsize.
*/
.font-scale (@scale: 1) {
@size: (@scale * @text-fontsize);
font-size: @size;
// This picks the line-height in base-relative ems and then converts it to local ems, based on
#include <iostream>
#include <cmath>
#include <malloc.h>
/**
* Assignment 02
* Page Layout
*/
// I'm assuming static works like it does in C, making it private to this part
Lab Final - Part One - Due 12/4 @ 9 pm
1) create new directory called final
2) add this directory to your path statement
3) modify your coins lab to write to an sqlite database in the final directory called final.sqlite
4) the sqlite database will have one table called coins with 4 fields
field 1 - auto increment ID,
field 2 - first name only
field 3 - total amount field
field 4 - time stamp field (your choice either from sqlite or the date command line utility)

Network Policy

By connecting to StormBit you agree to abide by the following rules. Failure to do so may result in termination of your connection. You indemnify the network against any damages which may arise from misuse of their services.

If you have any issues or concerns, you may contact staff via IRC, forums or email.

By connecting to StormBit you agree to abide by the following rules. Failure to do so may result in termination of your connection. You indemnify the network against any damages which may arise from misuse of their services.

If you have any issues or concerns, you may contact staff via IRC, forums or email.

As a StormBit user, you are expected to respect other users and network staff.

var http = require('http');
var url = require('url');
var path = require('path');
var fs = require('fs');
var _ = require('underscore');
var Worker = function Worker (target, slots, tier) {
if (typeof target === 'string') {
var target = url.parse(target);
this.Manager.target = {
CREATE TABLE files
(
id INTEGER UNSIGNED PRIMARY KEY AUTO_INCREMENT,
hash_sha1 BINARY(160),
filename VARCHAR(255),
size INTEGER UNSIGNED,
mime VARCHAR(255),
UNIQUE INDEX index_files_by_id (id),
INDEX index_files_by_sha1 (hash_sha1)
);
class AnimeResource < JSONAPI::Resource
# Specify the Chewy index class to utilize for search queries
index MediaIndex::Anime
# Queries are extracted from params[:filter] and used to form an ElasticSearch query
# If there are no query filters in the params, skips the entire ES query step
query :season, verify: -> (values, _ctx) { values.in? Anime::SEASONS }
query :year
# Filters will often be unnecessary, since most things Postgres can do, Elastic can too.
# However, any filters declared will be applied after internal conversion from ElasticSearch to ActiveModel