Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
#!/bin/sh | |
echo "\033[30m Black" | |
echo "AAAAAAAAAAA" | |
echo "" | |
echo "\033[31m Red" | |
echo "AAAAAAAAAAA" | |
echo "" | |
echo "\033[32m Green" | |
echo "AAAAAAAAAAA" |
.designs/ | |
wp-content/* | |
!wp-content/themes | |
wp-content/themes/**/node_modules | |
wp-content/themes/**/.sass-cache |
<?php | |
/** | |
* This function is responsible to add multiple fields into the input. | |
* Without this the subfields won't even get mentioned in the form. | |
* Also, this is only true if the form does not have a field of this | |
* type yet. If it does, and you change this, the changes will NOT | |
* show up in the form. | |
* | |
* For reference, go to /plugins/gravityforms/js.php |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
/** | |
* Making sure that console.log will not kill | |
*/ | |
var method; | |
var noop = function () {}; | |
var methods = [ | |
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | |
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | |
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', |
<?php | |
$var[] = "Email"; | |
$var[] = "Notmail"; | |
foreach($var as $v) { | |
if(strpos($v, "Email")){ | |
echo "Yes, this is email"; | |
} else { | |
echo "Not email"; |
$width: 960px | |
$cols: 12 | |
$gutter: 16px | |
@mixin clearfix-micro() | |
& | |
*zoom: 1 | |
&:before, | |
&:after |
{ | |
"id": 4, | |
"name": "Bob", | |
"email": "bob@fromaccounting.com", | |
"meta": { | |
"plugins": [ | |
"foo": { | |
"setting1": "value1", | |
"etc": "etc" | |
}, |
// The client side: | |
Template.resend_verification.rendered = function(){ | |
console.log('this is the rendered function'); | |
userId=Session.get('selectedUserId'); | |
var user = Meteor.user(), | |
emails = user.emails, | |
verified = false, | |
sent = false; | |