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
$('div.cart-product-info-sku').each((i, div) => $(div) | |
.css('cursor', 'pointer') | |
.css('color', 'blue') | |
.css('text-decoration', 'underline') | |
.click(() => { window.location.href = '/' + $(div).attr('parent-partnumber') })) |
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
#!/bin/bash | |
# 1. Start jack | |
echo "Starting cadence..." | |
echo "Start jackd + pulseaudio" | |
sleep 5 | |
read -p "Press [ENTER] to continue..." | |
# 2. Create source | |
echo "Creating source..." |
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
private User GetUserByToken(string tokenBody) | |
{ | |
var token = _context.Tokens.SingleOrDefault(t => t.Body == tokenBody); | |
if (token == null) | |
return null; | |
var user = _context.Users.SingleOrDefault(u => u.Id == token.UserId); | |
return user; | |
} |
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
// Dependencies | |
const Enumerable = require ('linq'); | |
// Constants | |
const UPPER_CASE_CHARS = `ABCDEFGHIJKLMNOPQRSTUVWXYZ`; | |
const LOWER_CASE_CHARS = `abcdefghijklmnopqrstuvwxyz`; | |
const DIGITS = `0123456789`; | |
const SPECIAL_CHARS = `!@#$%^&*+=?/\\_`; | |
const VALID_CHARACTERS = |
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
$('info-message').hide(); | |
var video = $('video')[0]; | |
var seekbar = $('vod-seek-bar'); | |
seekbar.click (e => video.currentTime = e.offsetX / seekbar.width() * video.duration); |
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
{ | |
"result":{ | |
"headers":[ | |
{ | |
"name":"ID", | |
"type":1 | |
}, | |
{ | |
"name":"Tipo", | |
"type":2 |
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
On branch master | |
Your branch is up-to-date with 'origin/master'. | |
Changes not staged for commit: | |
(use "git add <file>..." to update what will be committed) | |
(use "git checkout -- <file>..." to discard changes in working directory) | |
modified: examples/crop/images/leaf twirl.jpg | |
modified: license.txt | |
no changes added to commit (use "git add" and/or "git commit -a") |
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
On branch master | |
Your branch is up-to-date with 'origin/master'. | |
Changes not staged for commit: | |
(use "git add <file>..." to update what will be committed) | |
(use "git checkout -- <file>..." to discard changes in working directory) | |
modified: .nuget/nuget.exe | |
modified: examples/assets/bootstrap/img/glyphicons-halflings-white.png | |
modified: examples/assets/bootstrap/img/glyphicons-halflings.png | |
modified: examples/crop/images/leaf twirl.jpg |