Skip to content

Instantly share code, notes, and snippets.

Neeed:
{
"app_id": "",
"identity_token"
}
Getting this currently:
{
"communicationUserId": "",
"identityToken": ""
.scroll-list {
max-height: calc(100vh - 30rem);
min-height: 25rem;
overflow-y: auto;
}
@Crawleyprint
Crawleyprint / copy-hooks.js
Last active September 28, 2017 02:37
Frontend automation with git hooks and npm
var path = require('path');
// we need to require fs.extra because node's fs module doesn not have copy
// method.
// We could create our own, but this works as well.
var fs = require('fs.extra');
var appRoot = path.resolve(__dirname);
// 2 arguments are needed, one for determining hook type
// and other one for source file name
@Crawleyprint
Crawleyprint / push.scss
Last active August 29, 2015 14:06
Push classes generator
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
/**
* PUSH CLASSES GENERATOR
**/
$directions: top, left, right, bottom, sides, ends; // define sides that will have margin
<script>
$('#login').click(function() {
$.post(
"/",
{
username: $("#id_username").val(),
password: $("#id_password").val(),
csrfmiddlewaretoken: $.cookie("csrftoken"),
next: $("#id_next").val()
},
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "../"
css_dir = "css/build"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
generated_images_dir = images_dir + "/sprites/"
relative_assets = true
[
{
"CollectionCountry": "US",
"CollectionCity": "New York",
"CollectionZip": "10001",
"CollectionCountryDivision": "NY",
"DestinationCountry": "US",
"DestinationCity": "New York",
"DestinationZip": "10001",
"DestinationCountryDivision": "NY",
@Crawleyprint
Crawleyprint / tmp
Created September 17, 2012 15:26
temp
<option <% if (this.PickupTimesPrepared.length === 1 && pickup.id === 'dropoff') { %> selected <% } %> value="<%= pickup.id %>"><%= pickup.text %></option>
#!/bin/bash
echo "Update Started" && \
cd $(dirname $0)/.. && \
SE=$(pwd) && \
echo $SE && \
rm web/js/build/*.* && \
echo "Updating submodules..." && \
git submodule init && \
git submodule update && \
@Crawleyprint
Crawleyprint / clippy
Created July 18, 2012 11:42
copy to Clipboard
<script type="text/javascript">
$(function() {
ZeroClipboard.setMoviePath( GLOBAL_BASE_URL + "js/vendor/clippy/ZeroClipboard10.swf" );
var clip = new ZeroClipboard.Client();
clip.setHandCursor( true );
clip.setText($.trim($("#api-key").text()));
clip.glue("api-copy-button", "copy-container");
});
</script>