This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJ_DIRS=( | |
/path/to/parent/work/directory | |
/path/to/another/parent/work/directory | |
) | |
update_git_repo () { | |
cd $1; | |
cd ..; | |
echo "---"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin set-basis($width) { | |
flex-basis: calc(#{$width}); | |
max-width: calc(#{$width}); | |
} | |
.simple-grid { | |
display: flex; | |
flex-wrap: wrap; | |
--padding: 8px; | |
justify-content: space-between; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Powers | |
def wattr_accessor(*attrs) | |
wattr_reader(*attrs) | |
wattr_writer(*attrs) | |
end | |
def wattr_reader(*attrs) | |
attrs.each do |attr| | |
define_method "#{attr}" do | |
instance_variable_get(:"@#{attr}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Paperclip::Attachment.default_options[:url] = ':s3_domain_url' | |
Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partition/:style/:filename' | |
Paperclip::Attachment.default_options[:s3_host_name] = 's3.amazonaws.com' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto'), text = 'Sourcepad123', key = 'V;S;WhgdG5lOj16ogxH8f$$P00n.qV$$JDWVkpUjqu', hash | |
hash = crypto.createHmac('sha1', key).update(new Buffer(text, 'utf-8')).digest('utf8') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. User.timezone comes from momentjs moment().format("Z") | |
2. Everytime user logs in, we pass the browser's timezone | |
3. Session controller updates user timezone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
angular.module "streams" | |
.controller "ClientTeamCtrl", ['$scope', '$rootScope', 'Worklog', 'Day', 'Project', 'Clients', '$pusher', | |
($scope, $rootScope, Worklog, Day, Project, Clients, $pusher) -> | |
$scope.todayDuration = {h: 0, m: 0} | |
$scope.weekDuration = {h: 0, m: 0, start_date: null, end_date: null} | |
$scope.date = moment() | |
$scope.week = [] | |
$scope.worklogs = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint unused:false */ | |
/*************** | |
This file allow to configure a proxy system plugged into BrowserSync | |
in order to redirect backend requests while still serving and watching | |
files from the web project | |
IMPORTANT: The proxy is disabled by default. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running "protractor:chrome" (protractor) task | |
Starting selenium standalone server... | |
Selenium standalone server started at http://10.0.4.1:47357/wd/hub | |
[launcher] Error: UnknownError: unknown error: Chrome version must be >= 36.0.1985.0 | |
(Driver info: chromedriver=2.12.301324 (de8ab311bc9374d0ade71f7c167bad61848c7c48),platform=Linux 3.14.22-031422-generic x86_64) (WARNING: The server did not provide any stacktrace information) | |
Command duration or timeout: 1.49 seconds | |
Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:02:37' | |
System info: host: 'localhost', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.14.22-031422-generic', java.version: '1.8.0_25' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2014-07-04 using generator-angular 0.9.2 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
var modRewrite = require('connect-modrewrite'); |
NewerOlder