This file contains hidden or 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
// thanks https://stackoverflow.com/questions/17965151/override-get-method-in-alloy-model | |
exports.definition = { | |
con-fig: { | |
adapter: { | |
type: "properties", | |
collection_name: "careCenter", | |
idAttribute : "CareCenterID" | |
} |
This file contains hidden or 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
// http://temlyakov.ru/chet-faker-im-into-you-perevod.html | |
jQuery('tr > td:nth-child(odd)').toArray().map(td => td.childNodes[0].textContent).reduce((allSong, str) => allSong + str + '\n', ""); |
This file contains hidden or 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
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
// thanks : http://thesassway.com/intermediate/referencing-parent-selectors-using-ampersand#comment-2067904467 | |
@mixin child-of($parent) { | |
@at-root { | |
#{$parent} %child { | |
@content; | |
} | |
} | |
@extend %child; | |
} |
This file contains hidden or 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
logAndDif = (text, compareWithMoment)-> | |
currM = Alloy.Globals.Moment(); | |
Ti.API.info "#{text} : #{currM.format 'HH:mm:sss.SSS' } - #{if compareWithMoment then currM.diff(compareWithMoment) else '-'}" | |
currM | |
startSetupMoment = logAndDif("start") | |
logAndDif("transformed", startSetupMoment) |
This file contains hidden or 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
$puzzlePieceHeight : 46px; | |
$puzzleTextPadding : 10px; | |
$beforeAfterWidth : 20px; | |
$pathToPuzzlePieceImage : '/assets/img/puzzle/piece'; | |
@mixin generate-theme($themeName, $mainThemeColor, $fontColor: #333333 ) { | |
.puzzle-piece { | |
&.theme-#{$themeName} { | |
color : $fontColor; |
This file contains hidden or 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
def x = { param1 -> | |
println("param1 === ${param1}"); | |
}; | |
x(1) // param1 === 1 | |
x(2) // param1 === 2 | |
println(x.class) // class Script1$_run_closure1 | |
println(1.class) // class java.lang.Integer | |
// - - - - - - - - - - - - - - - - - - |
This file contains hidden or 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
input#fileToUpload(type='file', onchange='angular.element(this).scope().uploadFile(this.files[0])') |
This file contains hidden or 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
/* | |
getNormalizedWordsArray("Hello, my name is Igor. What are you doing?:)") | |
>>> ["Hello", ",", " ", "my", " ", "name", " ", "is", " ", "Igor", ".", " ", "What", " ", "are", " ", "you", " ", "doing", "?:)"] | |
*/ | |
function getNormalizedWordsArray(phrase) { | |
const punctuationRegEx = /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]/g; | |
const spaceRegEx = /\s+/g; | |
const digitRegEx = /\d/g; | |
const wordRegEx = /\w/g; |