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
# week 1 | |
def get_people_names(people) | |
arr = [] | |
people.each do |person| | |
arr << person.name | |
end | |
arr | |
end | |
# week 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
#!/bin/bash | |
convert "$1" \ | |
\( -clone 0 -background grey -colorize 40% -shadow 80x3+10+10 \) \ | |
\( -clone 0 -background grey -colorize 40% -shadow 80x3-5-5 \) \ | |
-reverse -background none -layers merge +repage "shadow-$1" |
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
div#someone-purchased {z-index: 2147483647 !important;} |
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 loadScript = function(location, callback){ | |
var fileRef = document.createElement('script'); | |
fileRef.setAttribute('type','text/javascript'); | |
if (callback) { | |
if (fileRef.readyState) { // IE | |
fileRef.onreadystatechange = function() { | |
if (fileRef.readyState == 'loaded' || fileRef.readyState == 'complete') { | |
fileRef.onreadystatechange = null; | |
callback(); |
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
require 'json' | |
require 'curb' | |
# follows artists on fanburst.com using their user_id | |
# confirmed 4.20.17 that 22,300+ profiles exist | |
# artist id can be found via 'data' attribute on a profile's "follow" button | |
COOKIE = 'REDACTED' | |
CSRF_TOKEN = 'REDACTED' |
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
require 'json' | |
require 'curb' | |
# TODO: find artist IDs for a genre relevant to me, ie acoustic rock | |
BASE_URL = 'https://api-v2.soundcloud.com/me' | |
FOLLOWINGS = '/followings/' | |
CLIENT_ID = 'REDACTED' | |
ACCESS_TOKEN = 'REDACTED' |
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
<script> | |
function goFomo() { | |
// return early if inputs invalid | |
var first_name = jQuery('input[name="edd_first"]').val(); | |
var email = jQuery('input[name="edd_email"]').val(); | |
var products = jQuery('span.edd_checkout_cart_item_title'); | |
var title = jQuery(products[0]).text(); | |
var images = jQuery('.edd_cart_item_image'); |
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
SELECT * from users; |
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
User.all |
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
SELECT * from users where name LIKE 'Ryan%' AND CREATED_AT BETWEEN '2017-08-07' | |
AND '2017-08-15' order by id; |
OlderNewer