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 | |
# Loop through all files in the directory | |
for file in *; do | |
# Check if the file exists and is a regular file | |
if [[ -f "$file" ]]; then | |
# Convert the file name to lowercase | |
lowercase_name=$(echo "$file" | tr '[:upper:]' '[:lower:]') | |
# Rename the file to lowercase |
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 | |
# Specify the directory path | |
directory="./" | |
# Change to the specified directory | |
cd "$directory" || exit | |
# Define the mapping array | |
declare -A mapping=( |
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
const loginEpic = actions$ => | |
actions$.ofType(ActionTypes.LOGIN_REQUESTED) | |
.switchMap( | |
(loginAction) => Observable.ajax(POSTOptions('/api/login', loginAction.credentials), | |
(action, r) => ([r, action]) | |
) | |
.switchMap( | |
([loginResponse, action]) => Observable.ajax( | |
GETOptions('/api/provider', [loginResponse.response.userToken, action.serviceProviderId] ) | |
) |
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
<script> | |
//hide twitter avatar | |
var hideTwitterAttempts = 0; | |
function hideTwitterBoxElements() { | |
setTimeout( function() { | |
if ( $('[id*=twitter]').length ) { | |
$('[id*=twitter]').each( function(){ | |
var ibody = $(this).contents().find( 'body' ); | |
ibody.find( '.avatar' ).css( 'height', 0 ); | |
ibody.find( '.avatar' ).css( 'width', 0 ); |
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
'use strict'; | |
function ChangeMachine() { | |
var coins = { | |
'75p' : 75, | |
'15p' : 15, | |
'3p' : 3, | |
'1p' : 1, | |
'1/2p' : 0.5, |
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 x = req.param('x'); | |
var y = req.param('y'); | |
var z = req.param('z'); | |
var undef = x && y && z; | |
if(undef == "undefined") | |
return false; | |
return true; |
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 x = req.param('x'); | |
var y = req.param('y'); | |
var z = req.param('z'); | |
if( typeof x == 'undefined' | |
|| typeof y == 'undefined' | |
|| typeof z == 'undefined' ) | |
return false; | |
return true; |