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
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github and Gitlab \n" | |
echo "https://github.com/account/ssh \n" | |
echo "https://gitlab.com/profile/keys \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |
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
import random | |
def coin_toss(): | |
friendA = 0 | |
friendB = 0 | |
previousFlip = 0 | |
#continue the loop until one of the friends win | |
while friendA == 0 & friendB == 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
#!/usr/bin/python | |
"""Python script to create a histogram of words in a text file. | |
Usage: python word_frequency.py -f "/path/to/file.txt" -n 200 | |
Specify the path to the text file as above. Manually specify the top N words to report (default 100). | |
Text file can contain punctuation, new lines, etc., but special characters aren't handled well. |
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
public class Solution { | |
// Complete the rotLeft function below. | |
static int[] rotLeft(int[] a, int d) { | |
// get the size of the current array | |
int size = a.lenght; | |
// declare a new array and make it the same size as the original array | |
int[] rotated_array = new int[size]; |
- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
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
<?php | |
function delete_custom_posts($post_type = 'post'){ | |
global $wpdb; | |
$result = $wpdb->query( | |
$wpdb->prepare(" | |
DELETE posts,pt,pm | |
FROM wp_posts posts | |
LEFT JOIN wp_term_relationships pt ON pt.object_id = posts.ID | |
LEFT JOIN wp_postmeta pm ON pm.post_id = posts.ID | |
WHERE posts.post_type = %s |