Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Call Example</title>
<script>
async function postToBaseten() {
export const PROFILE_GRADIENTS = {
tomato: `linear-gradient(
45deg,
#E42C03 0%,
#f46021 33%,
#e96345 67%,
#dd7158 100%
)`,
red: `linear-gradient(
@imit
imit / SimpleGeo.cs
Created July 14, 2016 11:02 — forked from phosphoer/SimpleGeo.cs
Simple Geometry Painter for Unity
// The MIT License (MIT)
// Copyright (c) 2016 David Evans @phosphoer
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
@imit
imit / sketch_opacity_inc.js
Last active August 27, 2015 14:19
sketch plugin opacity incremental (does this => http://jmp.sh/aLY3dxe )
var selection = context.selection;
for (var i=0; i<selection.count(); i++) {
var layer = selection[i];
var alpha = 50 + ((50 / selection.count()) * i);
[[[layer style] contextSettings] setOpacity:(alpha/100)]
};
func initEmojiArray() {
var array: [String] = []
// Emoticons ( 1F601 - 1F64F )
sectionTitle.append("Emoticons")
for c in 0x1F601...0x1F64F {
array.append(String(UnicodeScalar(c)))
}
emojiList.append(array)
#: ../404.php:10
msgid "Page not found... Oops!"
msgstr ""
#: ../404.php:11
msgid "Page not found. Please try using the search box below."
msgstr ""
#: ../bbpress/form-search.php:14
["😁", "😂", "😃", "😄", "😅", "😆", "😇", "😈", "😉", "😊", "😋", "😌", "😍", "😎", "😏", "😐", "😑", "😒", "😓", "😔", "😕", "😖", "😗", "😘", "😙", "😚", "😛", "😜", "😝", "😞", "😟", "😠", "😡", "😢", "😣", "😤", "😥", "😦", "😧", "😨", "😩", "😪", "😫", "😬", "😭", "😮", "😯", "😰", "😱", "😲", "😳", "😴", "😵", "😶", "😷", "😸", "😹", "😺", "😻", "😼", "😽", "😾", "😿", "🙀", "🙅", "🙆", "🙇", "🙈", "🙉", "🙊", "🙋", "🙌", "🙍", "🙎", "🙏"]
@imit
imit / client
Last active August 29, 2015 14:19
user www-data;
worker_processes 8;
pid /run/nginx.pid;
events {
worker_connections 15000;
use epoll;
multi_accept on;
}
worker_rlimit_nofile 120000;
desc "compiles assets locally then rsyncs"
task :asset_mofo do
run_locally do
execute "RAILS_ENV=production bundle exec rake assets:precompile"
manifest_search = Dir["public/assets/*"].select {|x| x =~ /manifest/ }.sort.last
#manifest_file = File.read('file-name-to-be-read.json')
manifest_file = File.read(manifest_search)
manifest = JSON.parse(manifest_file)
@imit
imit / nginx.conf
Last active August 29, 2015 14:18
nice score
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 15000;
# use epoll;
multi_accept on;
}
worker_rlimit_nofile 20000;