How to name CSS classes
If you download your personal Twitter archive, you don't quite get the data as JSON, but as a series of .js files, one for each month (there are meant to replicate the Twitter API respones for the front-end part of the downloadable archive.)
But if you want to be able to use the data in those files, which is far richer than the CSV data, for some analysis or app just run this script.
Run sh ./twitter-archive-to-json.sh in the same directory as the /tweets folder that comes with the archive download, and you'll get two files:
tweets.json— a JSON list of the objectstweets_dict.json— a JSON dictionary where each Tweet's key is itsid_str
You'll also get a /json-tweets directory which has the individual JSON files for each month of tweets.
| # iOS | |
| app_identifier "com.myapp.app" # The bundle identifier of your app | |
| apple_id "[email protected]" # Your Apple email address | |
| team_id "1234ABCD" # Developer Portal Team ID | |
| # Android | |
| json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | |
| package_name "com.myapp.app" # Your Android app package |
| import React from "react"; | |
| import { render } from "react-dom"; | |
| const ParentComponent = React.createClass({ | |
| getDefaultProps: function() { | |
| console.log("ParentComponent - getDefaultProps"); | |
| }, | |
| getInitialState: function() { | |
| console.log("ParentComponent - getInitialState"); | |
| return { text: "" }; |
| <?php | |
| /** | |
| * Plugin Name: wp-page-migrate | |
| * Description: Edit the plugin to define your pages. Activate this plugin to add the pages to your WP install. | |
| * Version: 0.0.1 | |
| * Author: Alex P. Gates | |
| * | |
| * This is a simple plugin that, when activated, creates pages on a WordPress site if they don't already exist. | |
| * This is useful for keeping local / staging / production in sync and for keeping pages in sync when working | |
| * with lots of custom page templates with multiple people on the same project. |
| # Plugin: jekyll-contentblocks | |
| # Author: Rusty Geldmacher | |
| # Git: https://github.com/rustygeldmacher/jekyll-contentblocks | |
| # Instructions: https://github.com/rustygeldmacher/jekyll-contentblocks#usage | |
| module Jekyll | |
| module ContentBlocks | |
| VERSION = "0.0.3" | |
| module Common | |
| def get_content_block_name(tag_name, block_name) | |
| block_name = (block_name || '').strip |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
| <?php | |
| function mbn_get_stores_by_location( $zip, $radius ) { | |
| global $wpdb; | |
| $radius = intval( $radius ); | |
| // we first need to get the source coordinates | |
| $sql = "SELECT `latitude`, `longitude` FROM `wp_zip_codes` WHERE `zipcode` = '%s'"; | |
| $coords = $wpdb->get_row( $wpdb->prepare( $sql, $zip ) ); | |
