Skip to content

Instantly share code, notes, and snippets.

View asumaran's full-sized avatar
☺️
daydreaming

Alfredo Sumaran asumaran

☺️
daydreaming
View GitHub Profile
@asumaran
asumaran / asumaran.zsh-theme
Last active September 17, 2020 09:23
asumaran
if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
PROMPT='%{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
RPS1="${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
import Vue from 'vue';
export default class GroupsStore {
constructor() {
this.state = {};
this.state.groups = {};
this.state.pageInfo = {};
}
setGroups(rawGroups, parent) {
(function () {
var e = {}, t = {}, n = 0,
r = {
refreshStylesheets: function () {
function i(e) {
var t = document.location,
n = new RegExp("^\\.|^/(?!/)|^[\\w]((?!://).)*$|" + t.protocol + "//" + t.host);
return e.match(n)
}
var n = document.getElementsByTagName("head")[0],
@asumaran
asumaran / LoginForm.php
Created October 27, 2012 11:38 — forked from jamband/LoginForm.php
Yii Framework: Custom authentication
<?php
class LoginForm extends CFormModel
{
private $_loginLabel;
public $login;
public $password;
public $rememberMe;
/**