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
#include<stdio.h> | |
#include<math.h> | |
void one_thousand_square(); | |
void fx(); | |
void multiplication_table(); | |
void factorial(); | |
int main() { | |
int n, opcion; |
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
function randomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} |
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
/** | |
* Flatten an Array of Arbitrarily nested Arrays of Integers | |
* @param {Array} integers_array - Array of Numbers | |
* @param {Array} flatten_array - Flatten array of Numbers | |
* @return {Array} - Array of Numbers | |
*/ | |
var flatten = function(integers_array, flatten_array) { | |
// If this function is called in recursion | |
// need to keep previous recursion results. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Environment: Stage --> | |
<configuration> | |
<connectionStrings> | |
</connectionStrings> | |
<appSettings> | |
</appSettings> | |
<system.web> | |
<compilation debug="false" targetFramework="4.0"/> | |
</system.web> |
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
# To be inside the /webroot | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> |
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
if (process.env.GMAIL_PASS) { | |
var fromEmail = '[email protected]'; | |
var fromPassword = process.env.GMAIL_PASS; | |
var toEmail = [ | |
'[email protected]', | |
'[email protected]' | |
]; |
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
#!/bin/bash | |
read -p "Are you sure you want to go to production? <y/N> " prompt | |
if [[ $prompt =~ [yY](es)* ]] | |
then | |
echo "---- UPDATE example.net SITE ----" | |
HOST="ftp.example.net" | |
USER="username" | |
PASS="password" | |
FTPURL="ftp://$USER:$PASS@$HOST" | |
LCD="/Users/username/Sites/project-name" |
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
#!/bin/bash | |
echo "---- UPDATE PERMISSION example.net IMAGES ----" | |
HOST="ftp.example.net" | |
USER="usernmae" | |
PASS="password" | |
FTPURL="ftp://$USER:$PASS@$HOST" | |
lftp <<EOF | |
set ftp:ssl-allow no | |
set ftp:passive-mode true | |
set ftp:list-options -a |
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
/* | |
weekly = [ | |
['3/6 - 3/12', 10], | |
['3/12 - 3/19', 13] | |
]; | |
day = [ | |
['3/6', 10] | |
['3/8', 2] | |
]; |
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
var regMatch = new RegExp("http:\\/\\/\[^\"]+(.png|.jpg|.gif|.jpeg)","gi"); | |
var str = JSON.stringify(data); | |
ARRAY_IMAGES = str.match(regMatch); | |
console.log(ARRAY_IMAGES); |