Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kgust/55bf9009afc826b328f52e852ca0443c to your computer and use it in GitHub Desktop.
Save kgust/55bf9009afc826b328f52e852ca0443c to your computer and use it in GitHub Desktop.
Here's a list of libraries, websites, and projects mentioned by the VICTR team...

Javascript

Webpack is a module bundler for modern JavaScript applications.

Frontend Frameworks

[X2node.com] Framework for Node.js

Select element libraries

Selectivity.js Modular and light-weight selection library
Chosen Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly
Select2 The jQuery replacement for select boxes

PHP

pdflayer High Quality HTML to PDF Conversion API for Developers
Webgrind is great for visualizing cachegrind files from Xdebug
StatsD with Graphite can be a replacement for NewRelic
XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface
Webpack Encore is a simpler way to integrate Webpack into your application

CSS

jareware/css-architecture 8 simple rules for a robust, scalable CSS architecture

<?php
// Call this at each point of interest, passing a descriptive string
function prof_flag($str)
{
global $prof_timing, $prof_names;
$prof_timing[] = microtime(true);
$prof_names[] = $str;
}
// Call this when you're done and want to see the results
function prof_print()
{
global $prof_timing, $prof_names;
$size = count($prof_timing);
for($i=0;$i<$size - 1; $i++)
{
echo "<b>{$prof_names[$i]}</b><br>";
echo sprintf("&nbsp;&nbsp;&nbsp;%f<br>", $prof_timing[$i+1]-$prof_timing[$i]);
}
echo "<b>{$prof_names[$size-1]}</b><br>";
}
<?php
prof_flag("Start");
include '../lib/database.php';
include '../lib/helper_func.php';
prof_flag("Connect to DB");
connect_to_db();
prof_flag("Perform query");
// Get all the data
$select_query = "SELECT * FROM data_table";
$result = mysql_query($select_query);
prof_flag("Retrieve data");
$rows = array();
$found_data=false;
while($r = mysql_fetch_assoc($result))
{
$found_data=true;
$rows[] = $r;
}
prof_flag("Close DB");
mysql_close(); //close database connection
prof_flag("Done");
prof_print();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment