Skip to content

Instantly share code, notes, and snippets.

View artyom-ivanov's full-sized avatar
🤘
Code, UX, rocknroll

Artyom Ivanov artyom-ivanov

🤘
Code, UX, rocknroll
View GitHub Profile
@vinczebalazs
vinczebalazs / UIColor+NamedColors.swift
Last active April 13, 2020 05:34
UIColor+NamedColors
extension UIColor {
static var accent: UIColor {
UIColor(named: "Accent")!
}
static var primary: UIColor {
UIColor(named: "Primary")!
}
static var primaryText: UIColor {
@ibraheem4
ibraheem4 / postgres-brew.md
Last active October 14, 2024 11:59 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
/**
* AuthController
*
* @description :: Server-side logic for managing auths
* @help :: See http://links.sailsjs.org/docs/controllers
*/
module.exports = {
index: function (req, res) {
var email = req.param('email');
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();