Skip to content

Instantly share code, notes, and snippets.

View mbuckley's full-sized avatar

Mike Buckley mbuckley

View GitHub Profile
@mbuckley
mbuckley / playa_count_issue
Created November 29, 2011 23:31
Playa count example
{exp:channel:entries channel="homepage" limit="1" url_title="homepage_{location}"}
{english_features}
<li><a href="#">{count}</a></li>
{/english_features}
{/exp:channel:entries}
Output
<li><a href="#" class="ui-link">1</a></li>
<li><a href="#" class="ui-link">1</a></li>
angular.element(document.documentElement).injector().get("$state").go("spacing").then(data => console.log(data)).catch(err => console.log(err))
@mbuckley
mbuckley / test.ts
Created August 26, 2017 17:11 — forked from frankieyan/test.ts
StateService href
import { StateService } from "angular-ui-router";
class Blah {
/* @ngInject */
constructor(
private AlertManager: any,
private $state: StateService;
private $sce: angular.ISCEService,
) {}
@mbuckley
mbuckley / demo.component.ts
Created August 31, 2017 19:14
DatatableExportService Usage Example
import { DataTableUserOptions } from "lib-ThemisUI/src/lib/thDataTable/data-table.interfaces";
import { DatatableExportService } from "common/services/datatable-export-service/datatable-export.service";
class DemoComponentController {
public dataTableOptions: DataTableUserOptions;
/* @ngInject */
constructor(
private $q: angular.IQService,
private DatatableExportService: DatatableExportService,
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 14,
"editor.fontFamily": "FiraCode-Retina",
"editor.fontLigatures": true,
"terminal.integrated.fontLigatures": false,
"typescript.check.tscVersion": false,
"editor.wordWrap": "off",
"files.insertFinalNewline": true,
"window.zoomLevel": 0,
@mbuckley
mbuckley / delete_tag.sh
Created November 27, 2017 18:58
Remove tag
git push --delete origin tagName
git tag -d tagName
@mbuckley
mbuckley / gist:217262435d464b8d9afdfb484b844ec9
Created November 28, 2017 23:30 — forked from oslego/gist:f13e136ffeaa6174289a
create self-signed certificate for localhost
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@mbuckley
mbuckley / gource.sh
Last active May 11, 2018 21:23 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2. generate a video for you repo.
$ cd your_repo_dir
$ gource \
-s .1 \
-1280x720 \
--auto-skip-seconds .1 \

Add your vscode executable to your path

macOs:

cat << EOF >> ~/.bash_profile
# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF