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
// ==UserScript== | |
// @name Maskica Dizajn | |
// @namespace http://www.webmonkey.com | |
// @description A Greasemonkey script that finds h2 tags and creates a floating menu of them. | |
// @include https://www.pinterest.com/ |
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
-- change this to yours Instagram username | |
set userName to "ahmic.jpg" | |
set jsonData to do shell script "curl -s 'https://www.instagram.com/" & userName & "/?__a=1'" | |
set AppleScript's text item delimiters to {","} | |
set keyValueList to (every text item in jsonData) as list | |
set AppleScript's text item delimiters to "" | |
set followersItem to item 11 of keyValueList | |
set followersObject to RemoveFromString("\"", followersItem) |
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
// Compile nova assets for development to enable Vue DevTools | |
cd ./nova (or ./vendor/laravel/nova) | |
npm i | |
mv webpack.mix.js.dist webpack.mix.js | |
npm run dev | |
cd ../ (or ../../../) | |
php artisan nova:publish |
This file has been truncated, but you can view the full file.
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
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
<?php | |
public function calculateScore($username) | |
{ | |
// Fetch user info from Github API | |
$url = 'https://api.github.com/users/'.$username.'/events/public'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
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
set userName to "ahmic.jpg" | |
set jsonData to do shell script "curl -s 'https://www.instagram.com/" & userName & "/?__a=1'" | |
set AppleScript's text item delimiters to {","} | |
set keyValueList to (every text item in jsonData) as list | |
set AppleScript's text item delimiters to "" | |
set followersItem to item 7 of keyValueList | |
set followersObject to RemoveFromString("\"", followersItem) | |
set followersObject to RemoveFromString("{", followersObject) | |
set followersObject to RemoveFromString("}", followersObject) |