Lalassemble is a Discord server and linkshell community for the Aether datacenter in Final Fantasy XIV.
The current admins and mods are:
- @milk#2755
defmodule MyApp.Terraformers.LegacyApi do | |
alias MyApp.Clients.LegacyApi | |
use Plug.Router | |
plug :match | |
plug :dispatch | |
get _ do | |
%{method: "GET", request_path: request_path, params: params, req_headers: req_headers} = conn | |
res = LegacyApi.get!(request_path, req_headers, [params: Map.to_list(params)]) |
# Example taken from https://github.com/edgurgel/httpoison | |
defmodule GitHub do | |
use HTTPoison.Base | |
@expected_fields ~w( | |
login id avatar_url gravatar_id url html_url followers_url | |
following_url gists_url starred_url subscriptions_url | |
organizations_url repos_url events_url received_events_url type | |
site_admin name company blog location email hireable bio | |
public_repos public_gists followers following created_at updated_at |
#!/usr/bin/python | |
# ip_lookup.py by poteto | |
# | |
# Batch processes many IP addresses, and traces their geolocation. | |
# The script outputs a .txt file which is then renamed to .csv, and is usable in Excel | |
# | |
# Use: | |
# 1. Save your user email and IP addresses in a .csv file | |
# - Each email and IP should be in its own column in Excel (or separated by commas) | |
# - Enter the name of your .csv file: |
import Ember from 'ember'; | |
import AdultValidations from '../validations/adult'; | |
import ChildValidations from '../validations/child'; | |
import { reservedEmails } from '../validators/uniqueness'; | |
import { schema } from '../models/user'; | |
const { get } = Ember; | |
const { keys } = Object; | |
export default Ember.Controller.extend({ |
# extract_filetype_from_zip.py | |
# A simple script to extract all files of a certain filetype from many .zip files | |
# * Requires Python installed on local computer | |
VERSION = 0.1 | |
# | |
# Place this file in the folder where you have all your zipfiles. | |
# Example use: | |
# - To extract only PDFs: extract_filetype('.pdf', '/folder') where folder (with the /) is the dir you store your zipfiles | |
# - 2nd argument is optional (defaults to root) |
import Ember from 'ember'; | |
import { module } from 'qunit'; | |
import startApp from 'livin/tests/helpers/start-app'; | |
import OnboardPage from 'livin/tests/helpers/page-objects/onboard'; | |
import { test } from 'qunit'; | |
const { run } = Ember; | |
let application; | |
module('Acceptance | onboard', { |
// Standard device screen widths | |
$iphone-portrait: 320px | |
$iphone-landscape: 480px | |
$ipad-portrait: 767px | |
$ipad-landscape: 980px | |
$desktop: 1224px | |
$desktop-large: 1824px | |
// General device targeting | |
// Use: Only use if you want the style to apply to many devices |
import Ember from 'ember'; | |
import { task, timeout } from 'ember-concurrency'; | |
import GiphyClient from '../lib/giphy-client'; | |
const { Component, computed, get, set, isBlank } = Ember; | |
const GIPHY_DEBOUNCE = 1000; | |
export default Component.extend({ | |
init() { | |
this._super(...arguments); |