This file contains 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
// ==UserScript== | |
// @name Fix Asana width | |
// @namespace http://example.com | |
// @version 0.1 | |
// @description Forced width of Asana is very obnoxius, so this will adjust the min width. | |
// @author You | |
// @match https://app.asana.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
# pulls current branch you're on | |
# commits any code if you add a string | |
# pushes committed code to branch you're on | |
# | |
# e.g. | |
# giddyup (pulls branch only) | |
# giddyup "My Message" (pulls, commits "My Message", pushes changes) | |
# | |
giddyup() { |
This file contains 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
# Polymer Mallard - Bash CRUD | |
# | |
# Put the following into your ~/.bash_rc or ~/.bash_profile | |
# Requires Python, cURL | |
function pmCrudRequest { | |
printf " \n \e[1;33m$method\e[0m from \e[1;33m$url\e[0m \n \n" | |
printf " \n \e[0;32m" | |
echo "$response" | python -m json.tool | |
printf "\e[0m" |
This file contains 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
screen = CreateObject("roScreen") | |
bitmap = CreateObject("roBitmap", { width: 200, height: 200, alphaEnable: false }) | |
' create rectangle shape | |
bitmap.drawRect(0, 0, 200, 200, &h67827fFF) | |
' get full bytearray and save raw | |
byteArray = bitmap.getByteArray(0, 0, 200, 200) | |
byteArray.writeFile("tmp:/12345.bmp") |
This file contains 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
#include <Magick++.h> | |
#include <fstream.h> | |
#include <math.h> | |
#include <sys/time.h> | |
#include <unistd.h> | |
using namespace Magick; | |
fstream fout; |
This file contains 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
<?php | |
$stuff = "Something!"; | |
?> | |
<head> | |
<title><?php echo $stuff ?></title> | |
<style> | |
<?php echo ".foo { bar: 10px }" ?> | |
</style> | |
</head> | |
<body></body> |
This file contains 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
Re-usable separated templates via backend, frontend, lang files, with heirarchy. | |
views | |
└ comments | |
└ single.twig | |
└ video | |
└ player.twig | |
└ templates.twig | |
This file contains 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
-------- | |
Usage | |
-------- | |
# Creates a background screen with a name `make-assets` that runs the command `gulp watch` | |
# Can be found by running `screen -list` and resuming. | |
# You can change this name to be whatever you want instead of `make-assets` |
This file contains 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
## | |
# Projects | |
# | |
# Put somewhere in your bashrc, bash_profile, or whatever you're sourcing | |
# and edit the `project_source` line to link to an ENV file representing | |
# your projects: | |
# | |
# roku=~/WhateverDirectory/ | |
# projectb=/var/www/project_b | |
# |
This file contains 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
###################################################### | |
# DO NOT COMMIT CHANGES FROM THIS FILE | |
# USE `.build-env-override` for local changes | |
###################################################### | |
env=dev | |
theme=myapp | |
roku_ip=192.168.1.200 | |
roku_port=8085 | |
roku_password=roku |