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 | |
/* From https://www.usps.com/send/official-abbreviations.htm */ | |
$us_state_abbrevs_names = array( | |
'AL'=>'ALABAMA', | |
'AK'=>'ALASKA', | |
'AS'=>'AMERICAN SAMOA', | |
'AZ'=>'ARIZONA', | |
'AR'=>'ARKANSAS', |
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
var module = angular.module('racer.js', [], function ($provide) { | |
var setImmediate = window && window.setImmediate ? window.setImmediate : function (fn) { | |
setTimeout(fn, 0); | |
}; | |
var racer = require('racer'); | |
$provide.factory('racer', ['$http', '$q', '$rootScope', function ($http, $q, $rootScope) { | |
$http.get('/model').success(function (data) { | |
racer.init(data); | |
}); |
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
let s:file = [ '#bd2c00' , '#666666' , 1 , 240 , 'bold' ] | |
" Normal mode | |
let s:N1 = [ '#ffffff' , '#6cc644' , 255 , 2 ] " mode | |
let s:N2 = [ '#ffffff' , '#999999' , 255 , 248 ] " info | |
let s:N3 = [ '#ffffff' , '#666666' , 255 , 240 ] " statusline | |
let g:airline#themes#github#normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3, s:file) | |
let g:airline#themes#github#normal_modified = { | |
\ 'info_separator': [ '#999999' , '#333333' , 248 , 232 , '' ] , |
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
:root { | |
--margin-MyComponent-part: var(--theme-margin-small); | |
} | |
.MyComponent {} | |
.MyComponent-part { | |
margin: var(--margin-MyComponent-part); | |
} |
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
/* | |
OUTLINE FOR AN APP BUILT WITH RXJS AND REACT, USING AN ELASTICSEARCH FACETED SEARCH | |
MODULE AS AN EXAMPLE, READ FROM BOTTOM UP IF YOU WANT TO GO OUTSIDE IN, START FROM | |
TOP TO SEE HOW THE SEARCH MODULE IS COMPOSED. | |
If you find this I would love to hear some feedback - it's not designed to work without | |
any modification though, it's just supposed to outline the architecture off-the-top-of- | |
my-head-pretty-close-to-working psuedocode of something that you might actually need to | |
build to drive out if the pattern is any good! | |
*/ |
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
import * as THREE from "three"; | |
import { BufferGeometry } from "three"; | |
/** | |
* Capsule Geometry | |
* especially helpful in 3D games | |
* original creator: | |
* @author maximequiblier | |
* | |
* Modified for typescript (partially) |